Generate Image

POST
/v1/images/generations
model?string|null

The model to use for image generation.

n?integer|null

The number of images to generate. Must be between 1 and 10. For dall-e-3, only n=1 is supported.

Formatint32
Range0 <= value
promptstring

A text description of the desired image(s). The maximum length is 1000 characters for dall-e-2 and 4000 characters for dall-e-3.

quality?null|ImageQuality
response_format?null|ResponseFormat
size?null|ImageSize
style?null|ImageStyle
user?string|null

A unique identifier representing your end-user, which can help OpenAI to monitor and detect abuse.

Response Body

application/json

curl -X POST "https://oai.endpoints.kepler.ai.cloud.ovh.net/v1/images/generations" \  -H "Content-Type: application/json" \  -d '{    "prompt": "string"  }'
{
  "created": 0,
  "data": [
    {
      "revised_prompt": "string",
      "url": "string"
    }
  ]
}