参数
| 参数名 | 描述 | 类型 | 必填 | 枚举值 |
|---|---|---|---|---|
| prompt | Image description text, supports Chinese and English | string | 是 | - |
| subject_reference_images | Reference image URLs for image-to-image generation. Supports public HTTPS URLs or Base64 Data URLs | string[] | 是 | - |
| aspect_ratio | Image aspect ratio. If both aspect_ratio and width/height are provided, aspect_ratio takes priority | string | 否 | 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 | 否 | - |
| n | Number of images to generate per request | integer | 否 | - |
| prompt_optimizer | Enable automatic prompt optimization to improve generation quality | boolean | 否 | true, false |
| seed | Random seed for reproducible results. Use the same seed with same parameters to generate identical images | integer | 否 | - |
| 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 | 否 | - |
价格
单位: $/img
| 价格 |
|---|
| $0.0050/img |
