이미지 생성
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.
크기 옵션
이미지 모델은 모델별 크기 매개변수를 사용합니다:- 픽셀 기반 모델은
width와height를 허용합니다(예:venice-sd35,qwen-image). - 종횡비 모델은
aspect_ratio를 허용합니다(예:qwen-image-2). - 해상도 등급 모델은
aspect_ratio와resolution둘 다 허용합니다.
gpt-image-2, nano-banana-2, nano-banana-pro는 resolution 값으로 1K, 2K, 4K를 지원합니다:
resolution 없이 aspect_ratio를 전송하세요:
width와 height를 대신 전송하세요:
품질 등급
일부 모델은 시각적 충실도와 비용 간의 균형을 맞추는 선택적quality 매개변수(low, medium, high)를 허용합니다. 현재 gpt-image-2에서 지원되며, 다른 모델은 이 매개변수를 무시합니다.
quality를 생략하면 모델은 기본 등급(gpt-image-2의 경우 high)을 사용합니다. 가격은 resolution과 quality의 조합에 따라 다릅니다 — gpt-image-2의 등급별 가격(1K/2K/4K × low/medium/high)은 모델 엔드포인트의 model_spec.pricing.quality 아래에 노출되어 있으며 가격 개요에 나열되어 있습니다.
quality를 생략한 요청은 모델의 기본 등급(gpt-image-2의 경우 high)으로 청구됩니다.Postman 컬렉션
추가 예제는 이 Postman 컬렉션을 참조하세요.인증
Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
헤더
Supported compression encodings (gzip, br). Only applied when return_binary is false.
"gzip, br"
본문
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