{"uid":"cap_U23B33dBuXRYhUtCkdqZ8","slug":"agent-toolbox-flux-1-schnell-image-generation-21e4a2a4","name":"Agent Toolbox – FLUX.1 Schnell Image Generation","description":"Generate a 1024x1024 JPEG image from a text prompt with FLUX.1 schnell; every prompt passes a safety check first (sexual content and other unsafe requests are refused and not charged). Returns the image as base64.","url":"https://agent-toolbox.zafermemon87.workers.dev/v1/image?utm_source=zero.xyz","method":"POST","headers":{},"bodySchema":{"type":"object","properties":{"steps":{"type":"integer","maximum":8,"minimum":1,"description":"Diffusion steps, 1 to 8 (default 4; more is slower and finer)"},"prompt":{"type":"string","description":"What to draw, up to 2048 characters"}}},"responseSchema":{"type":"json","example":{"model":"flux-1-schnell","plain":"Image generated (4 steps).","steps":4,"prompt":"a lighthouse on a cliff at sunrise, watercolor","mime_type":"image/jpeg","image_base64":"/9j/4AAQSkZJRgABAQAAAQABAAD/2wBDAAEBAQEB...(base64 JPEG)"}},"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_G-MLj82XcdFF7B4zcpex6","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 a 1024x1024 JPEG image from a text prompt using FLUX.1 schnell, with built-in safety filtering, returning the result as a base64-encoded string.","exampleAgentPrompt":"Can you generate an image of a lighthouse on a cliff at sunrise in a watercolor style, using 6 diffusion steps for extra detail?","exampleUseCases":[{"title":"Blog post hero image creation","prompt":"Generate an image of a futuristic city skyline at night with neon reflections on wet streets — use 8 diffusion steps for the highest quality."},{"title":"Product concept visualization","prompt":"Draw a sleek minimalist wooden desk lamp with a warm glowing light on a white background, 4 diffusion steps is fine."},{"title":"Children's story illustration","prompt":"Create a picture of a friendly cartoon dragon reading a book under a big oak tree in a sunny meadow, 5 steps please."}],"resultDescription":"A JSON object containing the base64-encoded JPEG image (1024x1024), the MIME type ('image/jpeg'), the model used ('flux-1-schnell'), the number of diffusion steps applied, the original prompt, and a plain-text confirmation message. The agent can decode the base64 string to obtain the raw image bytes.","failureModes":["Prompt flagged by safety filter — request is refused with an error and no charge is applied","Prompt exceeds 2048 characters — request rejected with a validation error","Steps parameter outside 1–8 range — validation error returned","Payment not provided or insufficient — x402 payment required error","Model inference timeout — transient server error, retryable"],"whenToPreferThis":"Choose this endpoint when you need fast, affordable AI image generation (1024x1024 JPEG) from a text prompt with built-in safety filtering, pay-per-call x402 pricing at $0.01 USDC, and a base64 response format suitable for direct embedding in applications. Prefer it over heavier image APIs when you want adjustable quality via diffusion steps (1–8) and don't need advanced features like style presets, multiple resolutions, or image-to-image editing.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-11-22T15:50:46.522Z","isFirstParty":false,"canonicalSlug":"agent-toolbox-flux-1-schnell-image-generation-21e4a2a4"}