Image generate
image_generateGenerate a 1024x1024 JPEG image from a text prompt with FLUX.1 Schnell on Cloudflare Workers AI ($0.005). Sexual content, minors and graphic violence refused before payment. $0.005 per call over x402 (USDC on Arc, Base or Solana, or XNT on X1). Call once without payment for the terms, sign them with your own wallet, call again with payment.
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_generate"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| steps | No | Optional diffusion steps 1-8 (default 4). | |
| prompt | Yes | Text description of the image to generate (3 to 1000 chars). | |
| payment | No | a signed x402 payment (the base64 payload you would put in PAYMENT-SIGNATURE). Pass it and the purchase completes inside this tool call. |