Generate an image
imageGenerates a 1024x1024 image from a text prompt with the FLUX.1 [schnell] model. Returns a JPEG directly, or base64 JSON with format=json. Paid tool: $0.02 per call in USDC via x402 at POST https://x402-tools.com/v1/image. Calling it here returns the endpoint, price and how to pay.
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 | Diffusion steps, 1 to 8 (default 4). More steps, more detail. | |
| format | No | 'jpeg' (default, raw image) or 'json' (base64). | |
| prompt | Yes | What to draw (max 2000 characters). |