Safe text-to-image: FLUX.1 schnell 1024x1024 JPEG with prompt and output safety checks
ai_imageUse 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 Price: $0.02 USDC (Base or Solana) via x402.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"prompt": "<prompt>"
},
"name": "ai_image"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| steps | No | Diffusion steps (default 4; more = finer detail, slower) | |
| prompt | Yes | What to draw (English works best). Sexual content, minors in suggestive scenes, real-person deepfakes and gore are refused (422, not charged) |