Text to Image
text_to_imageGenerate architectural images from text descriptions with configurable dimensions and PNG, JPG, or WebP output for design visualization and presentations.
Instructions
Generate an architectural image from text. Choose width and height (128–2048 pixels) and png, jpg or webp format. Image inputs accept public HTTPS URLs or image data URIs. Charges the API account; cost and balance are in USD.
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>",
"outputFormat": "<outputFormat>",
"outputWidth": "<outputWidth>",
"outputHeight": "<outputHeight>"
},
"name": "text_to_image"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| prompt | Yes | Text description of the architectural image to generate. | |
| outputWidth | Yes | Output image width in pixels (128–2048). | |
| outputFormat | Yes | Output image format: png, jpg, or webp (avif is not supported for text-to-image). | |
| outputHeight | Yes | Output image height in pixels (128–2048). | |
| negativePrompt | No | Optional text describing elements to exclude from the output. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| code | No | ||
| cost | No | ||
| error | No | ||
| output | No | URLs of generated images, or a video URL for animate. | |
| balance | No | ||
| requestId | No |