POST
/
images
/
generations
curl --request POST \
  --url https://api.venice.ai/api/v1/images/generations \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '{
  "background": "auto",
  "model": "venice-sd35",
  "moderation": "auto",
  "n": 1,
  "output_compression": 100,
  "output_format": "png",
  "prompt": "A beautiful sunset over mountain ranges",
  "quality": "auto",
  "response_format": "b64_json",
  "size": "1024x1024",
  "style": "natural",
  "user": "user123"
}'
{
  "created": 1713833628,
  "data": [
    {
      "b64_json": "iVBORw0KGgoAAAANSUhEUgAA..."
    }
  ]
}

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Headers

Accept-Encoding
string

Supported compression encodings (gzip, br).

Example:

"gzip, br"

Body

application/json

Response

200
application/json

Successfully generated image

The response is of type object.