{"uid":"cap_z2z2ZvBTuSR48IK0GgbcH","slug":"pixel402-ai-image-generator-6c45badf","name":"pixel402 AI Image Generator","description":"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).","url":"https://pixel402.dylan-caponi.workers.dev/generate","method":"POST","headers":{},"bodySchema":{"type":"object","properties":{"example":{"type":"string"}}},"responseSchema":{"type":"json","example":{"note":"Image stored durably. GET image_url anytime (free). If status is 'processing' (HTTP 202), poll result_url every ~10s.","model":"black-forest-labs/flux-schnell","job_id":"6f1c9e2a-4b7d-4c1e-9a2f-3d5e8b7a0c1d","prompt":"a cat wearing a top hat in a field of sunflowers","status":"succeeded","image_url":"https://pixel402.dylan-caponi.workers.dev/result/6f1c9e2a-4b7d-4c1e-9a2f-3d5e8b7a0c1d","parameters":{"aspect_ratio":"1:1","output_format":"webp","output_quality":80},"price_paid":"$0.01","prediction_id":"abc123xyz"}},"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.01","displayCostAsset":"USDC","priceDynamic":false,"priceHint":null,"priceStatus":"priced","priceSource":"probe","requiresHandshake":false,"reviewCount":0,"rating":{"score":"0.00","successRate":"0.00","reviews":0,"stars":null,"state":"unrated"},"availabilityStatus":"unknown","priceObserved":null,"sessionDeposit":null,"pricing":{"kind":"static","summary":"$0.01/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.01","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.01","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_2ZqUG0OQoSInUBEUhwApF","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.01","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Generates AI images from text prompts using flux-schnell, paid per-image with $0.01 USDC on Base via x402, with async claim-check retrieval","exampleAgentPrompt":"Generate an image of a fox astronaut floating in space with Earth in the background — square format, webp, high quality.","exampleUseCases":[{"title":"Social media visual creation","prompt":"Create an image of a cozy coffee shop in autumn with warm lighting and fallen leaves outside the window — square format, webp output."},{"title":"Children's book illustration","prompt":"Generate an image of a friendly dragon reading a book under a rainbow, in a whimsical storybook art style — 1:1 aspect ratio, webp."},{"title":"E-commerce product background","prompt":"Make me an AI image of a minimalist white marble surface with soft natural lighting — I want to use it as a product photo background, square format."}],"resultDescription":"Returns a JSON object containing a job_id, status (succeeded or processing), image_url where the generated image can be retrieved for free anytime, result_url for polling if still processing, the original prompt, model used (flux-schnell), image parameters (aspect_ratio, output_format, output_quality), price_paid, and a prediction_id. If status is 'processing' (HTTP 202), the agent should poll result_url every ~10 seconds until complete.","failureModes":["Payment failure — insufficient USDC balance or x402 payment not accepted, resulting in 402 response","Prompt policy violation — prompt rejected for content policy, resulting in 4xx error","Timeout or generation failure — model backend unavailable, job may remain in 'processing' indefinitely","Invalid input schema — malformed request body returns 400","Rate limiting — too many requests from the same origin"],"whenToPreferThis":"Choose pixel402 when you need on-demand AI image generation paid per-image with USDC on Base via the x402 protocol, without subscription overhead. Ideal for agents needing crypto-native pay-as-you-go image generation powered by flux-schnell with durable async retrieval — especially when the user already operates in a Web3 or Base ecosystem.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-09-15T18:36:53.521Z","isFirstParty":false}