Images
Generate and edit images using AI models like DALL-E and GPT-Image.
The Images API generates and edits images using AI models like DALL-E and
GPT-Image. It mirrors OpenAI's images.generate and images.edit so any
official OpenAI SDK works out of the box - just point baseURL at
https://api.aivene.com/v1.
POST /v1/images/generations
POST /v1/images/editsSend a text prompt and get back one or more generated images as URLs or base64-encoded data. For edits, provide a source image and optional mask to inpaint specific regions.
What you can do
- Generate images - create images from text descriptions.
- Edit images - modify existing images with inpainting and masks.
- Multiple sizes - output 256x256 up to 1792x1024 depending on model.
- Quality control - choose between standard and HD quality.
Browse available models at Models.
Endpoints
| Method | Endpoint | Description |
|---|---|---|
| POST | /v1/images/generations | Create image |
| POST | /v1/images/edits | Edit image |
Every endpoint expects a bearer token in the Authorization header.
Create keys at Manage API Keys.
Errors
All errors follow the OpenAI structured shape:
{ "error": { "type": "invalid_request_error", "message": "..." } }| Status | error.type | Meaning |
|---|---|---|
400 | invalid_request_error | Schema violation or content policy rejection. |
401 | authentication_error | Missing or invalid API key. |
402 | billing_error | Account out of credit or hit a spend limit. |
429 | rate_limit_error | RPM exceeded. Respect Retry-After. |
500 | internal_server_error | Unexpected gateway failure. |