Generate an image (text to image)
generate_imageCreates original images from text prompts with FLUX.1 schnell, returning a 1024x1024 JPEG as a base64 data URL ready to save or display.
Instructions
Create an original image from a text prompt with FLUX.1 [schnell]: illustrations, product shots, logos, thumbnails, concept art. Returns a 1024x1024 JPEG (about 100-300 KB) as a base64 data URL ready to save or display, usually within a few seconds. Costs $0.005 per call.
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": "generate_image"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| steps | No | Quality steps, 1-8. Default 4 (what the model is tuned for). | |
| prompt | Yes | What to draw, e.g. "a watercolor fox reading a newspaper in a cafe". |