Parameters
| Name | Description | Type | Required | Enums |
|---|---|---|---|---|
| prompt | Image description text, supports Chinese and English | string | Yes | - |
| subject_reference_images | Reference image URLs for image-to-image generation. Supports public HTTPS URLs or Base64 Data URLs | string[] | Yes | - |
| aspect_ratio | Image aspect ratio. If both aspect_ratio and width/height are provided, aspect_ratio takes priority | string | No | 1:1, 16:9, 4:3, 3:2, 2:3, 3:4, 9:16, 21:9 |
| height | Image height in pixels (must be used with width). Must be divisible by 8. If aspect_ratio is provided, width/height will be ignored | integer | No | - |
| n | Number of images to generate per request | integer | No | - |
| prompt_optimizer | Enable automatic prompt optimization to improve generation quality | boolean | No | true, false |
| seed | Random seed for reproducible results. Use the same seed with same parameters to generate identical images | integer | No | - |
| width | Image width in pixels (must be used with height). Must be divisible by 8. If aspect_ratio is provided, width/height will be ignored | integer | No | - |
Pricing
Unit: $/img
| Pricing |
|---|
| $0.0050/img |
