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.
"fluently-xl"
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"
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"
An image style to apply to the image. Visit https://docs.venice.ai/apiv1imagegenerate for more details.
"3D Model"
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
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
Number of inference steps. The following models have reduced max steps from the global max: 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 <= 50
20
CFG scale parameter. Higher values lead to more adherence to the prompt.
0 < x <= 20
7.5
Random seed for generation. If not provided, a random seed will be used.
-999999999 <= x <= 999999999
123456789
Lora strength for the model. Only applies if the model uses additional Loras.
0 <= x <= 100
50
Whether to use safe mode. If enabled, this will blur images that are classified as having adult content.
false
Whether to return binary image data instead of base64.
false
Whether to hide the Venice watermark. Venice may ignore this parameter for certain generated content.
false
The image format to return. WebP are smaller and optimized for web use. PNG are higher quality but larger in file size. NOTE: This currently defaults to PNG but will change in the future to WebP. If you wish to receive PNGs, ensure your API call specifies the format.
webp
, png
"webp"
Embed prompt generation information into the image's EXIF metadata.
false