images generations
images_generationsOpenAI-compatible image generation (FLUX.1 schnell): same shape as OpenAI /v1/images/generations, returns b64_json (or a data URL with response_format=url). One 1024px JPEG per call, flat price, no API key. Costs $0.01 USDC per call (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": "images_generations"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| n | No | Must be 1 | |
| prompt | Yes | ||
| response_format | No | b64_json (default) | url (data URL) |