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/edits

Send 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

MethodEndpointDescription
POST/v1/images/generationsCreate image
POST/v1/images/editsEdit 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": "..." } }
Statuserror.typeMeaning
400invalid_request_errorSchema violation or content policy rejection.
401authentication_errorMissing or invalid API key.
402billing_errorAccount out of credit or hit a spend limit.
429rate_limit_errorRPM exceeded. Respect Retry-After.
500internal_server_errorUnexpected gateway failure.