text_to_image
Generate an image from a text prompt with a style and aspect ratio. Returns { generatedImage }. Cost: 3 credits. For a choice of image models use create_image.
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": "text_to_image"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| style | No | Style (default photorealistic) | |
| prompt | Yes | Text description of the image (max 2000 chars) | |
| aspectRatio | No | Aspect ratio (default 1:1) |