Generate Images (OpenAI Compatible API)
Generate an image based on input parameters using an OpenAI compatible endpoint. This endpoint does not support the full feature set of the Venice Image Generation endpoint, but is compatible with the existing OpenAI endpoint.
Authorizations
Bearer authentication header of the form Bearer <token>
, where <token>
is your auth token.
Headers
Supported compression encodings (gzip, br).
"gzip, br"
Body
A text description of the desired image.
1 - 1500
"A beautiful sunset over mountain ranges"
This parameter is not used in Venice image generation but is supported for compatibility with OpenAI API
transparent
, opaque
, auto
"auto"
The model to use for image generation. Defaults to Venice's default image model. If a non-existent model is specified (ie an OpenAI model name), it will default to Venice's default image model.
"venice-sd35"
auto enables safe venice mode which will blur out adult content. low disables safe venice mode.
low
, auto
"auto"
Number of images to generate. Venice presently only supports 1 image per request.
1 <= x <= 1
1
This parameter is not used in Venice image generation but is supported for compatibility with OpenAI API
0 <= x <= 100
Output format for generated images
jpeg
, png
, webp
"png"
This parameter is not used in Venice image generation but is supported for compatibility with OpenAI API
auto
, high
, medium
, low
, hd
, standard
"auto"
Response format. URL will be a data URL.
b64_json
, url
"b64_json"
Size of generated images. Default is 1024x1024
auto
, 256x256
, 512x512
, 1024x1024
, 1536x1024
, 1024x1536
, 1792x1024
, 1024x1792
"1024x1024"
This parameter is not used in Venice image generation but is supported for compatibility with OpenAI API
vivid
, natural
"natural"
This parameter is not used in Venice image generation but is supported for compatibility with OpenAI API
"user123"