Bilder generieren
Generate an image based on input parameters
Authentication: This endpoint accepts either a Bearer API key or a SIGN-IN-WITH-X header for x402 wallet-based authentication. The legacy X-Sign-In-With-X header is also accepted during migration. When using x402, a 402 Payment Required response indicates insufficient balance and includes top-up instructions.
Größenoptionen
Bildmodelle verwenden modellspezifische Parameter für die Bildgröße:- Pixelbasierte Modelle akzeptieren
widthundheight, zum Beispielvenice-sd35undqwen-image. - Seitenverhältnis-Modelle akzeptieren
aspect_ratio, zum Beispielqwen-image-2. - Auflösungsstufen-Modelle akzeptieren sowohl
aspect_ratioals auchresolution.
gpt-image-2, nano-banana-2 und nano-banana-pro resolution-Werte von 1K, 2K und 4K:
aspect_ratio ohne resolution:
width und height:
Qualitätsstufen
Einige Modelle akzeptieren einen optionalen Parameterquality (low, medium, high), der visuelle Qualität gegen Kosten abwägt. Derzeit von gpt-image-2 unterstützt; andere Modelle ignorieren den Parameter.
quality weglassen, verwendet das Modell seine Standardstufe (high für gpt-image-2). Die Preise hängen von der Kombination aus resolution und quality ab — die Preise pro Stufe für gpt-image-2 (1K/2K/4K × low/medium/high) sind unter model_spec.pricing.quality im Models-Endpoint sichtbar und in der Preisübersicht aufgeführt.
quality weggelassen wird, werden mit der Standardstufe des Modells abgerechnet (high für gpt-image-2).Postman-Collection
Weitere Beispiele finden Sie in dieser Postman-Collection.Autorisierungen
Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Header
Supported compression encodings (gzip, br). Only applied when return_binary is false.
"gzip, br"
Body
The model to use for image generation.
"grok-imagine-image"
The description for the image. Character limit is model specific and is listed in the promptCharacterLimit setting in the model list endpoint.
1 - 7500"A beautiful sunset over a mountain range"
CFG scale parameter. Higher values lead to more adherence to the prompt.
0 < x <= 207.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.
0 < x <= 12801024
Whether to hide the Venice watermark. Venice may ignore this parameter for certain generated content.
false
This feature is deprecated and was disabled on May 19th, 2025. A revised in-painting API will be launched in the near future.
Lora strength for the model. Only applies if the model uses additional Loras.
0 <= x <= 10050
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.
7500"Clouds, Rain, Snow"
Whether to return binary image data instead of base64.
false
Number of images to generate (1–4). Only supported when return_binary is false.
1 <= x <= 43
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 <= 999999999123456789
Number of inference steps. This model does not support steps - this field is ignored.
8
An image style to apply to the image. Visit https://docs.venice.ai/api-reference/endpoint/image/styles for more details.
"3D Model"
Aspect ratio (utilized by certain image models including Nano Banana). Examples: "1:1", "16:9".
"1:1"
Resolution (utilized by certain image models including Nano Banana). Examples: "1K", "2K", "4K".
"1K"
Output quality for supported models (e.g. GPT Image 2 / GPT Image 2 Edit). Higher values can increase the final request charge. See the model list for supported options.
low, medium, high "high"
Enable web search for the image generation task. This will allow the model to use the latest information from the web to generate the image. Only supported by certain models. If web search is used, additional credits are getting charged.
false
Width of the generated image.
0 < x <= 12801024