Classic text to image via gpt image 1. Reliable AI art generation for any prompt, from simple to complex.
Response Example
| Parameter | Type | Required | Default | Range | Description |
|---|---|---|---|---|---|
model | string | ✅ Yes | - | gpt-image-1.5-plusgpt-image-2-plus | The model to use for image generation. |
prompt | string | ✅ Yes | - | - | A text description of the desired image(s). The maximum length is 32000 characters. |
size | string | ❌ No | auto | auto1536x10241024x15361672x941941x1672 | The size of the generated images. |
| Error Code | Error Name | Description |
|---|---|---|
| 401 | Unauthorized | API key is missing or invalid |
| 403 | Forbidden | Your API key doesn’t have permission to access this resource, or insufficient balance for the requested operation |
| 429 | Too Many Requests | You’ve exceeded your rate limit |
| 500 | Internal server error | An internal server error occurred |
| 503 | Content policy violation | Content blocked due to safety concerns (actual status code is 400) |