Generate 1-4 AI images from a text prompt using flux-schnell
Generate 1-4 AI images from a text prompt using flux-schnell. $0.01 per image (price = $0.01 × num_outputs). Returns a job_id claim ticket; retrieve images free at /result/{job_id} (durable, no expiry).
10000 (raw units)
price
3
calls / 30d
2
unique payers
2026-09-15
updated
Provider
pixel402.dylan-caponi.workers.dev · discovered, not yet claimed by its owner
Payment (x402 accepts[])
[
{
"scheme": "exact",
"network": "eip155:8453",
"payTo": "0x309Fd902B4b29905c8493c94a569673e1D6DC0D3",
"asset": "0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913",
"amount": "10000",
"maxTimeoutSeconds": 300
}
]Output schema
{
"bazaar": {
"info": {
"input": {
"method": "POST",
"queryParams": {
"prompt": "a cat wearing a top hat in a field of sunflowers"
},
"type": "http"
},
"output": {
"example": {
"image_url": "https://pixel402.dylan-caponi.workers.dev/result/6f1c9e2a-4b7d-4c1e-9a2f-3d5e8b7a0c1d",
"job_id": "6f1c9e2a-4b7d-4c1e-9a2f-3d5e8b7a0c1d",
"model": "black-forest-labs/flux-schnell",
"note": "Image stored durably. GET image_url anytime (free). If status is 'processing' (HTTP 202), poll result_url every ~10s.",
"parameters": {
"aspect_ratio": "1:1",
"output_format": "webp",
"output_quality": 80
},
"prediction_id": "abc123xyz",
"price_paid": "$0.01",
"prompt": "a cat wearing a top hat in a field of sunflowers",
"status": "succeeded"
},
"type": "json"
}
},
"schema": {
"$schema": "https://json-schema.org/draft/2020-12/schema",
"properties": {
"input": {
"additionalProperties": false,
"properties": {
"method": {
"enum": [
"POST"
],
"type": "string"
},
"queryParams": {
"properties": {
"aspect_ratio": {
"description": "Aspect ratio: 1:1, 16:9, 9:16, 4:3, 3:4, etc. Default: 1:1",
"type": "string"
},
"go_fast": {
"description": "Use the speed-optimized fp8 model. Default: true",
"type": "boolean"
},
"megapixels": {
"description": "Approximate resolution: '1' or '0.25'. Default: '1'",
"type": "string"
},
"num_inference_steps": {
"description": "Denoising steps 1-4; fewer is faster, lower quality. Default: 4",
"type": "number"
},
"num_outputs": {
"description": "Number of images, 1-4. Price scales: $0.01 per image. Default: 1",
"type": "number"
},
"output_format": {
"description": "Image format: webp, jpg, png. Default: webp",
"type": "string"
},
"output_quality": {
"description": "Quality 1-100. Default: 80",
"type": "number"
},
"prompt": {
"description": "Text description of the image to generate",
"type": "string"
},
"seed": {
"description": "Random seed for reproducibility",
"type": "number"
}
},
"required": [
"prompt"
],
"type": "object"
},
"type": {
"const": "http",
"type": "string"
}
},
"required": [
"type",
"method"
],
"type": "object"
},
"output": {
"properties": {
"example": {
"properties": {
"check_after_seconds": {
"type": "number"
},
"image_url": {
"type": "string"
},
"job_id": {
"type": "string"
},
"model": {
"type": "string"
},
"note": {
"type": "string"
},
"parameters": {
"type": "object"
},
"prediction_id": {
"type": "string"
},
"price_paid": {
"type": "string"
},
"prompt": {
"type": "string"
},
"result_url": {
"type": "string"
},
"status": {
"type": "string"
},
"timestamp": {
"type": "string"
}
},
"type": "object"
},
"type": {
"type": "string"
}
},
"required": [
"type"
],
"type": "object"
}
},
"required": [
"input"
],
"type": "object"
}
}
}Use it
curl
curl "https://pixel402.dylan-caponi.workers.dev/generate" # -> 402 Payment Required, accepts[] lists how to pay # retry with a PAYMENT-SIGNATURE (or PAYMENT header) once paid
JavaScript
const res = await fetch("https://pixel402.dylan-caponi.workers.dev/generate");
if (res.status === 402) {
const { accepts } = await res.json();
// pay one of accepts[] via an x402 client, then retry with the payment header
}Python
import httpx
res = httpx.get("https://pixel402.dylan-caponi.workers.dev/generate")
if res.status_code == 402:
accepts = res.json()["accepts"]
# pay one of accepts[] via an x402 client, then retry with the payment headerMachine-readable
Everything on this page is also available as clean JSON at /resources/12345.json, and this resource appears in /discovery/resources and /discovery/search.