{"uid":"cap_jU_UMgWtpiWOycCgXazli","slug":"venice-ai-image-generation-32bbbaa1","name":"Venice AI Image Generation","description":"Image generation (Venice native).","url":"https://api.venice.ai/api/v1/image/generate?utm_source=zero.xyz","method":"POST","headers":{},"bodySchema":{"type":"object","required":["model","prompt"],"properties":{"seed":{"type":"integer","default":0,"example":123456789,"maximum":999999999,"minimum":-999999999,"description":"Random seed for generation. If not provided, a random seed will be used."},"model":{"type":"string","example":"grok-imagine-image","description":"The model to use for image generation."},"steps":{"type":"integer","default":8,"example":8,"description":"Number of inference steps. This model does not support steps - this field is ignored."},"width":{"type":"integer","default":1024,"example":1024,"maximum":1280,"minimum":0,"description":"Width of the generated image.","exclusiveMinimum":true},"format":{"enum":["jpeg","png","webp"],"type":"string","default":"webp","example":"webp","description":"The image format to return. WebP are smaller and optimized for web use. PNG are higher quality but larger in file size. "},"height":{"type":"integer","default":1024,"example":1024,"maximum":1280,"minimum":0,"description":"Height of the generated image.","exclusiveMinimum":true},"prompt":{"type":"string","example":"A beautiful sunset over a mountain range","maxLength":7500,"minLength":1,"description":"The description for the image. Character limit is model specific and is listed in the promptCharacterLimit setting in the model list endpoint."},"inpaint":{"nullable":true,"deprecated":true,"description":"This feature is deprecated and was disabled on May 19th, 2025. A revised in-painting API will be launched in the near future."},"quality":{"enum":["low","medium","high"],"type":"string","example":"high","description":"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."},"variants":{"type":"integer","example":3,"maximum":4,"minimum":1,"description":"Number of images to generate (1–4). Only supported when return_binary is false."},"cfg_scale":{"type":"number","example":7.5,"maximum":20,"minimum":0,"description":"CFG scale parameter. Higher values lead to more adherence to the prompt.","exclusiveMinimum":true},"safe_mode":{"type":"boolean","default":true,"example":false,"description":"Whether to use safe mode. If enabled, this will blur images that are classified as having adult content."},"resolution":{"type":"string","example":"1K","description":"Resolution (utilized by certain image models including Nano Banana). Examples: \"1K\", \"2K\", \"4K\"."},"aspect_ratio":{"type":"string","example":"1:1","description":"Aspect ratio (utilized by certain image models including Nano Banana). Examples: \"1:1\", \"16:9\"."},"style_preset":{"type":"string","example":"3D Model","description":"An image style to apply to the image. Visit https://docs.venice.ai/api-reference/endpoint/image/styles for more details."},"lora_strength":{"type":"integer","example":50,"maximum":100,"minimum":0,"description":"Lora strength for the model. Only applies if the model uses additional Loras."},"return_binary":{"type":"boolean","default":false,"example":false,"description":"Whether to return binary image data instead of base64."},"hide_watermark":{"type":"boolean","default":false,"example":false,"description":"Whether to hide the Venice watermark. Venice may ignore this parameter for certain generated content."},"negative_prompt":{"type":"string","example":"Clouds, Rain, Snow","maxLength":7500,"description":"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."},"enable_web_search":{"type":"boolean","example":false,"description":"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."},"embed_exif_metadata":{"type":"boolean","default":false,"example":false,"description":"Embed prompt generation information into the image's EXIF metadata."}},"additionalProperties":false},"responseSchema":{"type":"object","required":["id","images","timing"],"properties":{"id":{"type":"string","example":"generate-image-1234567890","description":"The ID of the request."},"images":{"type":"array","items":{"type":"string"},"description":"Base64 encoded image data."},"timing":{"type":"object","required":["inferenceDuration","inferencePreprocessingTime","inferenceQueueTime","total"],"properties":{"total":{"type":"number","description":"Total duration of the request in milliseconds"},"inferenceDuration":{"type":"number","description":"Duration of inference in milliseconds"},"inferenceQueueTime":{"type":"number","description":"Duration of queueing in milliseconds"},"inferencePreprocessingTime":{"type":"number","description":"Duration of preprocessing in milliseconds"}}},"request":{"nullable":true,"description":"The original request data sent to the API."}}},"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"10","displayCostAsset":"USDC","priceDynamic":false,"priceHint":null,"priceStatus":"priced","priceSource":"registry","requiresHandshake":false,"reviewCount":0,"rating":{"score":"0.00","successRate":"0.00","reviews":0,"stars":null,"state":"unrated"},"availabilityStatus":"unknown","priceObserved":null,"sessionDeposit":null,"pricing":{"kind":"static","summary":"$10/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"10","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"10","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_9vPUBOYlRHO5W53uI7wvp","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"10","costPer":"request","priority":0,"asset":"0x833589fcd6edb6e08f4c7c32d4f71b54bda02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Generates one or more images from a text prompt using configurable AI models, returning base64-encoded image data","exampleAgentPrompt":"Generate an image of a futuristic city skyline at night with neon lights reflecting off rain-soaked streets — use the flux-dev model, make it 1280x1024, PNG format, high quality, and give me 2 variants.","exampleUseCases":null,"resultDescription":"Returns a JSON object containing a request ID, an array of base64-encoded image strings (one per variant), and a timing breakdown including total duration, inference duration, queue time, and preprocessing time. Images are in the requested format (jpeg, png, or webp).","failureModes":["402 Payment Required — insufficient USDC balance; response includes top-up instructions for x402 wallet","400 Bad Request — missing required fields (model or prompt), prompt exceeds character limit, or invalid dimension values","401 Unauthorized — missing or invalid Bearer token or X-Sign-In-With-X header","422 Unprocessable Entity — invalid enum values for format or quality, or out-of-range numeric parameters","503/timeout — model inference queue overloaded or model unavailable"],"whenToPreferThis":"Use this endpoint when you need to generate images from text prompts via Venice AI's private, uncensored generative models with flexible output format, size, and quality controls. Prefer this over OpenAI image endpoints when privacy is a priority or when using x402 wallet-based micropayments. Best when you need multiple variants or reproducible outputs via seed control.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":2,"lastUsedAt":"2026-10-08T20:29:41.778Z","lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-12T04:21:03.060Z","isFirstParty":false,"canonicalSlug":"venice-ai-image-generation-32bbbaa1"}