Create image
create_image_fileGenerate image files from text prompts or reference images for text-to-image, image-to-image, and image-edit tasks. Set model, size, format, and output options to produce saved image results.
Instructions
Creates an image given a prompt.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| n | No | ||
| seed | No | ||
| size | No | ||
| user | No | ||
| async | No | ||
| image | No | Local reference image upload for compatible image-to-image models. Pass local file path. | |
| model | Yes | Model to use. Send this explicitly. | |
| style | No | ||
| prompt | Yes | Image description | |
| quality | No | ||
| mask_url | No | ||
| operation | No | ||
| background | No | ||
| image_urls | No | Comma-separated reference image URLs. | |
| moderation | No | ||
| resolution | No | ||
| compression | No | ||
| aspect_ratio | No | ||
| expand_prompt | No | ||
| output_format | No | ||
| prompt_extend | No | For z-image-turbo, enable prompt expansion. Defaults to false. Enabling it uses the model's prompt-… | |
| negative_prompt | No | ||
| response_format | No | ||
| output_compression | No | ||
| reference_image_urls | No | Comma-separated reference image URLs for compatible model families. | |
| X-TokenLab-Delivery-Policy | No | Per-request Delivery policy. Overrides the API key and Workspace defaults. Auto tries TokenLab Veri… |