Generate an image from a text prompt
imageGenerate an image from a text prompt (FLUX.1 schnell). Returns a base64 JPEG. Fast, 1024x1024. Price: $0.005 in USDC per successful call, paid with x402 (Base, Solana or Arc); failed calls 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": "image"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| steps | No | 1-8, default 4 | |
| prompt | Yes | Up to 2048 chars |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| mime | No | ||
| model | No | ||
| image_base64 | No |