ai_image
Generate an image from a text prompt with FLUX.1 [schnell]: a 1024x1024 JPEG returned as base64 in JSON. Optional steps (1-8, default 4) and seed for repeatable results. Costs $0.01 USDC on Base 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 |
|---|---|---|---|
| seed | No | Seed for a repeatable image | |
| steps | No | Diffusion steps 1-8 (default 4) | |
| prompt | Yes | What to draw, up to 1,000 characters |