api_image_generate
Render an actual original image through customer-funded OpenAI Image API and return base64 file bytes with MIME metadata, not a prompt-only simulation. One call costs 0.01 USDC on Base x402; customer-owned provider credentials use X-Provider-Key header where needed.
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": "api_image_generate"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| size | No | 1024x1024, 1536x1024 or 1024x1536 | |
| format | No | jpeg, png or webp; provider key via X-Provider-Key | |
| prompt | Yes | Original image specification, max 4000 chars |