Generate Images
Generate an image based on input parameters
Postman Collection
For additional examples, please see this Postman Collection.
Authorizations
Bearer authentication header of the form Bearer <token>
, where <token>
is your auth token.
Headers
Supported compression encodings (gzip, br). Only applied when return_binary is false.
"gzip, br"
Body
The model to use for image generation.
"venice-sd35"
The description for the image. Character limit is model specific and is listed in the promptCharacterLimit setting in the model list endpoint.
1 - 1500
"A beautiful sunset over a mountain range"
CFG scale parameter. Higher values lead to more adherence to the prompt.
0 < x <= 20
7.5
Embed prompt generation information into the image's EXIF metadata.
false
The image format to return. WebP are smaller and optimized for web use. PNG are higher quality but larger in file size.
jpeg
, png
, webp
"webp"
Height of the generated image. Each model has a specific height and width divisor listed in the widthHeightDivisor constraint in the model list endpoint.
0 < x <= 1280
1024
Whether to hide the Venice watermark. Venice may ignore this parameter for certain generated content.
false
Lora strength for the model. Only applies if the model uses additional Loras.
0 <= x <= 100
50
A description of what should not be in the image. Character limit is model specific and is listed in the promptCharacterLimit constraint in the model list endpoint.
1500
"Clouds, Rain, Snow"
Whether to return binary image data instead of base64.
false
Whether to use safe mode. If enabled, this will blur images that are classified as having adult content.
false
Random seed for generation. If not provided, a random seed will be used.
-999999999 <= x <= 999999999
123456789
Number of inference steps. The following models have reduced max steps from the global max: venice-sd35: 30 max steps, flux-dev: 30 max steps, flux-dev-uncensored: 30 max steps, stable-diffusion-3.5: 30 max steps. These constraints are exposed in the model list endpoint for each model.
0 < x <= 30
20
An image style to apply to the image. Visit https://docs.venice.ai/api-reference/endpoint/image/styles for more details.
"3D Model"
Width of the generated image. Each model has a specific height and width divisor listed in the widthHeightDivisor constraint in the model list endpoint.
0 < x <= 1280
1024