← Back to directory

Use when an agent needs an image from a text prompt. Input: prompt (max 1000 cha...

https://1gateway.dev/v1/ai/image

Overview

Use when an agent needs an image from a text prompt. Input: prompt (max 1000 chars), optional steps (1-8, default 4). Output: JSON with a 1024x1024 JPEG (base64), steps, model, safety verdicts. Prompt screened by blocklist + Llama Guard 3, image by a vision check; sexual, minor, deepfake or gore requests refused 422, not charged. Not stored. Example: ?prompt=isometric%20illustration%20of%20a%20tiny%20robot%20cafe

Protocol x402
Price $0.02
Payment Asset USD Coin
Payment Network eip155:8453
Category media/images
Provider Safe Image Generation
Source bazaar
Indexed 2026-11-01 00:36:40

Health

Status unknown
Latency (p50) —
Uptime (30d) —
Reliability Score —
Last Checked Never
Last Healthy Never
Consecutive Failures 0

x402 Payment Validation

Payment Requirements —
Asset Verified —
Facilitator —

Input Schema

{ "method": "GET", "queryParams": { "prompt": "isometric illustration of a tiny robot cafe, soft pastel colors", "steps": 4 }, "type": "http" }

Output Schema

{ "example": { "costNeurons": 57.599999999999994, "image": { "base64": "/9j/4AAQSkZJRgABAQAAAQABAAD/2wBDAAgGBgcGBQgHBwcJCQgKDBQNDAsLDBkSEw8UHRofHh0aHBwgJC4nICIsIxwcKDcpLDAxNDQ0Hyc5PTgyPC4zNDL/2wBDAQkJCQwLDBgNDRgyIRwhMjIyMjIyMjIyMjI…", "bytes": 645, "height": 1024, "mimeType": "image/jpeg", "width": 1024 }, "model": "@cf/black-forest-labs/flux-1-schnell", "notes": [ "Generated by FLUX.1 [schnell] (Black Forest Labs, Apache-2.0) on Cloudflare Workers AI. Prompt and image are screened (blocklist, Llama Guard 3, vision check);…" ], "prompt": "isometric illustration of a tiny robot cafe, soft pastel colors", "safety": { "outputModel": "@cf/google/gemma-4-26b-a4b-it", "outputVerdict": "safe", "promptBlocklist": "passed", "promptModel": "@cf/meta/llama-guard-3-8b", "promptVerdict": "safe" }, "steps": 4, "upstreamCostUsd": 0.000634 }, "type": "json" }