Generate Image
generate_imageGenerate 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. Costs USD 0.01 per call, paid with x402 (USDC on Base); calls that fail are not charged.
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": "generate_image"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| steps | No | Diffusion steps, 1 to 8 (default 4; more is slower and finer) | |
| prompt | Yes | What to draw, up to 2048 characters |