{"service":"image-gen","version":"1.0.0","title":"Image generation","description":"Use when you need image generation, an AI image generator or text to image from a prompt for illustrations, mockups or social posts. Do not use for image edits, specific sizes, photos of real people or more than one image per call. Returns JSON with an AI-generated image from a text prompt: a 1024x1024 JPEG made by FLUX.1 schnell on Workers AI, as base64 for 0.03 USDC per call. Asynchronous: the paid call returns a jobId and a free pollUrl; typical job time 10000 ms (p95). Category: Media.","paid":{"method":"POST","url":"https://x402-gateway.blackwoodstate8.workers.dev/v1/image-gen","scheme":"exact","network":"eip155:8453","asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","amount":"30000","amountUsdc":"0.03","payTo":"0xAf45feD0fb0145443ACaFA4754556BC4D2968D86","maxTimeoutSeconds":60,"pollUrl":"https://x402-gateway.blackwoodstate8.workers.dev/v1/image-gen/jobs/:jobId","paymentFlow":"upfront"},"input":{"schema":{"type":"object","properties":{"prompt":{"type":"string","minLength":3,"maxLength":2048,"description":"What the image should show, in English, e.g. a lighthouse on a cliff at sunset, watercolor"},"steps":{"description":"Diffusion steps (1-8, 4 when omitted); more steps, more detail","type":"integer","minimum":1,"maximum":8}},"required":["prompt"]},"example":{"prompt":"A brass lighthouse on a dark navy sea at dusk, minimalist flat illustration","steps":4}},"output":{"schema":{"type":"object","properties":{"jobId":{"type":"string","minLength":1,"maxLength":100},"pollUrl":{"type":"string","format":"uri"},"expiresAt":{"type":"string","description":"ISO 8601: depois disso o resultado deixa de existir"},"status":{"type":"string","const":"queued"},"next":{"type":"object","properties":{"service":{"type":"string","description":"Service id of the suggested next paid call"},"tool":{"type":"string","description":"MCP tool name of the same call"},"method":{"type":"string","enum":["GET","POST"]},"url":{"type":"string","description":"Paid route of the next call"},"useWhen":{"type":"string","description":"When the next call is the right one"},"sample":{"type":"string","description":"Free fixed sample of the whole family"}},"required":["service","tool","method","url","useWhen","sample"],"additionalProperties":false,"description":"Suggested next paid call in the same family (call it in a loop when the task continues)"}},"required":["jobId","pollUrl","expiresAt","status"],"additionalProperties":false},"example":{"jobId":"job_00000000000000000000000000000000","pollUrl":"https://gateway.example/v1/image-gen/jobs/job_00000000000000000000000000000000","expiresAt":"2026-01-31T00:00:00.000Z","status":"queued"}},"mcp":{"url":"https://x402-gateway.blackwoodstate8.workers.dev/mcp","tool":"blackwood_image_generate"},"openapi":"https://x402-gateway.blackwoodstate8.workers.dev/openapi.json","status":"https://x402-gateway.blackwoodstate8.workers.dev/status.json"}