Text To Image
text_to_imageCreate images from text prompts using AI diffusion models, with controls for model, size, steps, seed and negative prompts. Returns the generated image URL.
Instructions
Generate image from text prompt using AI diffusion models.
Creates images from text descriptions. Returns the generated image URL.
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>",
"model": "<model>"
},
"name": "text_to_image"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| seed | No | Random seed for reproducibility | |
| loras | No | LoRA adapters to apply: [{'name': str, 'weight': float}]. Only for models that list them | |
| model | Yes | AI model name (e.g., 'Flux1schnell', 'ZImageTurbo_INT8') | |
| steps | No | Number of diffusion steps. Defaults to the model's own value (see the model list); each model has its own range and some fix it | |
| width | No | Image width in pixels. Defaults to the model's own value (see the model list) | |
| height | No | Image height in pixels. Defaults to the model's own value (see the model list) | |
| prompt | Yes | Text description of the image you want to generate | |
| quality | No | Quality tier for models that price by tier, e.g. 'low', 'medium', 'high' on gpt-image-1.5. Check the model card; costs vary sharply between tiers | |
| webhook_url | No | HTTPS URL for deAPI to call when this job finishes. Notifies your own systems; the tool still returns the result here | |
| enhance_prompt | No | Let the API expand the prompt before generating | |
| guidance_scale | No | How closely to follow the prompt. Leave unset to use the model's own default | |
| webhook_secret | No | 32-255 char key deAPI signs the callback with (HMAC-SHA256). Needs webhook_url. A secret given in chat stays in the transcript | |
| negative_prompt | No | Things to exclude from the image (optional) |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||