Text to Image
text-to-imageGenerate images from text prompts using AI models. Returns a request ID that can be used with fetch-image to retrieve results. Supports various AI image generation models.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| width | No | Image width in pixels (512-1024). | |
| height | No | Image height in pixels (512-1024). | |
| prompt | Yes | Text description of the image to generate. | |
| samples | No | Number of images to generate (1-4). | |
| webhook | No | URL to receive webhook notification when generation completes. | |
| model_id | Yes | The model ID to use for image generation (e.g., "flux-dev", "sdxl"). | |
| track_id | No | Custom tracking ID for the request. | |
| aspect_ratio | No | Aspect ratio for the image (e.g., "1:1", "16:9", "9:16"). | |
| negative_prompt | No | Text describing what to avoid in the image. |