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. A 401 response with code X402_USER_NOT_ALLOWED means the wallet’s Venice account is banned or deleted, or the wallet’s x402 credit account belongs to a different user.
{
"error": "This API key is restricted to configured IP addresses, and this request's source IP is not allowed"
}
{
"error": "<string>"
}
{
"error": "<string>",
"suggested_prompt": "A watercolor painting of a lighthouse on a rocky coast at sunset.",
"recommended_model": "chroma",
"retryable": true
}
Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
请求头
Accept-Encoding
string
Supported compression encodings (gzip, br). Only applied when return_binary is false.
示例:
"gzip, br"
请求体
application/json
model
string
必填
The model to use for image generation.
示例:
"grok-imagine-image"
prompt
string
必填
The description for the image. Character limit is model specific and is listed in the promptCharacterLimit setting in the model list endpoint.
Required string length: 1 - 7500
示例:
"A beautiful sunset over a mountain range"
anon_user_id
string
Optional identifier for the API customer's end user. Combined with the Venice user id when attributing the request to upstream providers. Distinct from the discarded OpenAI user field. Must be printable ASCII and must not contain ||.
Required string length: 1 - 128
Pattern: ^[\x20-\x7E]+$
示例:
"end-user-123"
cfg_scale
number
CFG scale parameter. Higher values lead to more adherence to the prompt.
必填范围: 0 < x <= 20
示例:
7.5
embed_exif_metadata
boolean
默认值:false
Embed prompt generation information into the image's EXIF metadata.
示例:
false
format
enum<string>
默认值:webp
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
integer
默认值:1024
Height of the generated image, in pixels (max 4096). For models that list aspect ratios, width and height select the nearest aspect_ratio and a resolution tier (long edge above 1536 → 2K, above 3072 → 4K; the highest offered tier at or below that, otherwise the model default). An explicit aspect_ratio or resolution overrides only its own value. For models that render an exact canvas, each side must be at most 1280 before any model upscale.
必填范围: 0 < x <= 4096
示例:
1024
hide_watermark
boolean
默认值:false
Whether to hide the Venice watermark. Venice may ignore this parameter for certain generated content.
示例:
false
inpaint
any | null
已弃用
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
integer
Lora strength for the model. Only applies if the model uses additional Loras.
必填范围: 0 <= x <= 100
示例:
50
negative_prompt
string
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.
Maximum string length: 7500
示例:
"Clouds, Rain, Snow"
return_binary
boolean
默认值:false
Whether to return binary image data instead of base64.
示例:
false
variants
integer
Number of images to generate (1–4). Only supported when return_binary is false. Variants the model provider explicitly rejects under its content policy are omitted from a successful partial response. Other moderation outcomes can still return blacked-out images; check x-venice-is-content-violation.
必填范围: 1 <= x <= 4
示例:
3
safe_mode
boolean
默认值:true
Whether to blur images classified as adult content. Defaults to true. Set to false to receive unblurred output. No Pro subscription is required, and the mature filter setting in the Venice app does not affect this. The x-venice-is-blurred response header reports whether the returned image was blurred.
示例:
false
seed
integer
默认值:0
Random seed for generation. If not provided, a random seed will be used.
必填范围: -999999999 <= x <= 999999999
示例:
123456789
steps
integer
默认值:8
Number of inference steps. This model does not support steps - this field is ignored.
Aspect ratio (utilized by certain image models including Nano Banana). Examples: "1:1", "16:9".
示例:
"1:1"
resolution
string
Resolution (utilized by certain image models including Nano Banana). Examples: "1K", "2K", "4K".
示例:
"1K"
quality
enum<string>
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"
transparent_background
boolean
Return the image with a transparent background (alpha channel). Only supported by models with supportsTransparentBackground: true in their constraints (see GET /api/v1/models), and requires format png or webp; otherwise the request is rejected. Omit or set to false to keep the model default background.
示例:
false
enable_web_search
boolean
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
disable_prompt_optimization_thinking
boolean
Skip the model's prompt-optimization thinking step for faster generation. Only supported by models with supportsOptimizePromptThinking; ignored by others. Omit to use the model default.
示例:
false
enhance_prompt
boolean
Rewrite the prompt before generation to add clarifying visual detail. Additional credits are charged when a rewrite is generated. Adds up to ~30 seconds before generation starts. When enhancement is applied, the final prompt is returned URL-encoded in the x-venice-enhanced-prompt response header. Defaults to false.
示例:
false
width
integer
默认值:1024
Width of the generated image, in pixels (max 4096). For models that list aspect ratios, width and height select the nearest aspect_ratio and a resolution tier (long edge above 1536 → 2K, above 3072 → 4K; the highest offered tier at or below that, otherwise the model default). An explicit aspect_ratio or resolution overrides only its own value. For models that render an exact canvas, each side must be at most 1280 before any model upscale.
必填范围: 0 < x <= 4096
示例:
1024
style_references
object[]
Style reference images that guide the aesthetic of the generated image. Only supported by models with supportsStyleReferences: true (see GET /api/v1/models for the per-model maxStyleReferences limit).
Base64 encoded image data. A partial response can contain fewer entries than requested.
timing
object
必填
Show child attributes
content_policy_violation_count
integer
Number of requested variants omitted because the model provider explicitly rejected them under its content policy. Other moderation outcomes can still return blacked-out images flagged by x-venice-is-content-violation.
{
"error": "This API key is restricted to configured IP addresses, and this request's source IP is not allowed"
}
{
"error": "<string>"
}
{
"error": "<string>",
"suggested_prompt": "A watercolor painting of a lighthouse on a rocky coast at sunset.",
"recommended_model": "chroma",
"retryable": true
}
{
"error": "<string>"
}
{
"error": "<string>"
}
{
"error": "<string>"
}
{"docsConfig":{"theme":"luma","$schema":"https://mintlify.com/docs.json","name":"Venice API Docs","colors":{"primary":"#125DA3","light":"#4898E6","dark":"#125DA3"},"logo":{"light":"https://mintcdn.com/veniceai/gFXvp87w4B810n0Y/logo/light.svg?fit=max\u0026auto=format\u0026n=gFXvp87w4B810n0Y\u0026q=85\u0026s=121558c3bff1e4e012fcd34bdc50555c","dark":"https://mintcdn.com/veniceai/0vNwudF9KfvWPUSs/logo/dark.svg?fit=max\u0026auto=format\u0026n=0vNwudF9KfvWPUSs\u0026q=85\u0026s=79383337fb486ba06afb95cb7d0b4bf7","href":"https://venice.ai/?utm_source=venice-api-documentation"},"favicon":"https://mintcdn.com/veniceai/wJjdz14nrhedln0s/favicon.png?fit=max\u0026auto=format\u0026n=wJjdz14nrhedln0s\u0026q=85\u0026s=171a8dd0d43182f3b386c25e13152d92","api":{"openapi":"swagger.yaml","playground":{"proxy":false},"mdx":{"auth":{"method":"bearer"},"server":"https://api.venice.ai/api/v1"}},"appearance":{"default":"dark"},"background":{"color":{"light":"#FFFFFF","dark":"#0E1217"}},"navbar":{"links":[],"primary":{"type":"button","label":"Try Venice","href":"https://venice.ai/chat?utm_source=venice-api-documentation"}},"footer":{"socials":{"x":"https://x.com/veniceai","discord":"https://discord.gg/askvenice","github":"https://github.com/veniceai","linkedin":"https://www.linkedin.com/company/venice-ai"}},"seo":{"metatags":{"og:site_name":"Venice API Docs","og:locale":"en_US","og:logo":"/logo/light.svg","article:publisher":"Venice AI","twitter:site":"@veniceai"},"indexing":"navigable"},"icons":{"library":"tabler"},"styling":{"codeblocks":"system","latex":true},"integrations":{"gtm":{"tagId":"GTM-KFP6HX49"},"plausible":{"domain":"docs.venice.ai"}},"contextual":{"options":["copy","view","chatgpt","claude","mcp","cursor","vscode","download-spec"],"display":"header"},"markdown":{"instructions":["The Venice API is OpenAI-compatible: use any OpenAI SDK with the base URL `https://api.venice.ai/api/v1` and a Venice API key, or pay per request from a USDC wallet through x402 with no account.","Read model IDs from `GET /models` or `GET /models/traits` at runtime instead of hardcoding them from memory or from these pages. Models are added and retired often.","Every model's price is in https://docs.venice.ai/pricing.md. Quote video and audio jobs with `POST /video/quote` or `POST /audio/quote` before you queue them.","Search these docs from an MCP client at https://docs.venice.ai/mcp. The full agent guide is https://docs.venice.ai/agents.md."]},"navigation":{"languages":[{"language":"en","default":true,"href":"overview/about-venice"},{"language":"pt-BR","href":"pt-BR/overview/about-venice"},{"language":"ar","href":"ar/overview/about-venice"},{"language":"it","href":"it/overview/about-venice"},{"language":"de","href":"de/overview/about-venice"},{"language":"es","href":"es/overview/about-venice"},{"language":"fr","href":"fr/overview/about-venice"},{"language":"zh","href":"zh/overview/about-venice"},{"language":"ko","href":"ko/overview/about-venice"}]}},"deployment":{"deploymentMetadataValue":{"subdomain":"veniceai","hasAudioNarration":false,"actualSubdomain":"veniceai","customDomains":["docs.venice.ai"],"gitSource":{"type":"github","owner":"veniceai","repo":"api-docs","deployBranch":"main","contentDirectory":"","isPrivate":false,"mountPath":"","label":""},"feedback":{"edits":true,"issues":true,"thumbs":true},"entitlements":{"AI_CHAT":{"status":"ENABLED"},"WEB_MCP":{"status":"ENABLED"},"NARRATION":{"status":"ENABLED"}},"buildId":"6b06e0f3ed766d66afcf2af0","clientVersion":"0.0.4304","searchFilterCounts":[{"language":"en","tag":"Models","count":620},{"language":"ar","tag":"النماذج","count":590},{"language":"de","tag":"Modelle","count":590},{"language":"es","tag":"Modelos","count":590},{"language":"fr","tag":"Modèles","count":590},{"language":"it","tag":"Modelli","count":590},{"language":"ko","tag":"모델","count":590},{"language":"pt-BR","tag":"Modelos","count":590},{"language":"zh","tag":"模型","count":590},{"language":"en","tag":"Docs","count":78},{"language":"ar","tag":"التوثيق","count":78},{"language":"de","tag":"Dokumentation","count":78},{"language":"es","tag":"Documentación","count":78},{"language":"fr","tag":"Documentation","count":78},{"language":"it","tag":"Documentazione","count":78},{"language":"ko","tag":"문서","count":78},{"language":"pt-BR","tag":"Documentação","count":78},{"language":"zh","tag":"文档","count":78},{"language":"en","tag":"API Reference","count":58},{"language":"en","tag":"Venice APIs","count":58},{"language":"ar","tag":"مرجع الـ API","count":58},{"language":"ar","tag":"Venice APIs","count":58},{"language":"de","tag":"API-Referenz","count":58},{"language":"de","tag":"Venice APIs","count":58},{"language":"es","tag":"Referencia de la API","count":58},{"language":"es","tag":"Venice APIs","count":58},{"language":"fr","tag":"Référence de l'API","count":58},{"language":"fr","tag":"Venice APIs","count":58},{"language":"it","tag":"Riferimento API","count":58},{"language":"it","tag":"Venice APIs","count":58},{"language":"ko","tag":"API 레퍼런스","count":58},{"language":"ko","tag":"Venice APIs","count":58},{"language":"pt-BR","tag":"Referência da API","count":58},{"language":"pt-BR","tag":"Venice APIs","count":58},{"language":"zh","tag":"API 参考","count":58},{"language":"zh","tag":"Venice APIs","count":58},{"language":"en","tag":"Learn","count":22},{"language":"ar","tag":"تعلّم","count":22},{"language":"de","tag":"Lernen","count":22},{"language":"es","tag":"Aprender","count":22},{"language":"fr","tag":"Apprendre","count":22},{"language":"it","tag":"Impara","count":22},{"language":"ko","tag":"학습","count":22},{"language":"pt-BR","tag":"Aprender","count":22},{"language":"zh","tag":"学习","count":22},{"language":"en","tag":"Audio","count":18},{"language":"ar","tag":"الصوت","count":18},{"language":"de","tag":"Audio","count":18},{"language":"es","tag":"Audio","count":18},{"language":"fr","tag":"Audio","count":18},{"language":"it","tag":"Audio","count":18},{"language":"ko","tag":"오디오","count":18},{"language":"pt-BR","tag":"Áudio","count":18},{"language":"zh","tag":"音频","count":18},{"language":"it","tag":"Immagini","count":12},{"language":"ko","tag":"이미지","count":12},{"language":"zh","tag":"图像","count":12},{"language":"en","tag":"Text \u0026 Chat","count":11},{"language":"ar","tag":"النص والدردشة","count":11},{"language":"de","tag":"Text \u0026 Chat","count":11},{"language":"es","tag":"Texto y chat","count":11},{"language":"fr","tag":"Texte et chat","count":11},{"language":"it","tag":"Testo e chat","count":11},{"language":"ko","tag":"텍스트 및 채팅","count":11},{"language":"pt-BR","tag":"Texto e chat","count":11},{"language":"zh","tag":"文本与聊天","count":11},{"language":"en","tag":"Agents \u0026 Integrations","count":10},{"language":"ar","tag":"الوكلاء والتكاملات","count":10},{"language":"de","tag":"Agenten \u0026 Integrationen","count":10},{"language":"es","tag":"Agentes e integraciones","count":10},{"language":"fr","tag":"Agents et intégrations","count":10},{"language":"it","tag":"Agenti e integrazioni","count":10},{"language":"ko","tag":"에이전트 및 통합","count":10},{"language":"pt-BR","tag":"Agentes e integrações","count":10},{"language":"zh","tag":"智能体与集成","count":10},{"language":"en","tag":"Video","count":9},{"language":"ar","tag":"الفيديو","count":9},{"language":"de","tag":"Video","count":9},{"language":"es","tag":"Vídeo","count":9},{"language":"fr","tag":"Vidéo","count":9},{"language":"it","tag":"Video","count":9},{"language":"ko","tag":"비디오","count":9},{"language":"pt-BR","tag":"Vídeo","count":9},{"language":"zh","tag":"视频","count":9},{"language":"en","tag":"Coding Tools","count":8},{"language":"ar","tag":"أدوات البرمجة","count":8},{"language":"de","tag":"Coding-Tools","count":8},{"language":"es","tag":"Herramientas de código","count":8},{"language":"fr","tag":"Outils de code","count":8},{"language":"pt-BR","tag":"Ferramentas de código","count":8}]},"assistantConfig":{},"basePath":"","hasChatPermissions":true,"hasWebMcpPermissions":true,"toggles":[{"name":"kill-isr","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"custom-rbac-roles","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"agent-mintlify-slack","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"agent-integrations-settings","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"rbac-expansion","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"automations-pr-grouping","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"custom-prefix","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"analytics-v7","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"user-flows-analytics","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"no-publish-flow","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"snapshot-serving-live","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"stripTemperatureMiddleware","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"support-platform-pylon-zendesk","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"snapshot-serving","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"instant-rollback","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"granular-notifications-server","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"granular-notifications","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"automations-fable","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"fixed-ai-action-pricing","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"site-roles","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"automation-resolve-merge-conflict","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"scoped-publishing","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"mintql","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"page-level-analytics","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"editor-version-history-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"billing-page-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"full-page-search","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workspace-projects","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"fork-pr-previews","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"revalidation-jwt","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"hobby-abuse-scan","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"dashboard-inbox","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"turbopuffer-dual-write","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"approve-review-flow","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"editor-metadata","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"sso-setup-deadline-banner","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"turbopuffer-serve","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"live-agents","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"starter-pricing","enabled":true,"variant":{"name":"control","enabled":true,"payload":{"type":"string","value":"control"},"feature_enabled":true},"impressionData":false},{"name":"llms-txt-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"wildcard-email-auth","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false}],"googleFontsInlined":false},"customCss":[{"filePath":"style.css","content":":root{--venice-accent: #125DA3;--venice-good: #10b981}.dark,[data-theme=\"dark\"]{--venice-accent: #4898e6;--venice-good: #55d188;--gray-50: 247 245 237;--gray-100: 242 240 232;--gray-200: 238 237 228;--gray-300: 200 202 200;--gray-400: 138 148 156;--gray-500: 111 116 121;--gray-600: 77 84 91;--gray-700: 45 53 61;--gray-800: 24 30 36;--gray-900: 14 24 34;--gray-950: 6 9 13}.flex-1 .flex.items-center.gap-x-4 a img{height:50px}.venice-agents-cards{display:grid;grid-template-columns:repeat(3, minmax(0, 1fr));gap:14px;margin:20px 0 16px}@media (max-width: 900px){.venice-agents-cards{grid-template-columns:1fr}}.venice-section-header{text-align:left;margin:56px 0 20px}.venice-section-eyebrow{margin:0 0 8px;font-size:11px;font-weight:700;letter-spacing:0.14em;text-transform:uppercase;color:var(--venice-accent)!important}.venice-section-title{margin:0 0 8px;font-size:24px;line-height:1.2;font-weight:600}.venice-section-subtitle{margin:0;font-size:14px;line-height:1.5;opacity:0.68}.venice-subsection-title{margin:34px 0 14px;font-size:17px;line-height:1.3;font-weight:600}.venice-section-header+.venice-subsection-title{margin-top:20px}@media (max-width: 900px){.venice-section-title{font-size:22px}}.venice-pricing{margin:32px 0}.venice-pricing-grid{display:grid;grid-template-columns:repeat(3, minmax(0, 1fr));gap:14px}.venice-pricing-card{display:flex;flex-direction:column;padding:20px;border:1px solid rgba(128, 128, 128, 0.2);border-radius:14px;background:rgba(255, 255, 255, 0.55)}.dark .venice-pricing-card,[data-theme=\"dark\"] .venice-pricing-card{background:rgba(247, 245, 237, 0.025);border-color:rgba(247, 245, 237, 0.1)}.venice-pricing-card-head{display:flex;align-items:center;justify-content:space-between;gap:8px;margin-bottom:10px}.venice-pricing-card-name{display:block;font-size:18px;font-weight:700;color:inherit;white-space:nowrap}.venice-pricing-card-badge{display:inline-block;padding:3px 8px;border-radius:999px;background:rgba(128, 128, 128, 0.12);font-size:9.5px;font-weight:600;letter-spacing:0.06em;text-transform:uppercase;opacity:0.7;white-space:nowrap}.venice-pricing-card-desc{margin:0 0 14px;font-size:13px;line-height:1.5;opacity:0.75}.venice-pricing-card-list{list-style:none;padding:0;margin:0 0 18px;display:flex;flex-direction:column;gap:7px;flex:1}.venice-pricing-card-list li{position:relative;padding-left:20px;font-size:13px;line-height:1.45}.venice-pricing-card-list li::before{content:\"\";position:absolute;left:0;top:4px;width:12px;height:12px;background-image:url(\"data:image/svg+xml;utf8,\u003csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2310b981' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'>\u003cpolyline points='20 6 9 17 4 12'/>\u003c/svg>\");background-repeat:no-repeat;background-size:contain}.venice-pricing-card-cta{display:block;margin-top:auto;padding:9px 14px;border-radius:8px;background:#125DA3;color:#fff!important;font-size:13px;font-weight:600;text-align:center;text-decoration:none!important;transition:background 0.15s ease}.venice-pricing-card-cta:hover{background:#0e4a82}@media (max-width: 900px){.venice-pricing-grid{grid-template-columns:1fr}}.venice-models-grid{display:grid;grid-template-columns:repeat(3, minmax(0, 1fr));gap:14px;margin:20px 0 16px}.venice-model-card{display:flex;flex-direction:column;padding:18px 20px;border:1px solid rgba(128, 128, 128, 0.22);border-radius:14px;background:rgba(255, 255, 255, 0.55);color:inherit!important;text-decoration:none!important;transition:border-color 0.15s ease, transform 0.15s ease, background 0.15s ease}.venice-model-card:hover{transform:translateY(-1px);border-color:rgba(18, 93, 163, 0.45)}.dark .venice-model-card,[data-theme=\"dark\"] .venice-model-card{background:rgba(247, 245, 237, 0.025);border-color:rgba(247, 245, 237, 0.1)}.dark .venice-model-card:hover,[data-theme=\"dark\"] .venice-model-card:hover{background:rgba(247, 245, 237, 0.045);border-color:rgba(72, 152, 230, 0.45)}.venice-model-card-top{display:flex;align-items:center;gap:12px;margin-bottom:12px}.venice-model-card-logo{flex:0 0 28px;width:28px;height:28px;margin:0;object-fit:contain}.venice-model-card-logo.is-mono{background:currentColor;-webkit-mask-position:center;mask-position:center;-webkit-mask-repeat:no-repeat;mask-repeat:no-repeat;-webkit-mask-size:contain;mask-size:contain}@media (forced-colors: active){.venice-model-card-logo.is-mono{forced-color-adjust:none;background:CanvasText}}.venice-model-card-head{display:flex;flex-direction:column;gap:2px;margin-bottom:10px}.venice-model-card-top .venice-model-card-head{min-width:0;margin-bottom:0}.venice-model-card-name{font-size:17px;font-weight:700;line-height:1.2}.venice-model-card-maker{font-size:11px;font-weight:600;letter-spacing:0.06em;text-transform:uppercase;opacity:0.55}.venice-model-card-desc{margin:0 0 14px;font-size:13px;line-height:1.5;opacity:0.78;flex:1}.venice-model-card-stats{display:flex;flex-wrap:wrap;gap:6px;margin-bottom:12px}.venice-model-card-stats>span{padding:3px 8px;border-radius:999px;background:rgba(128, 128, 128, 0.12);font-size:11px;font-weight:500;white-space:nowrap}.venice-model-card-stats .venice-model-card-privacy{background:rgba(16, 185, 129, 0.12);color:var(--venice-good)}.venice-model-card-stats .venice-model-card-privacy.is-anonymized{background:rgba(148, 163, 184, 0.16);color:#64748b}.dark .venice-model-card-stats .venice-model-card-privacy.is-anonymized,[data-theme=\"dark\"] .venice-model-card-stats .venice-model-card-privacy.is-anonymized{color:#c4c9cd}.venice-model-card-id{display:block;padding:6px 10px;border-radius:6px;background:rgba(128, 128, 128, 0.14);font-family:ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;font-size:12px;font-weight:500;color:inherit;width:fit-content;max-width:100%;overflow:hidden;text-overflow:ellipsis}@media (max-width: 900px){.venice-models-grid{grid-template-columns:1fr}}.venice-models-cta{display:flex;align-items:center;justify-content:space-between;gap:16px;margin:8px 0 4px;padding:16px 22px;border:1px solid rgba(18, 93, 163, 0.3);border-radius:12px;background:radial-gradient(circle at right, rgba(18, 93, 163, 0.12), transparent 50%),\n rgba(18, 93, 163, 0.05);color:inherit!important;text-decoration:none!important;transition:background 0.15s ease, border-color 0.15s ease, transform 0.15s ease}.venice-models-cta:hover{border-color:rgba(18, 93, 163, 0.55);transform:translateY(-1px);background:radial-gradient(circle at right, rgba(18, 93, 163, 0.18), transparent 50%),\n rgba(18, 93, 163, 0.08)}.dark .venice-models-cta,[data-theme=\"dark\"] .venice-models-cta{border-color:rgba(72, 152, 230, 0.32)}.venice-models-cta-left{display:flex;flex-direction:column;gap:2px}.venice-models-cta-count{font-size:20px;font-weight:700;color:var(--venice-accent);line-height:1.1}.dark .venice-models-cta-count,[data-theme=\"dark\"] .venice-models-cta-count{color:#4898e6}.venice-models-cta-sub{font-size:13px;opacity:0.65}.venice-models-cta-action{font-size:14px;font-weight:600;white-space:nowrap}@media (max-width: 600px){.venice-models-cta{flex-direction:column;align-items:flex-start;gap:8px}}.venice-hero-copy{display:flex;flex-direction:column;gap:14px;margin:4px 0 24px}.venice-hero-tagline{font-size:22px;font-weight:500;line-height:1.4;margin:0}.venice-hero-subtitle{font-size:15px;line-height:1.55;margin:0;opacity:0.7}.venice-hero-ctas{display:flex;flex-wrap:wrap;gap:10px;margin-top:6px}.venice-hero-cta{display:inline-flex;align-items:center;padding:9px 16px;border-radius:8px;border:1px solid rgba(128, 128, 128, 0.25);font-size:14px;font-weight:600;text-decoration:none!important;color:inherit!important;transition:border-color 0.15s ease, background 0.15s ease}.venice-hero-cta:hover{border-color:rgba(18, 93, 163, 0.55)}.venice-hero-cta-primary{background:#125DA3;color:#fff!important;border-color:#125DA3}.venice-hero-cta-primary:hover{background:#0e4d87;border-color:#0e4d87}.dark .venice-hero-cta,[data-theme=\"dark\"] .venice-hero-cta{border-color:rgba(247, 245, 237, 0.14)}.dark .venice-hero-cta:hover,[data-theme=\"dark\"] .venice-hero-cta:hover{border-color:rgba(72, 152, 230, 0.55)}.venice-hero-grid{display:grid;grid-template-columns:repeat(3, minmax(0, 1fr));gap:14px;margin:24px 0 8px}@media (max-width: 700px){.venice-hero-grid{grid-template-columns:1fr}}.venice-apis-grid{display:grid;grid-template-columns:repeat(2, minmax(0, 1fr));gap:14px;margin:20px 0 16px}.venice-apis-extras{margin:22px 0 0;font-size:15px;line-height:1.65;opacity:0.92}.venice-apis-extras a{color:inherit;text-decoration:underline;text-decoration-color:rgba(128, 128, 128, 0.55);text-underline-offset:3px}.venice-apis-extras a:hover{text-decoration-color:currentColor}.venice-apis-extras-cta{color:var(--venice-accent)!important;font-weight:600;text-decoration:none!important;margin-left:6px;white-space:nowrap}.venice-apis-extras-cta:hover{text-decoration:underline!important;text-decoration-color:currentColor!important}.dark .venice-apis-extras-cta,[data-theme=\"dark\"] .venice-apis-extras-cta{color:#4898e6!important}.venice-api-card{display:flex;flex-direction:column;padding:22px;border:1px solid rgba(128, 128, 128, 0.22);border-radius:14px;background:rgba(255, 255, 255, 0.55);color:inherit!important;text-decoration:none!important;transition:border-color 0.15s ease, transform 0.15s ease, background 0.15s ease}.venice-api-card:hover{transform:translateY(-1px);border-color:rgba(18, 93, 163, 0.45)}.dark .venice-api-card,[data-theme=\"dark\"] .venice-api-card{background:rgba(247, 245, 237, 0.025);border-color:rgba(247, 245, 237, 0.1)}.dark .venice-api-card:hover,[data-theme=\"dark\"] .venice-api-card:hover{background:rgba(247, 245, 237, 0.045);border-color:rgba(72, 152, 230, 0.45)}.venice-api-card-name{display:block;font-size:18px;font-weight:700;margin-bottom:8px}.venice-api-card-desc{margin:0 0 12px;font-size:13px;line-height:1.5;opacity:0.78;flex:1}.venice-api-card-chips{display:flex;flex-wrap:wrap;gap:6px;margin-bottom:14px}.venice-api-card-chip{padding:3px 8px;border-radius:999px;background:rgba(128, 128, 128, 0.12);font-size:11px;font-weight:500}.venice-api-card-action{display:inline-block;font-size:13px;font-weight:600;color:var(--venice-accent)}.dark .venice-api-card-action,[data-theme=\"dark\"] .venice-api-card-action{color:#4898e6}.venice-agent-grid{display:grid;grid-template-columns:repeat(3, minmax(0, 1fr));gap:14px;margin:0 0 18px}.venice-agent-grid.is-pair{grid-template-columns:repeat(2, minmax(0, 1fr))}@media (max-width: 900px){.venice-agent-grid,.venice-agent-grid.is-pair{grid-template-columns:1fr}}.venice-agent-card{display:flex;flex-direction:column;gap:10px;padding:18px;border:1px solid rgba(128, 128, 128, 0.22);border-radius:14px;background:rgba(255, 255, 255, 0.55);color:inherit!important;text-decoration:none!important;transition:border-color 0.15s ease, transform 0.15s ease, background 0.15s ease}.venice-agent-card:hover{transform:translateY(-1px);border-color:rgba(18, 93, 163, 0.45)}.dark .venice-agent-card,[data-theme=\"dark\"] .venice-agent-card{background:rgba(247, 245, 237, 0.025);border-color:rgba(247, 245, 237, 0.1)}.dark .venice-agent-card:hover,[data-theme=\"dark\"] .venice-agent-card:hover{background:rgba(247, 245, 237, 0.045);border-color:rgba(72, 152, 230, 0.45)}.venice-agent-card-top{display:flex;align-items:center;gap:11px}.venice-agent-card-logo{display:inline-flex;align-items:center;justify-content:center;flex:0 0 34px;width:34px;height:34px;border:1px solid rgba(128, 128, 128, 0.2);border-radius:9px;background:rgba(128, 128, 128, 0.08)}.dark .venice-agent-card-logo,[data-theme=\"dark\"] .venice-agent-card-logo{border-color:rgba(247, 245, 237, 0.1);background:rgba(247, 245, 237, 0.05)}.venice-agent-card-logo img{width:20px;height:20px;object-fit:contain}.dark img[src*=\"/icons/integrations/mono/\"],[data-theme=\"dark\"] img[src*=\"/icons/integrations/mono/\"]{filter:invert(1)}.venice-agent-card-name{font-size:15px;font-weight:600}.venice-agent-card-desc{margin:0;font-size:13px;line-height:1.5;opacity:0.72}@media (max-width: 600px){.venice-apis-grid{grid-template-columns:1fr}}[id$=\"-placeholder\"]{visibility:hidden;height:0;overflow:hidden}.vpt-table{width:100%;border-collapse:collapse;font-size:14px;margin:16px 0 24px}.vpt-table th,.vpt-table td{padding:12px 16px;text-align:left;border-bottom:1px solid rgba(128,128,128,0.2)}.vpt-table th{font-weight:600;font-size:13px;text-transform:uppercase;letter-spacing:0.3px;opacity:0.7;background:rgba(128,128,128,0.05)}.vpt-table td code{font-size:12px;background:rgba(128,128,128,0.12);padding:3px 8px;border-radius:4px}.vpt-table .vpt-price{text-align:center;font-weight:500;white-space:nowrap}.vpt-table td.vpt-price{color:inherit;opacity:0.8}.vpt-table{overflow:visible}.vpt-copy-btn{background:none;border:none;cursor:pointer;padding:2px;opacity:0.35;vertical-align:middle;margin-left:4px;display:inline-flex;align-items:center;transition:opacity 0.15s;position:relative}.vpt-copy-btn:hover{opacity:0.7}.vpt-copy-btn svg{width:12px;height:12px;stroke:currentColor;fill:none;stroke-width:2;stroke-linecap:round;stroke-linejoin:round}.vpt-copy-btn .check-icon{position:absolute;opacity:0;transform:scale(0.8);transition:opacity 0.15s, transform 0.15s}.vpt-copy-btn.copied .copy-icon{opacity:0}.vpt-copy-btn.copied .check-icon{opacity:1;transform:scale(1)}.vpt-copy-btn.copied{opacity:0.7}#deprecation-tracker-placeholder,#traits-list-placeholder{visibility:visible!important;overflow:visible!important;height:auto!important}.vpt-status-retiring{font-size:11px;font-weight:600;text-transform:uppercase;padding:3px 8px;border-radius:4px;background:rgba(251, 191, 36, 0.15);color:#f59e0b}.vpt-status-deprecated{font-size:11px;font-weight:600;text-transform:uppercase;padding:3px 8px;border-radius:4px;background:rgba(239, 68, 68, 0.15);color:#f87171}#tts-voice-picker-placeholder{visibility:visible!important;overflow:visible!important;height:auto!important}.vtp-picker{display:flex;flex-direction:column;gap:16px;margin-top:8px;font-family:inherit}.vtp-row-controls{display:grid;grid-template-columns:minmax(220px, 1fr) minmax(180px, 1fr);gap:12px}@media (max-width: 640px){.vtp-row-controls{grid-template-columns:1fr}}.vtp-field{display:flex;flex-direction:column;gap:6px;min-width:0}.vtp-label{font-size:11px;font-weight:600;letter-spacing:0.06em;text-transform:uppercase;opacity:0.6}.vtp-model-select,.vtp-search{width:100%;padding:10px 14px;font-size:14px;font-family:inherit;color:inherit;background:rgba(128,128,128,0.06);border:1px solid rgba(128,128,128,0.25);border-radius:8px;outline:none;box-sizing:border-box;transition:border-color 0.15s, background 0.15s}.vtp-model-select{font-weight:500;cursor:pointer;appearance:none;-webkit-appearance:none;background-image:url(\"data:image/svg+xml;utf8,\u003csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'>\u003cpolyline points='6 9 12 15 18 9'/>\u003c/svg>\");background-repeat:no-repeat;background-position:right 12px center;padding-right:36px}.vtp-model-select:focus,.vtp-search:focus{border-color:rgba(128,128,128,0.45);background-color:rgba(128,128,128,0.09)}.vtp-search::placeholder{color:rgba(128,128,128,0.55)}.vtp-meta{display:flex;flex-direction:column;gap:8px}.vtp-pills{display:flex;flex-wrap:wrap;gap:6px}.vtp-pill{display:inline-flex;align-items:center;font-size:12px;padding:4px 10px;border-radius:999px;background:rgba(128,128,128,0.1);color:inherit;white-space:nowrap}.vtp-pill code{font-size:12px;background:none;padding:0;border:none;color:inherit}.vtp-pill-id{background:rgba(18, 93, 163, 0.1);color:var(--venice-accent)}.vtp-blurb{margin:0;font-size:13px;line-height:1.5;opacity:0.75}.vtp-list-header{display:flex;align-items:baseline;justify-content:space-between;margin-top:4px}.vtp-list-title{font-size:11px;font-weight:600;letter-spacing:0.06em;text-transform:uppercase;opacity:0.6}.vtp-count{font-size:12px;opacity:0.55;white-space:nowrap}.vtp-voice-list{display:flex;flex-direction:column;border:1px solid rgba(128,128,128,0.18);border-radius:10px;overflow:hidden;max-height:480px;overflow-y:auto}.vtp-voice{display:grid;grid-template-columns:minmax(140px, max-content) 1fr auto;align-items:center;gap:16px;width:100%;padding:10px 14px;border:none;border-bottom:1px solid rgba(128,128,128,0.12);background:transparent;color:inherit;text-align:left;font-family:inherit;cursor:pointer;transition:background 0.1s}.vtp-voice:last-child{border-bottom:none}.vtp-voice:hover{background:rgba(128,128,128,0.06)}.vtp-voice:focus-visible{outline:2px solid #125DA3;outline-offset:-2px}.vtp-voice-id{font-family:ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;font-size:13px;font-weight:500}.vtp-voice-meta{font-size:13px;opacity:0.6;min-width:0}.vtp-voice-action{font-size:11px;font-weight:600;letter-spacing:0.04em;text-transform:uppercase;opacity:0;transition:opacity 0.15s, color 0.15s;position:relative;color:rgba(128,128,128,0.7)}.vtp-voice:hover .vtp-voice-action{opacity:1}.vtp-action-copied{display:none}.vtp-voice.copied .vtp-voice-action{opacity:1;color:var(--venice-accent)}.vtp-voice.copied .vtp-action-copy{display:none}.vtp-voice.copied .vtp-action-copied{display:inline}.vtp-empty{padding:24px;text-align:center;font-size:13px;opacity:0.55}.vtp-hint{margin:0;font-size:12px;opacity:0.55;line-height:1.5}.vtp-hint code{font-size:12px;background:rgba(128,128,128,0.1);padding:1px 5px;border-radius:4px}.venice-privacy-mode-grid{display:grid;grid-template-columns:1fr;gap:14px;position:relative;margin:14px 0 18px;padding-left:28px}.venice-privacy-mode-grid::before{content:\"\";position:absolute;top:12px;bottom:12px;left:7px;width:1px;background:linear-gradient(180deg, rgba(18, 93, 163, 0.22), rgba(18, 93, 163, 0.55), rgba(18, 93, 163, 0.22))}.venice-privacy-level-label{display:flex;align-items:center;gap:10px;margin:22px 0 0;color:var(--venice-accent);font-size:11px;font-weight:800;letter-spacing:0.12em;text-transform:uppercase}.venice-privacy-level-label::after{content:\"\";flex:1;height:1px;background:linear-gradient(90deg, rgba(18, 93, 163, 0.55), rgba(18, 93, 163, 0))}.venice-privacy-mode-card{position:relative;padding:24px;border:1px solid rgba(128, 128, 128, 0.2);border-radius:18px;background:rgba(255, 255, 255, 0.55)}.venice-privacy-mode-card::before{content:\"\";position:absolute;top:28px;left:-27px;width:13px;height:13px;border:3px solid var(--background, #fff);border-radius:999px;background:#125DA3;box-shadow:0 0 0 1px rgba(18, 93, 163, 0.28)}.dark .venice-privacy-mode-card,[data-theme=\"dark\"] .venice-privacy-mode-card{background:rgba(247, 245, 237, 0.025);border-color:rgba(247, 245, 237, 0.11)}.venice-privacy-mode-header{display:flex;align-items:center;margin-bottom:18px}.venice-privacy-mode-name{font-size:clamp(21px, 2.3vw, 25px);font-weight:800;line-height:1.1;letter-spacing:-0.035em;color:inherit}.venice-privacy-mode-card h3{margin:0 0 10px;font-size:16px;line-height:1.25;font-weight:700;color:var(--venice-accent)}.venice-privacy-mode-card p{margin:0;font-size:14px;line-height:1.62;opacity:0.72}@media (max-width: 900px){.venice-privacy-mode-grid{grid-template-columns:1fr}.venice-privacy-mode-card{min-height:auto}}@media (max-width: 640px){.venice-privacy-mode-grid{padding-left:22px}.venice-privacy-mode-card{padding:20px}.venice-privacy-mode-card::before{left:-24px}}@media (min-width: 1024px){nav#sidebar-content{width:16rem!important}#body-content{padding-left:16rem!important}#content-area{max-width:820px!important;margin-left:max(0px, calc(50vw - 410px - 16rem))!important;margin-right:auto!important}html[data-current-path*=\"/api-reference/endpoint/\"] #content-area{margin-left:auto!important;margin-right:auto!important}header .items-center.h-12{height:5rem!important}header .w-full.h-full.border-b{border-bottom:0!important}header .absolute.inset-0.bg-background-light{background-color:color-mix(in srgb, var(--color-background-light) 60%, transparent)!important;-webkit-backdrop-filter:blur(20px);backdrop-filter:blur(20px)}.dark header .absolute.inset-0.bg-background-light,[data-theme=\"dark\"] header .absolute.inset-0.bg-background-light{background-color:color-mix(in srgb, var(--color-background-dark) 60%, transparent)!important}nav#sidebar-content{top:5rem!important}#content-side-layout{top:5rem!important}#navigation-items{padding-bottom:5rem!important}header ul:has(#topbar-cta-button){display:none!important}header div:has(>#search-bar-entry){column-gap:0.5rem!important}header .nav-logo{height:3rem!important}@layer utilities{header #search-bar-entry,header #assistant-entry{width:2.25rem!important;padding:0!important;justify-content:center!important}header #search-bar-entry .truncate.min-w-0,header #search-bar-entry>span,header #assistant-entry>span{display:none!important}}header div:has(>#localization-select-trigger){margin-right:0.5rem}@container navbar (max-width: 1399px){header nav ul>li>a.link{padding-left:0.5rem!important;padding-right:0.5rem!important}header nav ul>li>a.link>svg{display:none!important}}html[data-current-path=\"/learn\"] nav#sidebar-content{display:none!important}html[data-current-path=\"/learn\"] #body-content{padding-left:0!important}html[data-current-path=\"/learn\"] #content-area{max-width:min(1100px, calc(100vw - 6rem))!important;margin-left:auto!important;margin-right:auto!important}html[data-current-path=\"/learn\"] #content-side-layout{display:none!important}html[data-current-path=\"/learn\"] #header .eyebrow{display:none!important}html[data-current-path=\"/learn\"] #header{padding-top:1.875rem}}html[data-current-path=\"/learn\"] #pagination{display:none!important}.chat-assistant-floating-input{display:none!important}#footer{margin-top:2.5rem!important}.venice-demo-grid{display:grid;grid-template-columns:repeat(2, minmax(0, 1fr));gap:16px;margin:24px 0}.venice-demo-card{position:relative;display:flex;flex-direction:column;padding:20px;border-radius:16px;border:1px solid rgba(128,128,128,0.2);background:rgba(128,128,128,0.03);cursor:pointer;transition:border-color 0.15s ease, background 0.15s ease, transform 0.15s ease, box-shadow 0.15s ease}.venice-demo-card:hover{border-color:rgba(18,93,163,0.4);background:rgba(18,93,163,0.04);transform:translateY(-2px);box-shadow:0 10px 30px rgba(0,0,0,0.08)}.dark .venice-demo-card:hover,[data-theme=\"dark\"] .venice-demo-card:hover{border-color:rgba(72, 152, 230, 0.4);background:rgba(72, 152, 230, 0.06);box-shadow:0 10px 30px rgba(0,0,0,0.35)}.venice-demo-card-head{display:flex;align-items:center;justify-content:space-between;margin-bottom:14px}.venice-demo-icon{display:inline-flex;align-items:center;justify-content:center;width:38px;height:38px;border-radius:10px;color:var(--venice-accent);background:rgba(18,93,163,0.1)}.dark .venice-demo-icon,[data-theme=\"dark\"] .venice-demo-icon{color:#4898e6;background:rgba(72, 152, 230, 0.14)}.venice-demo-lang{font-size:11px;font-weight:600;letter-spacing:0.02em;text-transform:uppercase;padding:4px 9px;border-radius:999px;border:1px solid rgba(128,128,128,0.25);opacity:0.75}.venice-demo-title{margin:0 0 6px!important;font-size:16px!important;font-weight:600!important;line-height:1.3!important}.venice-demo-desc{margin:0 0 14px!important;font-size:13.5px;line-height:1.5;opacity:0.7}.venice-demo-tags{display:flex;flex-wrap:wrap;gap:6px;margin-bottom:16px}.venice-demo-tag{font-size:12px;padding:3px 9px;border-radius:7px;background:rgba(128,128,128,0.1);opacity:0.85;white-space:nowrap}.venice-demo-actions{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-top:auto;padding-top:14px;border-top:1px solid rgba(128,128,128,0.15)}.venice-demo-link{font-size:13.5px;font-weight:600;color:var(--venice-accent)!important;text-decoration:none!important;border-bottom:0!important}.dark .venice-demo-link,[data-theme=\"dark\"] .venice-demo-link{color:#4898e6!important}.venice-demo-arrow{display:inline-block;transition:transform 0.15s ease}.venice-demo-card:hover .venice-demo-arrow{transform:translateX(4px)}.venice-demo-link::after{content:\"\";position:absolute;inset:0;border-radius:inherit}.venice-demo-repo{position:relative;z-index:1;display:inline-flex;align-items:center;gap:5px;font-size:13px;color:inherit!important;text-decoration:none!important;border-bottom:0!important;opacity:0.6;transition:opacity 0.15s ease}.venice-demo-repo:hover{opacity:1}.venice-demo-byline{margin-top:12px;font-size:12px;opacity:0.45}@media (max-width: 768px){.venice-demo-grid{grid-template-columns:1fr}}@layer utilities{.dark .dark\\:bg-codeblock.dark\\:bg-codeblock,[data-theme=\"dark\"] .dark\\:bg-codeblock.dark\\:bg-codeblock{background-color:var(--color-background-dark)!important}}@layer utilities{header a.link.bg-gray-950\\/\\[0\\.03\\]{background-color:rgba(18, 93, 163, 0.12)!important;color:var(--venice-accent)!important}.dark header a.link.bg-gray-950\\/\\[0\\.03\\],[data-theme=\"dark\"] header a.link.bg-gray-950\\/\\[0\\.03\\]{background-color:rgba(72, 152, 230, 0.16)!important;color:#4898e6!important}}.venice-learn{--learn-accent: #125DA3;--learn-tint: rgba(18,93,163,0.08);--learn-edge: rgba(18,93,163,0.42);--learn-line: rgba(128,128,128,0.2);--learn-thumb: rgba(128,128,128,0.5)}.dark .venice-learn,[data-theme=\"dark\"] .venice-learn{--learn-accent: #4898e6;--learn-tint: rgba(72, 152, 230, 0.1);--learn-edge: rgba(72, 152, 230, 0.42)}.venice-learn-section{margin-top:40px}.venice-learn-section:first-of-type{margin-top:28px}.venice-learn-section h2{margin:0!important;padding:0!important;border:0!important;font-size:17px;font-weight:600;line-height:1.4}.venice-learn-lede{margin:4px 0 0;font-size:13.5px;line-height:1.6;opacity:0.55}.venice-learn-row{display:grid;grid-auto-flow:column;grid-auto-columns:300px;justify-content:start;gap:12px;margin:12px -8px 0;padding:8px;overflow-x:auto;overscroll-behavior-x:contain;scroll-snap-type:x proximity;scroll-padding-left:8px;mask-image:linear-gradient(to right, #000 calc(100% - 64px), transparent);-webkit-mask-image:linear-gradient(to right, #000 calc(100% - 64px), transparent);scrollbar-width:none}.venice-learn-row::-webkit-scrollbar{display:none}.venice-learn-row.is-dragging{scroll-snap-type:none;cursor:grabbing;-webkit-user-select:none;user-select:none}.venice-learn-row.is-dragging .venice-learn-card{cursor:grabbing}.venice-learn-scrollbar{height:3px;margin:10px 0 0;border-radius:999px;background:var(--learn-line);opacity:0;pointer-events:none;transition:opacity 0.2s ease}.venice-learn-scrollbar.is-visible{opacity:1}.venice-learn-scrollbar.is-idle{display:none}.venice-learn-scrollbar-thumb{height:100%;border-radius:inherit;background:var(--learn-thumb)}@media (prefers-reduced-motion: reduce){.venice-learn-scrollbar{transition:none}}.venice-learn-card{display:flex;flex-direction:column;gap:8px;padding:16px 16px 14px;border:1px solid var(--learn-line);border-bottom-color:var(--learn-line)!important;border-radius:12px;background:rgba(128,128,128,0.03);scroll-snap-align:start;color:inherit!important;text-decoration:none!important;transition:border-color 0.15s ease, background 0.15s ease}.venice-learn-card:hover{border-color:var(--learn-edge);border-bottom-color:var(--learn-edge)!important;background:var(--learn-tint)}.venice-learn-card-head{display:flex;align-items:flex-start;gap:9px}.venice-learn-icon{display:inline-flex;flex-shrink:0;padding-top:1px}.venice-learn-icon svg{width:17px;height:17px}.venice-learn-title{font-size:15px;font-weight:600;line-height:1.4}.venice-learn-desc{display:block;font-size:13px;line-height:1.55;opacity:0.6}.venice-learn-meta{display:block;margin-top:auto;padding-top:4px;font-size:12px;opacity:0.5}.venice-learn-links{display:flex;flex-wrap:wrap;gap:8px 28px;margin:4px 0 8px}.venice-learn-links a{display:inline-flex;align-items:baseline;gap:6px;font-size:14px;color:inherit!important;text-decoration:none!important;border-bottom-color:transparent!important;opacity:0.75;transition:opacity 0.15s ease, color 0.15s ease}.venice-learn-links a:hover{color:var(--learn-accent)!important;opacity:1}.venice-learn-links .venice-learn-arrow{font-size:12px;opacity:0.5}@media (max-width: 768px){.venice-learn-row{grid-auto-columns:min(86vw, 320px);scroll-snap-type:x mandatory;mask-image:linear-gradient(to right, #000 calc(100% - 36px), transparent);-webkit-mask-image:linear-gradient(to right, #000 calc(100% - 36px), transparent)}}.venice-keys-diagram{--venice-keys-line: rgba(128, 128, 128, 0.4);--venice-keys-reach: 22px;--venice-keys-row-gap: 10px;display:grid;grid-template-columns:minmax(0, 14rem) minmax(0, 1fr);column-gap:calc(var(--venice-keys-reach) * 2);align-items:center;margin:24px 0 28px}.dark .venice-keys-diagram,[data-theme=\"dark\"] .venice-keys-diagram{--venice-keys-line: rgba(247, 245, 237, 0.22)}.venice-keys-admin{position:relative;display:flex;flex-direction:column;gap:6px;padding:18px 18px 20px;border-radius:14px;background:#125DA3;color:#fff}.venice-keys-admin::after{content:\"\";position:absolute;top:50%;left:100%;width:var(--venice-keys-reach);border-top:1.5px solid var(--venice-keys-line)}.venice-keys-admin-title{margin:4px 0 2px;font-size:16px;font-weight:600;line-height:1.3}.venice-keys-admin-point{position:relative;padding-left:14px;font-size:12.5px;line-height:1.45;opacity:0.88}.venice-keys-admin-point::before{content:\"\";position:absolute;top:0.6em;left:0;width:5px;height:5px;border-radius:50%;background:currentColor;opacity:0.7}.venice-keys-list{display:flex;flex-direction:column;gap:var(--venice-keys-row-gap)}.venice-keys-item{position:relative;display:flex;flex-wrap:wrap;align-items:center;gap:8px 10px;min-height:52px;padding:10px 14px;border:1px solid rgba(128, 128, 128, 0.2);border-radius:12px;background:rgba(255, 255, 255, 0.55)}.dark .venice-keys-item,[data-theme=\"dark\"] .venice-keys-item{background:rgba(247, 245, 237, 0.025);border-color:rgba(247, 245, 237, 0.1)}.venice-keys-item::before{content:\"\";position:absolute;top:50%;left:calc(var(--venice-keys-reach) * -1 - 1px);width:calc(var(--venice-keys-reach) + 1px);border-top:1.5px solid var(--venice-keys-line)}.venice-keys-item::after{content:\"\";position:absolute;top:calc(var(--venice-keys-row-gap) / -2 - 1px);bottom:calc(var(--venice-keys-row-gap) / -2 - 1px);left:calc(var(--venice-keys-reach) * -1 - 1px);border-left:1.5px solid var(--venice-keys-line)}.venice-keys-item:first-child::after{top:50%}.venice-keys-item:last-child::after{bottom:calc(50% - 1.5px)}.venice-keys-tag{align-self:flex-start;padding:3px 7px;border-radius:6px;background:rgba(128, 128, 128, 0.12);font-size:9.5px;font-weight:600;letter-spacing:0.06em;line-height:1.2;text-transform:uppercase;white-space:nowrap}.venice-keys-item .venice-keys-tag{align-self:center;opacity:0.75}.venice-keys-admin .venice-keys-tag{background:rgba(255, 255, 255, 0.16)}.venice-keys-name{font-family:ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;font-size:13px;font-weight:500}.venice-keys-chips{display:flex;flex-wrap:wrap;gap:6px;margin-left:auto}.venice-keys-chip{padding:3px 9px;border:1px solid rgba(128, 128, 128, 0.18);border-radius:999px;background:rgba(128, 128, 128, 0.07);font-size:12px;line-height:1.4;white-space:nowrap}.dark .venice-keys-chip,[data-theme=\"dark\"] .venice-keys-chip{border-color:rgba(247, 245, 237, 0.12);background:rgba(247, 245, 237, 0.04)}.venice-keys-chip.is-cap{border-color:rgba(18, 93, 163, 0.22);background:rgba(18, 93, 163, 0.08);color:var(--venice-accent);font-family:ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;font-size:11.5px}.dark .venice-keys-chip.is-cap,[data-theme=\"dark\"] .venice-keys-chip.is-cap{border-color:rgba(72, 152, 230, 0.32);background:rgba(72, 152, 230, 0.12);color:#8ec1f3}@media (max-width: 600px){.venice-keys-diagram{grid-template-columns:minmax(0, 1fr);row-gap:var(--venice-keys-reach)}.venice-keys-admin::after{top:100%;left:var(--venice-keys-reach);width:0;height:var(--venice-keys-reach);border-top:0;border-left:1.5px solid var(--venice-keys-line)}.venice-keys-list{padding-left:calc(var(--venice-keys-reach) * 2)}.venice-keys-item:first-child::after{top:-1px}}"},{"filePath":"model-hub.css","href":"/_mintlify/custom/veniceai/7a39bc0be75ca6ad/model-hub.css"},{"filePath":"home.css","content":"@font-face{font-family:\"Venice Canela\";src:url(\"https://venice.ai/fonts/Canela-Regular.otf\") format(\"opentype\");font-weight:400;font-display:swap}@media (min-width: 1024px){#content-area:has(.vh){max-width:none!important;margin-left:0!important;margin-right:0!important}}.vh{--vh-text: #0e1217;--vh-soft: rgba(14, 18, 23, 0.72);--vh-muted: #677079;--vh-border: rgba(14, 18, 23, 0.08);--vh-border-strong: rgba(14, 18, 23, 0.16);--vh-surface: #fcfbf8;--vh-raised: #f3f1ea;--vh-accent: #125da3;--vh-good: #18744e;--vh-well: #06090d;--vh-on-well: #f7f5ed;--vh-stucco: #bea989;--vh-display: \"Venice Canela\", Georgia, \"Times New Roman\", serif;--vh-sans: \"Venice Aeonik\", \"Venice Aeonik Fallback\", \"Venice Aeonik Roboto Fallback\", Inter, ui-sans-serif, system-ui, -apple-system, \"Segoe UI\", sans-serif;--vh-fono: \"Venice Aeonik Fono\", \"Venice Aeonik Fono Fallback\", \"Venice Aeonik Fono Roboto Fallback\", \"Venice Aeonik\", Inter, ui-sans-serif, system-ui, sans-serif;--vh-mono: \"JetBrains Mono\", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;box-sizing:border-box;max-width:1240px;margin:0 auto;padding:32px 48px 72px;color:var(--vh-soft);font-family:var(--vh-sans);font-size:15px;line-height:22px}.dark .vh,[data-theme=\"dark\"] .vh{--vh-text: #f7f5ed;--vh-soft: rgba(247, 245, 237, 0.72);--vh-muted: #8a949c;--vh-border: rgba(247, 245, 237, 0.08);--vh-border-strong: rgba(247, 245, 237, 0.16);--vh-surface: #111922;--vh-raised: #18212b;--vh-accent: #4898e6;--vh-good: #55d188}.vh a,.vh a.link{border-bottom:0;color:inherit;text-decoration:none;transition:color 0.15s ease, border-color 0.15s ease, background-color 0.15s ease}.vh a:focus-visible{outline:2px solid var(--vh-accent);outline-offset:2px}.vh-sr{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap}.vh-video{opacity:0;transition:opacity 0.4s ease}.vh-video.is-ready{opacity:1}@media (max-width: 767px){.vh{padding:20px 20px 48px}}.vh-release{position:relative;min-height:540px;overflow:hidden;border-radius:20px;background:var(--vh-well)}.vh-slide{position:relative;display:none;align-items:flex-end;min-height:540px;isolation:isolate}.vh-slide.is-active{display:flex;animation:vh-slide-in 0.7s ease}@keyframes vh-slide-in{from{opacity:0}to{opacity:1}}.vh-slide>video,.vh-slide>img{position:absolute;inset:0;z-index:-2;width:100%;height:100%;margin:0;object-fit:cover}.vh-slide::before{content:\"\";position:absolute;inset:0;z-index:-1;background:linear-gradient(90deg, rgba(6, 9, 13, 0.92) 0%, rgba(6, 9, 13, 0.55) 42%, rgba(6, 9, 13, 0) 72%),\n linear-gradient(0deg, rgba(6, 9, 13, 0.7) 0%, rgba(6, 9, 13, 0) 40%)}.vh-slide.is-mark{background:radial-gradient(34% 56% at 78% 44%, rgba(72, 152, 230, 0.24), transparent 70%), var(--vh-well)}.vh-slide .vh-art-mark{position:absolute;top:44%;right:10%;z-index:-2;width:min(26%, 280px);aspect-ratio:1;background:rgba(247, 245, 237, 0.92);-webkit-mask:center / contain no-repeat;mask:center / contain no-repeat;transform:translateY(-50%)}.vh-slide .vh-art-mark.is-letter{display:grid;place-items:center;background:none;-webkit-mask:none;mask:none;color:rgba(247, 245, 237, 0.92);font-family:var(--vh-display);font-size:min(20vw, 240px);line-height:1}.vh-release-copy{max-width:600px;padding:56px;color:rgba(247, 245, 237, 0.78);font-size:18px;line-height:26px}.vh-eyebrow{color:var(--vh-stucco);font-family:var(--vh-fono);font-size:12px;line-height:16px;letter-spacing:0.08em;text-transform:uppercase}.vh .vh-release h2{margin:14px 0;color:var(--vh-on-well);font-family:var(--vh-display);font-size:88px;font-weight:400;line-height:0.95;letter-spacing:-0.015em}.vh-release-copy>p,.vh-release-copy>[data-as=\"p\"]{display:block;margin:0 0 28px}.vh-release-actions{display:flex;flex-wrap:wrap;align-items:center;gap:12px}.vh a.vh-pill{display:inline-flex;align-items:center;height:40px;padding:0 18px;border-radius:999px;background:var(--vh-on-well);color:#0e1217;font-size:14px}.vh a.vh-pill::after{content:\" →\";margin-left:6px}.vh a.vh-pill:hover{background:#ffffff}.vh .vh-chip{display:inline-flex;align-items:center;height:40px;padding:0 16px;border:1px solid rgba(247, 245, 237, 0.16);border-radius:999px;background:rgba(6, 9, 13, 0.45);color:var(--vh-on-well);font-family:var(--vh-mono);font-size:12px}.vh-made{position:absolute;right:24px;bottom:20px;color:rgba(247, 245, 237, 0.6);font-family:var(--vh-fono);font-size:11px;letter-spacing:0.04em;text-transform:uppercase}.vh-new{display:flex;margin-top:12px;overflow:hidden;border:1px solid var(--vh-border);border-radius:14px}.vh a.vh-new-item{position:relative;display:flex;flex:1 1 0;align-items:center;gap:10px;min-width:0;padding:14px 16px;border-right:1px solid var(--vh-border);color:var(--vh-text);font-size:13px;line-height:18px}.vh a.vh-new-item:last-child{border-right:0}.vh a.vh-new-item:hover,.vh a.vh-new-item.is-active{background:var(--vh-raised)}.vh-new.is-rotating .vh-new-item.is-active::after{content:\"\";position:absolute;right:0;bottom:0;left:0;height:2px;background:var(--vh-stucco);transform-origin:left;animation:vh-turn var(--vh-rotate, 7s) linear forwards}.vh-new.is-paused .vh-new-item.is-active::after{animation-play-state:paused}@keyframes vh-turn{from{transform:scaleX(0)}to{transform:scaleX(1)}}.vh-new-logo{flex:none;width:18px;height:18px;margin:0}.vh-new-logo.is-mono{background:var(--vh-soft);-webkit-mask:center / contain no-repeat;mask:center / contain no-repeat}.vh-new-logo.is-letter{display:grid;place-items:center;box-sizing:border-box;border:1px solid var(--vh-border-strong);border-radius:5px;color:var(--vh-soft);font-family:var(--vh-fono);font-size:10px;line-height:1}.vh-new-text{display:grid;min-width:0}.vh-new-name{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.vh-new-date{color:var(--vh-muted);font-family:var(--vh-fono);font-size:11px;line-height:16px}@media (max-width: 1439px){.vh-slide.is-mark{background:radial-gradient(50% 50% at 82% 18%, rgba(72, 152, 230, 0.2), transparent 70%), var(--vh-well)}.vh-slide .vh-art-mark{top:-6%;right:-6%;width:min(56%, 420px);opacity:0.16;transform:none}.vh-slide .vh-art-mark.is-letter{font-size:min(44vw, 400px)}}@media (max-width: 1279px){.vh-release,.vh-slide{min-height:460px}.vh .vh-release h2{font-size:72px}.vh-new{overflow-x:auto}.vh a.vh-new-item{flex:0 0 200px}}@media (max-width: 767px){.vh-release{border-radius:16px}.vh-release,.vh-slide{min-height:440px}.vh-release-copy{padding:24px;font-size:16px;line-height:24px}.vh .vh-release h2{font-size:52px}.vh-made{display:none}.vh-slide.is-mark{background:radial-gradient(56% 36% at 80% 18%, rgba(72, 152, 230, 0.24), transparent 70%), var(--vh-well)}.vh-slide .vh-art-mark{right:-14%;width:84%}.vh-slide .vh-art-mark.is-letter{font-size:72vw}}@media (prefers-reduced-motion: reduce){.vh-slide.is-active{animation:none}}.vh-section{margin-top:112px}.vh h2{margin:0 0 28px;color:var(--vh-text);font-family:var(--vh-display);font-size:44px;font-weight:400;line-height:1.05;letter-spacing:-0.01em}.vh-head{display:flex;align-items:baseline;justify-content:space-between;gap:16px}.vh-more{color:var(--vh-muted);font-size:13px;white-space:nowrap}.vh-more::after{content:\" →\"}.vh-more:hover{color:var(--vh-accent)}@media (max-width: 767px){.vh-section{margin-top:80px}.vh h2{font-size:36px}}.vh-bento{display:grid;grid-template-columns:repeat(12, minmax(0, 1fr));gap:16px}.vh-tile{position:relative;grid-column:span 3;height:232px;overflow:hidden;border-radius:16px;background:radial-gradient(110% 90% at 0% 0%, rgba(72, 152, 230, 0.13), transparent 62%), #111922;isolation:isolate}.vh-tile.is-labs{grid-column:span 12;height:320px}.vh-tile.is-half{grid-column:span 6}.vh-tile>video,.vh-tile>img{position:absolute;inset:0;z-index:-1;width:100%;height:100%;margin:0;object-fit:cover}.vh-tile>video,.vh-tile>img,.vh-ui,.vh-labs{transition:scale 0.6s ease}@media (prefers-reduced-motion: no-preference){.vh-tile:hover>video,.vh-tile:hover>img,.vh-tile:hover .vh-ui,.vh-tile:hover .vh-labs{scale:1.03}}.vh-tile::after{content:\"\";position:absolute;inset:0;background:linear-gradient(0deg, rgba(6, 9, 13, 0.78) 0%, rgba(6, 9, 13, 0) 45%);pointer-events:none}.vh a.vh-tile-link{position:absolute;z-index:1;inset:0;border-radius:inherit}.vh a.vh-tile-link:focus-visible{outline:2px solid var(--vh-stucco);outline-offset:-2px}.vh-tile-label{position:absolute;right:20px;bottom:18px;left:20px;display:flex;flex-direction:column;align-items:flex-start;gap:2px}.vh-tile-label>:first-child{color:var(--vh-on-well);font-size:16px}.vh-tile-label>:last-child{max-width:100%;overflow:hidden;color:rgba(247, 245, 237, 0.62);font-family:var(--vh-mono);font-size:11px;text-overflow:ellipsis;white-space:nowrap}.vh-credit{position:absolute;z-index:1;right:20px;bottom:18px;color:rgba(247, 245, 237, 0.62);font-size:11px;line-height:16px;pointer-events:none}.vh .vh-tile h2{position:absolute;top:28px;left:20px;max-width:5.5em;margin:0;color:var(--vh-on-well);font-size:72px;line-height:1.04}.vh-labs{position:absolute;top:50%;right:32px;left:50%;display:grid;grid-template-columns:repeat(var(--vh-lab-tracks), minmax(0, 1fr));row-gap:22px;transform:translateY(-50%)}.vh-lab{grid-column-end:span 2;justify-self:center;width:38px;height:38px;background:rgba(247, 245, 237, 0.86);-webkit-mask:center / contain no-repeat;mask:center / contain no-repeat}.vh-ui{position:absolute;z-index:-1;inset:0;display:flex;flex-direction:column;gap:10px;padding:20px}.vh-ui-q{flex-shrink:0;overflow:hidden;padding:7px 12px;border:1px solid rgba(247, 245, 237, 0.14);border-radius:999px;color:var(--vh-on-well);font-family:var(--vh-mono);font-size:12px;line-height:18px;text-overflow:ellipsis;white-space:nowrap}.vh-ui-q b,.vh-ui-row b{color:var(--vh-stucco);font-weight:400}.vh-ui-row{display:grid;grid-template-columns:38px minmax(0, 1fr);gap:8px;color:var(--vh-on-well);font-size:13px;line-height:18px}.vh-ui-row b{font-family:var(--vh-mono);font-size:11px}.vh-ui-row>span,.vh-ui-res>span{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.vh-ui-res{display:grid;gap:2px}.vh-ui-res>span:first-child{color:var(--vh-on-well);font-size:13px;line-height:18px}.vh-ui-res>span:last-child{color:#8a949c;font-family:var(--vh-mono);font-size:11px;line-height:16px}.vh-ui-wave{display:flex;flex-shrink:0;align-items:center;gap:3px;height:40px;margin:2px 0}.vh-ui-wave>i{flex:1;border-radius:2px;background:rgba(247, 245, 237, 0.28)}.vh-ui-wave>i.is-played{background:var(--vh-stucco)}.vh .vh-pause{position:absolute;z-index:2;top:16px;right:16px;display:grid;place-items:center;width:30px;height:30px;padding:0;border:0;border-radius:50%;background:rgba(6, 9, 13, 0.5);color:var(--vh-on-well);backdrop-filter:blur(8px);cursor:pointer}.vh .vh-pause:focus-visible{outline:2px solid var(--vh-stucco);outline-offset:2px}@media (max-width: 1279px){.vh-tile{grid-column:span 6}.vh .vh-tile h2{font-size:56px}.vh-lab{width:30px;height:30px}}@media (max-width: 767px){.vh-bento{grid-template-columns:repeat(2, minmax(0, 1fr))}.vh-tile{grid-column:span 1;height:auto;aspect-ratio:1}.vh-tile.is-labs{grid-column:span 2;height:auto}.vh-tile.is-half{grid-column:span 2;aspect-ratio:2}.vh-tile-label{right:14px;bottom:12px;left:14px}.vh-tile-label>:first-child{font-size:14px}.vh-tile-label>:last-child{font-size:10.5px}.vh-credit{right:14px;bottom:12px}.vh .vh-tile h2{top:16px;left:16px;font-size:44px}.vh-labs{top:auto;right:16px;bottom:88px;left:16px;transform:none}.vh-lab{width:26px;height:26px}.vh-ui{gap:8px;padding:14px}.vh-ui-q{padding:5px 10px;font-size:11px;line-height:16px}.vh-ui-row{font-size:12px;line-height:16px}.vh-ui>:nth-child(n+4),.vh-ui-res+.vh-ui-res,.vh-ui-wave+.vh-ui-row{display:none}}.vh-bento+.vh-map{margin-top:56px}.vh-map{display:grid;grid-template-columns:repeat(6, minmax(0, 1fr));gap:40px 24px}.vh-map>div>:first-child{margin:0;color:var(--vh-accent);line-height:0}.vh .vh-map h3{margin:12px 0 8px;color:var(--vh-text);font-family:var(--vh-sans);font-size:14px;font-weight:400;line-height:20px}.vh-map ul{margin:0;padding:0;list-style:none}.vh-map li{margin:0;padding:0}.vh-map li a{display:block;padding:4px 0}.vh-map li a:hover,.vh-links a:hover{color:var(--vh-accent)}.vh-map>.is-wide{grid-column:span 2}.vh-links{display:grid;column-gap:24px}.vh-map>.is-wide .vh-links{grid-template-columns:repeat(2, minmax(0, 1fr))}.vh-links a{display:flex;align-items:center;gap:10px;padding:4px 0}.vh-links a>:first-child{flex:none}.vh-links a>:first-child:not(.vh-mark){background-color:currentColor}.vh-mark{display:inline-block;width:16px;height:16px;background:currentColor;-webkit-mask:center / contain no-repeat;mask:center / contain no-repeat}.vh-mark[data-letter]{display:grid;place-items:center;box-sizing:border-box;border:1px solid var(--vh-border-strong);border-radius:4px;background:none;-webkit-mask:none;mask:none;font-family:var(--vh-fono);font-size:9px;line-height:1}.vh-mark[data-letter]::before{content:attr(data-letter)}.vh-mark[data-logo=\"brave\"]{-webkit-mask-image:url(\"/images/icons/integrations/mono/brave.svg\");mask-image:url(\"/images/icons/integrations/mono/brave.svg\")}.vh-mark[data-logo=\"claude-code\"]{-webkit-mask-image:url(\"/images/icons/integrations/mono/claude-code.svg\");mask-image:url(\"/images/icons/integrations/mono/claude-code.svg\")}.vh-mark[data-logo=\"cline\"]{-webkit-mask-image:url(\"/images/icons/integrations/mono/cline.svg\");mask-image:url(\"/images/icons/integrations/mono/cline.svg\")}.vh-mark[data-logo=\"codex-cli\"]{-webkit-mask-image:url(\"/images/icons/integrations/mono/codex-cli.svg\");mask-image:url(\"/images/icons/integrations/mono/codex-cli.svg\")}.vh-mark[data-logo=\"crewai\"]{-webkit-mask-image:url(\"/images/icons/integrations/mono/crewai.svg\");mask-image:url(\"/images/icons/integrations/mono/crewai.svg\")}.vh-mark[data-logo=\"cursor\"]{-webkit-mask-image:url(\"/images/icons/integrations/mono/cursor.svg\");mask-image:url(\"/images/icons/integrations/mono/cursor.svg\")}.vh-mark[data-logo=\"hermes\"]{-webkit-mask-image:url(\"/images/providers/nous.svg\");mask-image:url(\"/images/providers/nous.svg\")}.vh-mark[data-logo=\"jan\"]{-webkit-mask-image:url(\"/images/icons/integrations/jan.png\");mask-image:url(\"/images/icons/integrations/jan.png\")}.vh-mark[data-logo=\"kilo-code\"]{-webkit-mask-image:url(\"/images/icons/integrations/mono/kilo-code.svg\");mask-image:url(\"/images/icons/integrations/mono/kilo-code.svg\")}.vh-mark[data-logo=\"langchain\"]{-webkit-mask-image:url(\"/images/icons/integrations/mono/langchain.svg\");mask-image:url(\"/images/icons/integrations/mono/langchain.svg\")}.vh-mark[data-logo=\"livekit\"]{-webkit-mask-image:url(\"/images/icons/integrations/mono/livekit.svg\");mask-image:url(\"/images/icons/integrations/mono/livekit.svg\")}.vh-mark[data-logo=\"mcp\"]{-webkit-mask-image:url(\"/images/icons/integrations/mono/mcp.svg\");mask-image:url(\"/images/icons/integrations/mono/mcp.svg\")}.vh-mark[data-logo=\"nanoclaw\"]{-webkit-mask-image:url(\"/images/icons/integrations/nanoclaw.png\");mask-image:url(\"/images/icons/integrations/nanoclaw.png\")}.vh-mark[data-logo=\"openclaw\"]{-webkit-mask-image:url(\"/images/icons/integrations/openclaw.svg\");mask-image:url(\"/images/icons/integrations/openclaw.svg\")}.vh-mark[data-logo=\"opencode\"]{-webkit-mask-image:url(\"/images/icons/integrations/mono/opencode.svg\");mask-image:url(\"/images/icons/integrations/mono/opencode.svg\")}.vh-mark[data-logo=\"pydantic\"]{-webkit-mask-image:url(\"/images/icons/integrations/mono/pydantic.svg\");mask-image:url(\"/images/icons/integrations/mono/pydantic.svg\")}.vh-mark[data-logo=\"venice-skills\"]{-webkit-mask-image:url(\"/images/icons/integrations/mono/venice-skills.svg\");mask-image:url(\"/images/icons/integrations/mono/venice-skills.svg\")}.vh-mark[data-logo=\"vercel\"]{-webkit-mask-image:url(\"/images/icons/integrations/mono/vercel.svg\");mask-image:url(\"/images/icons/integrations/mono/vercel.svg\")}.vh-mark[data-logo=\"xcode\"]{-webkit-mask-image:url(\"/images/icons/integrations/mono/xcode.svg\");mask-image:url(\"/images/icons/integrations/mono/xcode.svg\")}@media (max-width: 1279px){.vh-map{grid-template-columns:repeat(3, minmax(0, 1fr))}}@media (max-width: 767px){.vh-map{grid-template-columns:repeat(2, minmax(0, 1fr));grid-auto-flow:row dense}}.vh-start{display:grid;grid-template-columns:repeat(3, minmax(0, 1fr));gap:24px;align-items:start}.vh-start-copy h2{margin-bottom:32px}.vh-handoff{display:grid;grid-column:span 2;gap:12px;padding:28px;border-radius:16px;background:radial-gradient(110% 90% at 0% 0%, rgba(72, 152, 230, 0.13), transparent 62%), #111922;color:var(--vh-on-well)}.vh-handoff-bar{display:flex;flex-wrap:wrap;justify-content:space-between;gap:4px 16px;color:rgba(247, 245, 237, 0.62);font-size:13px}.vh-handoff-line{display:flex;align-items:center;gap:12px;margin-top:12px;padding:10px 10px 10px 16px;border:1px solid rgba(247, 245, 237, 0.14);border-radius:12px}.vh-handoff-line::before{content:\"›\" / \"\";color:var(--vh-stucco);font-family:var(--vh-mono);font-size:14px}.vh .vh-handoff-line code{flex:1;padding:0;border:0;border-radius:0;background:none;color:var(--vh-on-well);font-family:var(--vh-mono);font-size:14px;line-height:20px;overflow-wrap:break-word}.vh .vh-copy{flex-shrink:0;height:28px;padding:0 12px;border:1px solid rgba(247, 245, 237, 0.18);border-radius:999px;background:none;color:var(--vh-on-well);font-size:12px;cursor:pointer}.vh .vh-copy:hover{border-color:rgba(247, 245, 237, 0.42)}.vh .vh-copy:focus-visible{outline:2px solid var(--vh-stucco);outline-offset:2px}.vh-handoff>[data-as=\"p\"]{margin:0;color:rgba(247, 245, 237, 0.62);font-size:14px}.vh-spec ul{display:grid;gap:12px;margin:0;padding:0;list-style:none}.vh-spec li{position:relative;margin:0;padding:0 0 0 84px;color:var(--vh-text);font-size:14px}.vh-spec strong{position:absolute;left:0;color:var(--vh-muted);font-family:var(--vh-fono);font-size:11px;font-weight:400;letter-spacing:0.06em;text-transform:uppercase}.vh-spec code{padding:0;border:0;border-radius:0;background:none;color:var(--vh-text);font-family:var(--vh-mono);font-size:12px}.vh .vh-spec a{border-bottom:1px solid var(--vh-border-strong)}.vh .vh-spec a:hover{border-color:var(--vh-accent);color:var(--vh-accent)}.vh-actions{display:flex;flex-wrap:wrap;gap:8px;margin-top:28px}.vh a.vh-button{display:inline-flex;align-items:center;height:38px;padding:0 16px;border:1px solid var(--vh-border-strong);border-radius:9px;color:var(--vh-text);font-size:14px}.vh a.vh-button:hover{border-color:var(--vh-accent)}.vh a.vh-button.is-primary{border-color:#125da3;background:#125da3;color:#ffffff}.vh a.vh-button.is-primary:hover{border-color:#0e4d87;background:#0e4d87}@media (max-width: 1279px){.vh-start{grid-template-columns:minmax(0, 1fr)}.vh-handoff{grid-column:auto}}@media (max-width: 767px){.vh-handoff{padding:20px}.vh-handoff-line{flex-wrap:wrap;row-gap:10px}.vh .vh-handoff-line code{flex-basis:calc(100% - 24px);font-size:13px}.vh .vh-copy{margin-left:auto}}.vh-agents{display:grid;grid-template-columns:repeat(7, minmax(0, 1fr));gap:12px;margin-top:16px}.vh .vh-agents a{display:grid;justify-items:center;gap:10px;color:rgba(247, 245, 237, 0.8);font-size:12px;white-space:nowrap}.vh-agent-icon{display:grid;place-items:center;width:60px;height:60px;border:1px solid rgba(247, 245, 237, 0.12);border-radius:16px;background:rgba(247, 245, 237, 0.04);transition:border-color 0.2s ease, background-color 0.2s ease}.vh .vh-agents a:hover{color:var(--vh-on-well)}.vh .vh-agents a:hover .vh-agent-icon{border-color:rgba(247, 245, 237, 0.3);background:rgba(247, 245, 237, 0.08)}.vh-agent-icon .vh-mark{width:28px;height:28px}@media (max-width: 767px){.vh-agents{grid-template-columns:repeat(4, minmax(0, 1fr));row-gap:18px}.vh-agent-icon{width:52px;height:52px;border-radius:14px}.vh-agent-icon .vh-mark{width:24px;height:24px}}.vh-models{display:grid;grid-template-columns:repeat(4, minmax(0, 1fr));gap:16px}.vh-model{position:relative;display:flex;flex-direction:column;overflow:hidden;border:1px solid var(--vh-border);border-radius:16px;background:var(--vh-surface);transition:border-color 0.15s ease}.vh-model:hover{border-color:var(--vh-border-strong)}.vh-model-art{position:relative;height:172px;overflow:hidden;background:var(--vh-well)}.vh-model-art>video,.vh-model-art>img{width:100%;height:100%;margin:0;object-fit:cover}.vh-model-art.is-mark{background:radial-gradient(60% 80% at 50% 50%, rgba(72, 152, 230, 0.2), transparent 70%), var(--vh-well)}.vh-model-art .vh-art-mark{position:absolute;top:50%;left:50%;width:64px;height:64px;background:rgba(247, 245, 237, 0.92);-webkit-mask:center / contain no-repeat;mask:center / contain no-repeat;transform:translate(-50%, -50%)}.vh-model-art .vh-art-mark.is-letter{display:grid;place-items:center;background:none;-webkit-mask:none;mask:none;color:rgba(247, 245, 237, 0.92);font-family:var(--vh-display);font-size:60px;line-height:1}.vh-tag{position:absolute;top:12px;left:12px;padding:3px 8px;border-radius:999px;background:rgba(6, 9, 13, 0.7);color:var(--vh-stucco);font-family:var(--vh-fono);font-size:10px;line-height:14px;letter-spacing:0.06em;text-transform:uppercase}.vh-model>:nth-child(n+2){display:block;margin:0 18px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.vh-model>:nth-child(2){margin-top:16px;color:var(--vh-text);font-size:16px}.vh .vh-model a.link{position:static}.vh-model>:nth-child(2) a::after{content:\"\";position:absolute;inset:0}.vh-model code{padding:0;border:0;border-radius:0;background:none;color:var(--vh-muted);font-family:var(--vh-mono);font-size:11.5px}.vh-model>:nth-child(3){margin-top:4px}.vh-model>:nth-child(4){margin:12px 18px 18px;white-space:normal;color:var(--vh-soft);font-family:var(--vh-fono);font-size:11.5px}.vh-model-privacy{color:var(--vh-good)}.vh-model-privacy.is-anonymized{color:var(--vh-muted)}@media (max-width: 1279px){.vh-models{grid-template-columns:repeat(2, minmax(0, 1fr))}}@media (max-width: 767px){.vh-models{grid-template-columns:minmax(0, 1fr)}}.vh-foot{display:flex;flex-wrap:wrap;justify-content:space-between;gap:16px 24px;margin-top:112px;padding-top:24px;border-top:1px solid var(--vh-border);font-family:var(--vh-fono);font-size:12px}.vh-foot>div{display:flex;flex-wrap:wrap;gap:8px 24px}.vh-foot a{color:var(--vh-muted)}.vh-foot a:hover{color:var(--vh-text)}"}]}
{"page":{"pagePath":"zh/api-reference/endpoint/image/generate","slug":"/zh/api-reference/endpoint/image/generate","pageMetadata":{"title":"生成图像","openapi":"POST /image/generate","og:title":"Image Generate | Venice API Docs","og:description":"Documentation covering Venice's image generation API.","description":"Generate an image based on input parameters\n\n**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. A `401` response with code `X402_USER_NOT_ALLOWED` means the wallet's Venice account is banned or deleted, or the wallet's x402 credit account belongs to a different user.","href":"/zh/api-reference/endpoint/image/generate"},"description":{"compiledSource":"\"use strict\";\nconst {Fragment: _Fragment, jsx: _jsx, jsxs: _jsxs} = arguments[0];\nconst {useMDXComponents: _provideComponents} = arguments[0];\nfunction _createMdxContent(props) {\n const _components = {\n code: \"code\",\n p: \"p\",\n strong: \"strong\",\n ..._provideComponents(),\n ...props.components\n };\n return _jsxs(_Fragment, {\n children: [_jsx(_components.p, {\n children: \"Generate an image based on input parameters\"\n }), \"\\n\", _jsxs(_components.p, {\n children: [_jsx(_components.strong, {\n children: \"Authentication:\"\n }), \" This endpoint accepts either a Bearer API key or a \", _jsx(_components.code, {\n children: \"SIGN-IN-WITH-X\"\n }), \" header for x402 wallet-based authentication. The legacy \", _jsx(_components.code, {\n children: \"X-Sign-In-With-X\"\n }), \" header is also accepted during migration. When using x402, a \", _jsx(_components.code, {\n children: \"402 Payment Required\"\n }), \" response indicates insufficient balance and includes top-up instructions. A \", _jsx(_components.code, {\n children: \"401\"\n }), \" response with code \", _jsx(_components.code, {\n children: \"X402_USER_NOT_ALLOWED\"\n }), \" means the wallet’s Venice account is banned or deleted, or the wallet’s x402 credit account belongs to a different user.\"]\n })]\n });\n}\nfunction MDXContent(props = {}) {\n const {wrapper: MDXLayout} = {\n ..._provideComponents(),\n ...props.components\n };\n return MDXLayout ? _jsx(MDXLayout, {\n ...props,\n children: _jsx(_createMdxContent, {\n ...props\n })\n }) : _createMdxContent(props);\n}\nreturn {\n default: MDXContent\n};\n","frontmatter":{},"scope":{}},"pageType":"default","mdx":{"mdxSource":{"compiledSource":"\"use strict\";const{Fragment:_Fragment,jsx:_jsx,jsxs:_jsxs}=arguments[0];const{useMDXComponents:_provideComponents}=arguments[0];function _createMdxContent(props){const _components={a:`a`,code:`code`,hr:`hr`,li:`li`,p:`p`,pre:`pre`,span:`span`,strong:`strong`,ul:`ul`,..._provideComponents(),...props.components},{CodeBlock,Heading,Info}=_components;if(!CodeBlock)_missingMdxReference(`CodeBlock`,true);if(!Heading)_missingMdxReference(`Heading`,true);if(!Info)_missingMdxReference(`Info`,true);return _jsxs(_Fragment,{children:[_jsx(Heading,{level:`2`,id:`尺寸选项`,children:`尺寸选项`}),`\n`,_jsx(_components.p,{children:`图像模型使用模型专属的尺寸参数:`}),`\n`,_jsxs(_components.ul,{children:[`\n`,_jsxs(_components.li,{children:[`基于像素的模型接受 `,_jsx(_components.code,{children:`width`}),` 和 `,_jsx(_components.code,{children:`height`}),`,例如 `,_jsx(_components.code,{children:`venice-sd35`}),`。`]}),`\n`,_jsxs(_components.li,{children:[`基于宽高比的模型接受 `,_jsx(_components.code,{children:`aspect_ratio`}),`,例如 `,_jsx(_components.code,{children:`qwen-image-2`}),`。Qwen Image 系列——`,_jsx(_components.code,{children:`qwen-image`}),`、`,_jsx(_components.code,{children:`qwen-image-3`}),`、`,_jsx(_components.code,{children:`qwen-image-3-pro`}),`、`,_jsx(_components.code,{children:`qwen-image-2-1-turbo`}),` 和 `,_jsx(_components.code,{children:`qwen-image-2-1-pro`}),`——会以 `,_jsx(_components.code,{children:`400`}),` `,_jsx(_components.strong,{children:`拒绝`}),` `,_jsx(_components.code,{children:`width`}),` 和 `,_jsx(_components.code,{children:`height`}),`;这些模型请使用 `,_jsx(_components.code,{children:`aspect_ratio`}),`。`]}),`\n`,_jsxs(_components.li,{children:[`基于分辨率等级的模型同时接受 `,_jsx(_components.code,{children:`aspect_ratio`}),` 和 `,_jsx(_components.code,{children:`resolution`}),`。`]}),`\n`]}),`\n`,_jsxs(_components.p,{children:[`例如,`,_jsx(_components.code,{children:`gpt-image-2`}),`、`,_jsx(_components.code,{children:`nano-banana-2`}),` 和 `,_jsx(_components.code,{children:`nano-banana-pro`}),` 支持 `,_jsx(_components.code,{children:`resolution`}),` 取值 `,_jsx(_components.code,{children:`1K`}),`、`,_jsx(_components.code,{children:`2K`}),` 和 `,_jsx(_components.code,{children:`4K`}),`:`]}),`\n`,_jsx(CodeBlock,{filename:``,numberOfLines:`7`,language:`json`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`json`,children:_jsxs(_components.code,{language:`json`,numberOfLines:`7`,children:[_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`{`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"model\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"gpt-image-2\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"prompt\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"a cinematic wide shot of Venice at sunset\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"aspect_ratio\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"16:9\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"resolution\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"4K\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"format\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"png\"`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`}`})}),`\n`]})})}),`\n`,_jsx(_components.p,{children:`相同的分辨率分级尺寸模式也适用于 Nano Banana 模型:`}),`\n`,_jsx(CodeBlock,{filename:``,numberOfLines:`6`,language:`json`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`json`,children:_jsxs(_components.code,{language:`json`,numberOfLines:`6`,children:[_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`{`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"model\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"nano-banana-pro\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"prompt\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"a serene canal in venice at sunset\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"aspect_ratio\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"16:9\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"resolution\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"2K\"`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`}`})}),`\n`]})})}),`\n`,_jsxs(_components.p,{children:[`对于接受宽高比但不公开分辨率等级的模型,请发送 `,_jsx(_components.code,{children:`aspect_ratio`}),` 而不带 `,_jsx(_components.code,{children:`resolution`}),`:`]}),`\n`,_jsx(CodeBlock,{filename:``,numberOfLines:`5`,language:`json`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`json`,children:_jsxs(_components.code,{language:`json`,numberOfLines:`5`,children:[_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`{`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"model\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"qwen-image-2\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"prompt\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"a serene canal in venice at sunset\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"aspect_ratio\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"16:9\"`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`}`})}),`\n`]})})}),`\n`,_jsxs(_components.p,{children:[`对于使用直接像素尺寸的模型,请改为发送 `,_jsx(_components.code,{children:`width`}),` 和 `,_jsx(_components.code,{children:`height`}),`:`]}),`\n`,_jsx(CodeBlock,{filename:``,numberOfLines:`6`,language:`json`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`json`,children:_jsxs(_components.code,{language:`json`,numberOfLines:`6`,children:[_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`{`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"model\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"venice-sd35\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"prompt\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"a serene canal in venice at sunset\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"width\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#B5CEA8`},children:`1024`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"height\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#B5CEA8`},children:`1024`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`}`})}),`\n`]})})}),`\n`,_jsxs(_components.p,{children:[`在跨模型混用尺寸字段之前,请查看`,_jsx(_components.a,{href:`/zh/models/image`,children:`图像模型`}),`或 `,_jsx(_components.a,{href:`/zh/api-reference/endpoint/models/list`,children:`Models 端点`}),`了解每个模型支持的尺寸选项。`]}),`\n`,_jsx(Heading,{level:`2`,id:`质量等级`,children:`质量等级`}),`\n`,_jsxs(_components.p,{children:[`部分模型接受可选的 `,_jsx(_components.code,{children:`quality`}),` 参数(`,_jsx(_components.code,{children:`low`}),`、`,_jsx(_components.code,{children:`medium`}),`、`,_jsx(_components.code,{children:`high`}),`),用于在视觉保真度和成本之间取得平衡。在 `,_jsx(_components.a,{href:`/zh/api-reference/endpoint/models/list`,children:_jsx(_components.code,{children:`GET /models?type=image`})}),` 返回的 `,_jsx(_components.code,{children:`model_spec.constraints`}),` 中列出 `,_jsx(_components.code,{children:`qualities`}),` 的模型只接受所列的值,其中部分模型仅支持子集,例如 `,_jsx(_components.code,{children:`low`}),` 和 `,_jsx(_components.code,{children:`medium`}),`。其他模型会忽略该参数。`]}),`\n`,_jsx(CodeBlock,{filename:``,numberOfLines:`7`,language:`json`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`json`,children:_jsxs(_components.code,{language:`json`,numberOfLines:`7`,children:[_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`{`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"model\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"gpt-image-2\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"prompt\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"a cinematic wide shot of Venice at sunset\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"aspect_ratio\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"16:9\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"resolution\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"2K\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"quality\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"medium\"`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`}`})}),`\n`]})})}),`\n`,_jsxs(_components.p,{children:[`当您省略 `,_jsx(_components.code,{children:`quality`}),` 时,模型将使用其默认等级(`,_jsx(_components.code,{children:`gpt-image-2`}),` 为 `,_jsx(_components.code,{children:`high`}),`)。价格取决于 `,_jsx(_components.code,{children:`resolution`}),` 与 `,_jsx(_components.code,{children:`quality`}),` 的组合 —— `,_jsx(_components.code,{children:`gpt-image-2`}),` 的各等级价格(1K/2K/4K × low/medium/high)在 `,_jsx(_components.a,{href:`/zh/api-reference/endpoint/models/list`,children:`Models 端点`}),`的 `,_jsx(_components.code,{children:`model_spec.pricing.quality`}),` 下公开,也列于 `,_jsx(_components.a,{href:`/zh/models/gpt-image-2`,children:`GPT Image 2 页面`}),`中。`]}),`\n`,_jsx(Info,{children:_jsxs(_components.p,{children:[`质量感知定价是所有 API 和 SDK 调用方的默认行为 —— 无需显式启用的请求头。省略 `,_jsx(_components.code,{children:`quality`}),` 的请求按模型的默认等级(`,_jsx(_components.code,{children:`gpt-image-2`}),` 为 `,_jsx(_components.code,{children:`high`}),`)计费。`]})}),`\n`,_jsx(Heading,{level:`2`,id:`postman-集合`,children:`Postman 集合`}),`\n`,_jsxs(_components.p,{children:[`如需更多示例,请参阅此 `,_jsx(_components.a,{href:`https://www.postman.com/veniceai/workspace/venice-ai-workspace/folder/38652128-0adc004d-2edf-4b88-a3bb-0f868c791c9c?action=share\u0026source=copy-link\u0026creator=38652128\u0026ctx=documentation`,children:`Postman 集合`}),`。`]}),`\n`,_jsx(_components.hr,{})]})}function MDXContent(props={}){const{wrapper:MDXLayout}={..._provideComponents(),...props.components};return MDXLayout?_jsx(MDXLayout,{...props,children:_jsx(_createMdxContent,{...props})}):_createMdxContent(props)}return{default:MDXContent};function _missingMdxReference(id,component){throw new Error(`Expected `+(component?`component`:`object`)+\" `\"+id+\"` to be defined: you likely forgot to import, pass, or provide it.\")}","frontmatter":{},"scope":{"codeStyling":"system","config":{},"pageMetadata":{"title":"生成图像","openapi":"POST /image/generate","og:title":"Image Generate | Venice API Docs","og:description":"Documentation covering Venice's image generation API.","description":"Generate an image based on input parameters\n\n**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. A `401` response with code `X402_USER_NOT_ALLOWED` means the wallet's Venice account is banned or deleted, or the wallet's x402 credit account belongs to a different user.","href":"/zh/api-reference/endpoint/image/generate"}}},"mdxSourceWithNoJs":null},"mdxExtracts":{"tableOfContents":[{"title":"尺寸选项","slug":"尺寸选项","depth":2,"children":[]},{"title":"质量等级","slug":"质量等级","depth":2,"children":[]},{"title":"Postman 集合","slug":"postman-集合","depth":2,"children":[]}],"codeExamples":{}},"jsLinks":["/_mintlify/custom/veniceai/2973765be7690b3f/model-search.js"],"openApiReferenceData":{"operation":{"description":"Generate an image based on input parameters\n\n**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. A `401` response with code `X402_USER_NOT_ALLOWED` means the wallet's Venice account is banned or deleted, or the wallet's x402 credit account belongs to a different user.","operationId":"generateImage","parameters":["a119e102-6a63-4a6f-a536-6e51167cfe3b"],"security":["207f944c-d595-47ea-93b3-0d5cd7e88b33","011311f7-2625-40d2-8c18-d8b1e542d47a"],"x-payment-info":{"price":{"mode":"dynamic","currency":"USD","min":"0.001","max":"10.00"},"protocols":[{"x402":{}}]},"summary":"/api/v1/image/generate","tags":["Image"],"requestBody":"21d0df39-8d89-4a05-85fc-b0146edfce66","responses":{"200":"0560e5ef-555a-4842-82ad-82b1369ec61e","400":"ae8799c0-9922-46ff-b644-3b0bca91813e","401":"a28ad62b-e6ae-43d1-bb19-08370eebd8d6","402":"8612f301-04b8-43c7-9c16-8cd2e230ca84","403":"aa83afdb-6c47-443c-9d62-be51f29f9021","415":"7fb0c0ea-6bf8-4f7c-aab0-3e47deb3a3c8","422":"f20dc8a7-4f4d-43f9-9fb3-ea940d5eaffb","429":"84f7002c-dca5-4b0e-9068-c3b9914bb270","500":"6b0ac48d-aa22-420a-bf6f-06d863702d5d","503":"424d2c3f-58f9-4fcb-937d-2cb689812561"},"method":"post","type":"path","servers":["44595c5a-cd65-4d68-a07b-049fe9e37006"],"path":"/image/generate","baseUrlOptions":["https://api.venice.ai/api/v1"],"title":"/api/v1/image/generate","codeSamples":[],"requiredOnlyExamples":false,"requestExampleType":"generated","responseExampleType":"generated","disableProxy":true},"dependencies":{"parameters":{"a119e102-6a63-4a6f-a536-6e51167cfe3b":{"description":"Supported compression encodings (gzip, br). Only applied when return_binary is false.","in":"header","name":"Accept-Encoding","required":false,"schema":{"example":"gzip, br","type":"string","isRequired":false,"description":"Supported compression encodings (gzip, br). Only applied when return_binary is false.","uniqueKey":"","typeLabel":"string"}}},"requestBody":{"content":{"application/json":{"schema":{"type":"object","properties":{"model":{"type":"string","description":"The model to use for image generation.","example":"grok-imagine-image","isRequired":true,"uniqueKey":"model","typeLabel":"string"},"prompt":{"type":"string","minLength":1,"maxLength":7500,"description":"The description for the image. Character limit is model specific and is listed in the promptCharacterLimit setting in the model list endpoint.","example":"A beautiful sunset over a mountain range","isRequired":true,"uniqueKey":"prompt","typeLabel":"string"},"anon_user_id":{"type":"string","minLength":1,"maxLength":128,"pattern":"^[\\x20-\\x7E]+$","description":"Optional identifier for the API customer's end user. Combined with the Venice user id when attributing the request to upstream providers. Distinct from the discarded OpenAI `user` field. Must be printable ASCII and must not contain `||`.","example":"end-user-123","uniqueKey":"anon_user_id","typeLabel":"string"},"cfg_scale":{"type":"number","minimum":0,"exclusiveMinimum":true,"maximum":20,"description":"CFG scale parameter. Higher values lead to more adherence to the prompt.","example":7.5,"uniqueKey":"cfg_scale","typeLabel":"number"},"embed_exif_metadata":{"type":"boolean","default":false,"description":"Embed prompt generation information into the image's EXIF metadata.","example":false,"uniqueKey":"embed_exif_metadata","typeLabel":"boolean"},"format":{"type":"string","enum":["jpeg","png","webp"],"default":"webp","description":"The image format to return. WebP are smaller and optimized for web use. PNG are higher quality but larger in file size. ","example":"webp","uniqueKey":"format","typeLabel":"enum\u003cstring>"},"height":{"type":"integer","minimum":0,"exclusiveMinimum":true,"maximum":4096,"default":1024,"description":"Height of the generated image, in pixels (max 4096). For models that list aspect ratios, width and height select the nearest aspect_ratio and a resolution tier (long edge above 1536 → 2K, above 3072 → 4K; the highest offered tier at or below that, otherwise the model default). An explicit aspect_ratio or resolution overrides only its own value. For models that render an exact canvas, each side must be at most 1280 before any model upscale.","example":1024,"uniqueKey":"height","typeLabel":"integer"},"hide_watermark":{"type":"boolean","default":false,"description":"Whether to hide the Venice watermark. Venice may ignore this parameter for certain generated content.","example":false,"uniqueKey":"hide_watermark","typeLabel":"boolean"},"inpaint":{"oneOf":[{"description":"This feature is deprecated and was disabled on May 19th, 2025. A revised in-painting API will be launched in the near future.","deprecated":true,"uniqueKey":"inpaint.oneOf.0","typeLabel":"any"},{"description":"This feature is deprecated and was disabled on May 19th, 2025. A revised in-painting API will be launched in the near future.","deprecated":true,"type":"null","uniqueKey":"inpaint.oneOf.1","typeLabel":"null"}],"uniqueKey":"inpaint","typeLabel":"any | null"},"lora_strength":{"type":"integer","minimum":0,"maximum":100,"description":"Lora strength for the model. Only applies if the model uses additional Loras.","example":50,"uniqueKey":"lora_strength","typeLabel":"integer"},"negative_prompt":{"type":"string","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.","example":"Clouds, Rain, Snow","uniqueKey":"negative_prompt","typeLabel":"string"},"return_binary":{"type":"boolean","default":false,"description":"Whether to return binary image data instead of base64.","example":false,"uniqueKey":"return_binary","typeLabel":"boolean"},"variants":{"type":"integer","minimum":1,"maximum":4,"description":"Number of images to generate (1–4). Only supported when return_binary is false. Variants the model provider explicitly rejects under its content policy are omitted from a successful partial response. Other moderation outcomes can still return blacked-out images; check `x-venice-is-content-violation`.","example":3,"uniqueKey":"variants","typeLabel":"integer"},"safe_mode":{"type":"boolean","default":true,"description":"Whether to blur images classified as adult content. Defaults to true. Set to false to receive unblurred output. No Pro subscription is required, and the mature filter setting in the Venice app does not affect this. The x-venice-is-blurred response header reports whether the returned image was blurred.","example":false,"uniqueKey":"safe_mode","typeLabel":"boolean"},"seed":{"type":"integer","minimum":-999999999,"maximum":999999999,"default":0,"description":"Random seed for generation. If not provided, a random seed will be used.","example":123456789,"uniqueKey":"seed","typeLabel":"integer"},"steps":{"type":"integer","default":8,"description":"Number of inference steps. This model does not support steps - this field is ignored.","example":8,"uniqueKey":"steps","typeLabel":"integer"},"style_preset":{"type":"string","description":"An image style to apply to the image. Visit https://docs.venice.ai/api-reference/endpoint/image/styles for more details.","example":"3D Model","uniqueKey":"style_preset","typeLabel":"string"},"aspect_ratio":{"type":"string","description":"Aspect ratio (utilized by certain image models including Nano Banana). Examples: \"1:1\", \"16:9\".","example":"1:1","uniqueKey":"aspect_ratio","typeLabel":"string"},"resolution":{"type":"string","description":"Resolution (utilized by certain image models including Nano Banana). Examples: \"1K\", \"2K\", \"4K\".","example":"1K","uniqueKey":"resolution","typeLabel":"string"},"quality":{"type":"string","enum":["low","medium","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.","example":"high","uniqueKey":"quality","typeLabel":"enum\u003cstring>"},"transparent_background":{"type":"boolean","description":"Return the image with a transparent background (alpha channel). Only supported by models with `supportsTransparentBackground: true` in their constraints (see GET /api/v1/models), and requires `format` png or webp; otherwise the request is rejected. Omit or set to false to keep the model default background.","example":false,"uniqueKey":"transparent_background","typeLabel":"boolean"},"enable_web_search":{"type":"boolean","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.","example":false,"uniqueKey":"enable_web_search","typeLabel":"boolean"},"disable_prompt_optimization_thinking":{"type":"boolean","description":"Skip the model's prompt-optimization thinking step for faster generation. Only supported by models with `supportsOptimizePromptThinking`; ignored by others. Omit to use the model default.","example":false,"uniqueKey":"disable_prompt_optimization_thinking","typeLabel":"boolean"},"enhance_prompt":{"type":"boolean","description":"Rewrite the prompt before generation to add clarifying visual detail. Additional credits are charged when a rewrite is generated. Adds up to ~30 seconds before generation starts. When enhancement is applied, the final prompt is returned URL-encoded in the `x-venice-enhanced-prompt` response header. Defaults to false.","example":false,"uniqueKey":"enhance_prompt","typeLabel":"boolean"},"width":{"type":"integer","minimum":0,"exclusiveMinimum":true,"maximum":4096,"default":1024,"description":"Width of the generated image, in pixels (max 4096). For models that list aspect ratios, width and height select the nearest aspect_ratio and a resolution tier (long edge above 1536 → 2K, above 3072 → 4K; the highest offered tier at or below that, otherwise the model default). An explicit aspect_ratio or resolution overrides only its own value. For models that render an exact canvas, each side must be at most 1280 before any model upscale.","example":1024,"uniqueKey":"width","typeLabel":"integer"},"style_references":{"type":"array","items":{"type":"object","properties":{"image":{"oneOf":[{"type":"string","description":"A style reference image as a base64-encoded string (raw or data URI) or a URL starting with http:// or https://. Must be less than 8MB.","example":"https://example.com/style-reference.png","isRequired":true,"uniqueKey":"style_references.items.[INDEX].image.oneOf.0","typeLabel":"string"},{"type":"string","description":"A style reference image as a base64-encoded string (raw or data URI) or a URL starting with http:// or https://. Must be less than 8MB.","format":"uri","example":"https://example.com/style-reference.png","isRequired":true,"uniqueKey":"style_references.items.[INDEX].image.oneOf.1","typeLabel":"string\u003curi>"}],"isRequired":true,"uniqueKey":"style_references.items.[INDEX].image","typeLabel":"string | string\u003curi>"},"strength":{"type":"number","minimum":0.1,"maximum":1,"description":"How strongly the reference guides the output (0.1–1). Defaults to 0.5. Ignored by models where supportsStyleReferenceStrength is false.","example":0.5,"uniqueKey":"style_references.items.[INDEX].strength","typeLabel":"number"}},"required":["image"],"additionalProperties":false,"uniqueKey":"style_references.items.[INDEX]","typeLabel":"object"},"description":"Style reference images that guide the aesthetic of the generated image. Only supported by models with `supportsStyleReferences: true` (see GET /api/v1/models for the per-model `maxStyleReferences` limit).","example":[{"image":"https://example.com/style-reference.png","strength":0.5}],"uniqueKey":"style_references","typeLabel":"object[]"}},"required":["model","prompt"],"additionalProperties":false,"uniqueKey":"","typeLabel":"object"},"examples":{"Example":{"title":"Example","value":{"model":"grok-imagine-image","prompt":"A beautiful sunset over a mountain range","anon_user_id":"end-user-123","cfg_scale":7.5,"embed_exif_metadata":false,"format":"webp","height":1024,"hide_watermark":false,"inpaint":"\u003cunknown>","lora_strength":50,"negative_prompt":"Clouds, Rain, Snow","return_binary":false,"variants":3,"safe_mode":false,"seed":123456789,"steps":8,"style_preset":"3D Model","aspect_ratio":"1:1","resolution":"1K","quality":"high","transparent_background":false,"enable_web_search":false,"disable_prompt_optimization_thinking":false,"enhance_prompt":false,"width":1024,"style_references":[{"image":"https://example.com/style-reference.png","strength":0.5}]}}},"exampleType":"generated"}},"exampleType":"generated"},"responses":{"0560e5ef-555a-4842-82ad-82b1369ec61e":{"description":"Successfully generated image","headers":{"X-Balance-Remaining":{"description":"Remaining x402 credit balance in USD after this request (only present for x402 auth).","required":false,"schema":{"type":"string","example":"4.230000"}},"Content-Encoding":{"description":"The encoding used to compress the response","schema":{"enum":["gzip","br"],"type":"string"}},"x-venice-is-blurred":{"description":"Indicates if the generated image is blurred. When Safe Venice is enabled, adult material will be returned blurred.","required":false,"schema":{"type":"boolean"}},"x-venice-is-content-violation":{"description":"Indicates if the generated image does not meet Venice terms of service.","required":false,"schema":{"type":"boolean"}},"x-venice-content-violation-count":{"description":"Number of requested variants omitted because the model provider explicitly rejected them under its content policy. Other moderation outcomes can still return blacked-out images flagged by `x-venice-is-content-violation`.","required":false,"schema":{"minimum":1,"type":"integer"}},"x-venice-model-deprecation-warning":{"description":"A warning that the model is scheduled for deprecation","required":false,"schema":{"type":"string"}},"x-venice-model-deprecation-date":{"description":"The date the model is scheduled for deprecation","required":false,"schema":{"type":"string","format":"date-time"}},"x-venice-deprecated":{"description":"Present and set to \"true\" when the model is deprecated. Absent otherwise.","required":false,"schema":{"type":"string","enum":["true"]}},"x-venice-deprecated-replacement":{"description":"Public API model ID clients should migrate to. Only present when a replacement is published.","required":false,"schema":{"type":"string"}}},"content":{"application/json":{"schema":{"type":"object","properties":{"id":{"type":"string","description":"The ID of the request.","example":"generate-image-1234567890","isRequired":true,"uniqueKey":"id","typeLabel":"string"},"images":{"type":"array","items":{"type":"string","uniqueKey":"images.items.[INDEX]","typeLabel":"string"},"description":"Base64 encoded image data. A partial response can contain fewer entries than requested.","isRequired":true,"uniqueKey":"images","typeLabel":"string[]"},"timing":{"type":"object","properties":{"inferenceDuration":{"type":"number","description":"Duration of inference in milliseconds","isRequired":true,"uniqueKey":"timing.inferenceDuration","typeLabel":"number"},"inferencePreprocessingTime":{"type":"number","description":"Duration of preprocessing in milliseconds","isRequired":true,"uniqueKey":"timing.inferencePreprocessingTime","typeLabel":"number"},"inferenceQueueTime":{"type":"number","description":"Duration of queueing in milliseconds","isRequired":true,"uniqueKey":"timing.inferenceQueueTime","typeLabel":"number"},"total":{"type":"number","description":"Total duration of the request in milliseconds","isRequired":true,"uniqueKey":"timing.total","typeLabel":"number"}},"required":["inferenceDuration","inferencePreprocessingTime","inferenceQueueTime","total"],"isRequired":true,"uniqueKey":"timing","typeLabel":"object"},"content_policy_violation_count":{"type":"integer","minimum":1,"description":"Number of requested variants omitted because the model provider explicitly rejected them under its content policy. Other moderation outcomes can still return blacked-out images flagged by `x-venice-is-content-violation`.","example":1,"uniqueKey":"content_policy_violation_count","typeLabel":"integer"},"request":{"oneOf":[{"description":"The original request data sent to the API.","uniqueKey":"request.oneOf.0","typeLabel":"any"},{"description":"The original request data sent to the API.","type":"null","uniqueKey":"request.oneOf.1","typeLabel":"null"}],"uniqueKey":"request","typeLabel":"any | null"}},"required":["id","images","timing"],"uniqueKey":"","typeLabel":"object"},"examples":{"Example":{"title":"Example","value":{"id":"generate-image-1234567890","images":["\u003cstring>"],"timing":{"inferenceDuration":123,"inferencePreprocessingTime":123,"inferenceQueueTime":123,"total":123},"content_policy_violation_count":1,"request":"\u003cunknown>"}}},"exampleType":"generated"},"image/jpeg":{"schema":{"description":"Raw image data when return_binary is true and format is jpeg","format":"binary","type":"string","uniqueKey":"","typeLabel":"file"},"examples":{"Example":{"title":"Example","value":"\u003cstring>"}},"exampleType":"generated"},"image/png":{"schema":{"description":"Raw image data when return_binary is true and format is png","format":"binary","type":"string","uniqueKey":"","typeLabel":"file"},"examples":{"Example":{"title":"Example","value":"\u003cstring>"}},"exampleType":"generated"},"image/webp":{"schema":{"description":"Raw image data when return_binary is true and format is webp","format":"binary","type":"string","uniqueKey":"","typeLabel":"file"},"examples":{"Example":{"title":"Example","value":"\u003cstring>"}},"exampleType":"generated"}},"exampleType":"generated"},"ae8799c0-9922-46ff-b644-3b0bca91813e":{"description":"Invalid request parameters","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string","description":"A description of the error","isRequired":true,"uniqueKey":"error","typeLabel":"string"},"details":{"type":"object","properties":{},"description":"Details about the incorrect input","example":{"_errors":[],"field":{"_errors":["Field is required"]}},"uniqueKey":"details","typeLabel":"object"}},"required":["error"],"uniqueKey":"","typeLabel":"object"},"examples":{"Example":{"title":"Example","value":{"error":"\u003cstring>","details":{"_errors":[],"field":{"_errors":["Field is required"]}}}}},"exampleType":"generated"}},"exampleType":"generated"},"a28ad62b-e6ae-43d1-bb19-08370eebd8d6":{"description":"- Authentication failed\n- This model is only available to Pro users","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string","description":"A description of the error","isRequired":true,"uniqueKey":"error","typeLabel":"string"}},"required":["error"],"uniqueKey":"","typeLabel":"object"},"examples":{"Example":{"title":"Example","value":{"error":"\u003cstring>"}}},"exampleType":"generated"}},"exampleType":"generated"},"8612f301-04b8-43c7-9c16-8cd2e230ca84":{"description":"Payment or balance required. Response varies by authentication state:\n\n**API Key users:** Standard error response with `INSUFFICIENT_BALANCE` code. Top up your Venice balance at venice.ai.\n\n**Unauthenticated x402 discovery:** Structured x402 response with `x402Version`, `resource`, `accepts`, and `extensions[\"sign-in-with-x\"]`. The `accepts` array advertises Base and Solana payment requirements.\n\n**Authenticated x402 wallet users with insufficient credit:** Structured response with `PAYMENT_REQUIRED` code containing:\n- `topUpInstructions`: Step-by-step guide to top up via x402 protocol\n- `supportedTokens` / `supportedChains`: Accepted payment methods\n- `siwxChallenge`: Fresh Sign-In-With-X challenge metadata\n\nA wallet that has never completed a top-up has no Venice account yet and receives this response with a balance of `0`. The first successful top-up creates the account.\n\nThe `PAYMENT-REQUIRED` header also contains a base64-encoded x402 protocol object with the payment requirements for programmatic discovery.","headers":{"PAYMENT-REQUIRED":{"description":"Base64-encoded JSON with x402 payment requirements. Present on x402 middleware 402 responses. Decode to choose and sign one accepted payment requirement programmatically.","required":false,"schema":{"type":"string"}}},"content":{"application/json":{"schema":{"oneOf":[{"type":"object","required":["error"],"properties":{"error":{"type":"string","description":"A description of the error","isRequired":true,"uniqueKey":"oneOf.0.error","typeLabel":"string"}},"uniqueKey":"oneOf.0","typeLabel":"object"},{"type":"object","description":"Returned when an inference request has no API key or wallet authentication. The JSON body includes x402 discovery requirements and authentication options.","required":["x402Version","resource","accepts","authOptions"],"properties":{"x402Version":{"type":"number","description":"x402 protocol version.","example":2,"isRequired":true,"uniqueKey":"oneOf.1.x402Version","typeLabel":"number"},"resource":{"type":"object","properties":{"url":{"type":"string","description":"Protected resource URL.","example":"https://api.venice.ai/api/v1/chat/completions","isRequired":true,"uniqueKey":"oneOf.1.resource.url","typeLabel":"string"},"description":{"type":"string","description":"Human-readable resource description.","example":"Venice API","isRequired":true,"uniqueKey":"oneOf.1.resource.description","typeLabel":"string"},"mimeType":{"type":"string","description":"Resource MIME type.","example":"application/json","isRequired":true,"uniqueKey":"oneOf.1.resource.mimeType","typeLabel":"string"}},"required":["url","description","mimeType"],"additionalProperties":false,"isRequired":true,"uniqueKey":"oneOf.1.resource","typeLabel":"object"},"accepts":{"type":"array","items":{"type":"object","properties":{"scheme":{"type":"string","enum":["exact"],"description":"x402 payment scheme.","example":"exact","isRequired":true,"uniqueKey":"oneOf.1.accepts.items.[INDEX].scheme","typeLabel":"enum\u003cstring>"},"network":{"type":"string","description":"Payment network for this requirement in CAIP-2 form (e.g. `eip155:8453` for Base, `solana:5eykt4UsFv8P8NJdTREpY1vzqKqZKvdp` for Solana mainnet).","example":"solana:5eykt4UsFv8P8NJdTREpY1vzqKqZKvdp","isRequired":true,"uniqueKey":"oneOf.1.accepts.items.[INDEX].network","typeLabel":"string"},"asset":{"type":"string","description":"USDC token address or mint for the selected network.","example":"EPjFWdd5AufqSSqeM2qN1xzybapC8G4wEGGkZwyTDt1v","isRequired":true,"uniqueKey":"oneOf.1.accepts.items.[INDEX].asset","typeLabel":"string"},"amount":{"type":"string","description":"Required payment amount in base units (USDC has 6 decimals).","example":"10000000","isRequired":true,"uniqueKey":"oneOf.1.accepts.items.[INDEX].amount","typeLabel":"string"},"payTo":{"type":"string","description":"Receiver wallet address for the selected network.","example":"8qUL23aSj7mDWdoLMXGHFvnVCT9wd7jXcysiekroADEL","isRequired":true,"uniqueKey":"oneOf.1.accepts.items.[INDEX].payTo","typeLabel":"string"},"maxTimeoutSeconds":{"type":"number","description":"Maximum time allowed for payment settlement.","example":300,"isRequired":true,"uniqueKey":"oneOf.1.accepts.items.[INDEX].maxTimeoutSeconds","typeLabel":"number"},"extra":{"type":"object","properties":{},"description":"Network-specific x402 metadata. Solana requirements include a feePayer.","example":{"name":"USD Coin","version":"2","feePayer":"BFK9TLC3edb13K6v4YyH3DwPb5DSUpkWvb7XnqCL9b4F"},"isRequired":true,"uniqueKey":"oneOf.1.accepts.items.[INDEX].extra","typeLabel":"object"}},"required":["scheme","network","asset","amount","payTo","maxTimeoutSeconds","extra"],"additionalProperties":false,"uniqueKey":"oneOf.1.accepts.items.[INDEX]","typeLabel":"object"},"description":"Protocol payment requirements. Clients should choose one entry, such as Base or Solana, and sign exactly that requirement.","isRequired":true,"uniqueKey":"oneOf.1.accepts","typeLabel":"object[]"},"authOptions":{"type":"object","properties":{"apiKey":{"type":"object","properties":{"header":{"type":"string","description":"API key authentication header format.","example":"Authorization: Bearer YOUR_API_KEY","isRequired":true,"uniqueKey":"oneOf.1.authOptions.apiKey.header","typeLabel":"string"},"getKey":{"type":"string","description":"Where to create or manage API keys.","example":"https://venice.ai/settings/api","isRequired":true,"uniqueKey":"oneOf.1.authOptions.apiKey.getKey","typeLabel":"string"},"docs":{"type":"string","description":"API key documentation URL.","example":"https://docs.venice.ai/api-reference","isRequired":true,"uniqueKey":"oneOf.1.authOptions.apiKey.docs","typeLabel":"string"}},"required":["header","getKey","docs"],"additionalProperties":false,"isRequired":true,"uniqueKey":"oneOf.1.authOptions.apiKey","typeLabel":"object"},"x402Wallet":{"type":"object","properties":{"header":{"type":"string","description":"Header used for Sign-In-With-X wallet authentication.","example":"SIGN-IN-WITH-X","isRequired":true,"uniqueKey":"oneOf.1.authOptions.x402Wallet.header","typeLabel":"string"},"legacyHeader":{"type":"string","description":"Legacy Sign-In-With-X header accepted during migration.","example":"X-Sign-In-With-X","isRequired":true,"uniqueKey":"oneOf.1.authOptions.x402Wallet.legacyHeader","typeLabel":"string"},"topUp":{"type":"string","description":"Endpoint used to discover and submit x402 top-up payments.","example":"POST /api/v1/x402/top-up","isRequired":true,"uniqueKey":"oneOf.1.authOptions.x402Wallet.topUp","typeLabel":"string"},"docs":{"type":"string","description":"x402 top-up API documentation URL.","example":"https://docs.venice.ai/api-reference/endpoint/x402/top-up","isRequired":true,"uniqueKey":"oneOf.1.authOptions.x402Wallet.docs","typeLabel":"string"}},"required":["header","legacyHeader","topUp","docs"],"additionalProperties":false,"isRequired":true,"uniqueKey":"oneOf.1.authOptions.x402Wallet","typeLabel":"object"}},"required":["apiKey","x402Wallet"],"additionalProperties":false,"isRequired":true,"uniqueKey":"oneOf.1.authOptions","typeLabel":"object"},"error":{"type":"string","description":"Human-readable payment requirement message.","example":"Payment required","uniqueKey":"oneOf.1.error","typeLabel":"string"},"extensions":{"type":"object","properties":{},"description":"Protocol extensions. Inference 402 responses include `sign-in-with-x` with a SIWX challenge for wallet-credit authentication.","uniqueKey":"oneOf.1.extensions","typeLabel":"object"}},"additionalProperties":false,"uniqueKey":"oneOf.1","typeLabel":"object"},{"type":"object","required":["error","code","reason","suggestedTopUpUsd","minimumTopUpUsd","supportedTokens","supportedChains","topUpInstructions","siwxChallenge"],"properties":{"error":{"type":"string","enum":["Payment required"],"description":"Error message indicating payment is required.","isRequired":true,"uniqueKey":"oneOf.2.error","typeLabel":"enum\u003cstring>"},"code":{"type":"string","enum":["PAYMENT_REQUIRED"],"description":"Machine-readable error code.","isRequired":true,"uniqueKey":"oneOf.2.code","typeLabel":"enum\u003cstring>"},"reason":{"type":"string","enum":["insufficient_balance"],"description":"Reason the x402-authenticated request could not proceed.","isRequired":true,"uniqueKey":"oneOf.2.reason","typeLabel":"enum\u003cstring>"},"suggestedTopUpUsd":{"type":"number","description":"Suggested amount to top up in USD.","example":10,"isRequired":true,"uniqueKey":"oneOf.2.suggestedTopUpUsd","typeLabel":"number"},"minimumTopUpUsd":{"type":"number","description":"Minimum allowed top-up amount in USD.","example":5,"isRequired":true,"uniqueKey":"oneOf.2.minimumTopUpUsd","typeLabel":"number"},"supportedTokens":{"type":"array","items":{"type":"string","uniqueKey":"oneOf.2.supportedTokens.items.[INDEX]","typeLabel":"string"},"description":"List of supported token symbols for payment.","example":["USDC"],"isRequired":true,"uniqueKey":"oneOf.2.supportedTokens","typeLabel":"string[]"},"supportedChains":{"type":"array","items":{"type":"string","uniqueKey":"oneOf.2.supportedChains.items.[INDEX]","typeLabel":"string"},"description":"List of supported top-up rails.","example":["base","solana"],"isRequired":true,"uniqueKey":"oneOf.2.supportedChains","typeLabel":"string[]"},"topUpInstructions":{"type":"object","properties":{"step1":{"type":"string","description":"First step: get payment requirements.","example":"POST /api/v1/x402/top-up with no payment header to get payment requirements","isRequired":true,"uniqueKey":"oneOf.2.topUpInstructions.step1","typeLabel":"string"},"step2":{"type":"string","description":"Second step: sign the payment.","example":"Choose a payment option from accepts and sign a USDC transfer authorization using the x402 SDK (createPaymentHeader)","isRequired":true,"uniqueKey":"oneOf.2.topUpInstructions.step2","typeLabel":"string"},"step3":{"type":"string","description":"Third step: submit the payment.","example":"POST /api/v1/x402/top-up with the signed PAYMENT-SIGNATURE header","isRequired":true,"uniqueKey":"oneOf.2.topUpInstructions.step3","typeLabel":"string"},"receiverWallet":{"type":"string","description":"Legacy Base receiver wallet address. Prefer the selected accepts entry from /x402/top-up for network-specific payTo values.","example":"\u003cRECEIVER_WALLET_ADDRESS>","isRequired":true,"uniqueKey":"oneOf.2.topUpInstructions.receiverWallet","typeLabel":"string"},"tokenAddress":{"type":"string","description":"Legacy Base USDC token address. Prefer the selected accepts entry from /x402/top-up for network-specific assets.","example":"\u003cUSDC_TOKEN_ADDRESS>","isRequired":true,"uniqueKey":"oneOf.2.topUpInstructions.tokenAddress","typeLabel":"string"},"tokenDecimals":{"type":"number","description":"Token decimal places.","example":6,"isRequired":true,"uniqueKey":"oneOf.2.topUpInstructions.tokenDecimals","typeLabel":"number"},"network":{"type":"string","description":"Legacy Base target network. Prefer the selected accepts entry from /x402/top-up for network-specific values.","example":"eip155:8453","isRequired":true,"uniqueKey":"oneOf.2.topUpInstructions.network","typeLabel":"string"},"minimumAmountUsd":{"type":"number","description":"Minimum top-up amount in USD.","example":5,"isRequired":true,"uniqueKey":"oneOf.2.topUpInstructions.minimumAmountUsd","typeLabel":"number"}},"required":["step1","step2","step3","receiverWallet","tokenAddress","tokenDecimals","network","minimumAmountUsd"],"additionalProperties":false,"isRequired":true,"uniqueKey":"oneOf.2.topUpInstructions","typeLabel":"object"},"siwxChallenge":{"type":"object","properties":{"info":{"type":"object","properties":{"domain":{"type":"string","description":"Domain for the SIWX challenge.","example":"api.venice.ai","isRequired":true,"uniqueKey":"oneOf.2.siwxChallenge.info.domain","typeLabel":"string"},"uri":{"type":"string","description":"Resource URI for the challenge.","example":"https://api.venice.ai/api/v1/chat/completions","isRequired":true,"uniqueKey":"oneOf.2.siwxChallenge.info.uri","typeLabel":"string"},"version":{"type":"string","description":"SIWX version.","example":"1","isRequired":true,"uniqueKey":"oneOf.2.siwxChallenge.info.version","typeLabel":"string"},"nonce":{"type":"string","description":"Server-generated nonce for replay protection: 32 hex characters.","example":"a1b2c3d4e5f67890a1b2c3d4e5f67890","isRequired":true,"uniqueKey":"oneOf.2.siwxChallenge.info.nonce","typeLabel":"string"},"issuedAt":{"type":"string","description":"ISO timestamp when the challenge was issued.","example":"2026-04-09T12:00:00.000Z","isRequired":true,"uniqueKey":"oneOf.2.siwxChallenge.info.issuedAt","typeLabel":"string"},"expirationTime":{"type":"string","description":"ISO timestamp when the challenge expires.","example":"2026-04-09T12:05:00.000Z","isRequired":true,"uniqueKey":"oneOf.2.siwxChallenge.info.expirationTime","typeLabel":"string"},"statement":{"type":"string","description":"Human-readable statement for the signature.","example":"Sign in to Venice AI","isRequired":true,"uniqueKey":"oneOf.2.siwxChallenge.info.statement","typeLabel":"string"}},"required":["domain","uri","version","nonce","issuedAt","expirationTime","statement"],"additionalProperties":false,"isRequired":true,"uniqueKey":"oneOf.2.siwxChallenge.info","typeLabel":"object"},"supportedChains":{"type":"array","items":{"type":"object","properties":{"chainId":{"type":"string","description":"Supported chain identity.","example":"solana:5eykt4UsFv8P8NJdTREpY1vzqKqZKvdp","isRequired":true,"uniqueKey":"oneOf.2.siwxChallenge.supportedChains.items.[INDEX].chainId","typeLabel":"string"},"type":{"type":"string","enum":["eip191","ed25519"],"description":"Signature algorithm: `eip191` for EVM wallets (EOAs and smart contract wallets), `ed25519` for Solana.","example":"ed25519","isRequired":true,"uniqueKey":"oneOf.2.siwxChallenge.supportedChains.items.[INDEX].type","typeLabel":"enum\u003cstring>"}},"required":["chainId","type"],"additionalProperties":false,"uniqueKey":"oneOf.2.siwxChallenge.supportedChains.items.[INDEX]","typeLabel":"object"},"description":"Supported SIWX chains and signature types.","isRequired":true,"uniqueKey":"oneOf.2.siwxChallenge.supportedChains","typeLabel":"object[]"},"schema":{"type":"object","properties":{},"description":"JSON Schema of the proof the client sends in the `SIGN-IN-WITH-X` header.","isRequired":true,"uniqueKey":"oneOf.2.siwxChallenge.schema","typeLabel":"object"}},"required":["info","supportedChains","schema"],"additionalProperties":false,"isRequired":true,"uniqueKey":"oneOf.2.siwxChallenge","typeLabel":"object"},"message":{"type":"string","description":"Human-readable context about the payment requirement.","example":"Insufficient x402 balance","uniqueKey":"oneOf.2.message","typeLabel":"string"},"currentBalanceUsd":{"type":"number","description":"Current x402 credit balance for the wallet.","example":0.01,"uniqueKey":"oneOf.2.currentBalanceUsd","typeLabel":"number"},"minimumBalanceUsd":{"type":"number","description":"Minimum x402 credit balance required before the request can run.","example":0.1,"uniqueKey":"oneOf.2.minimumBalanceUsd","typeLabel":"number"},"description":{"type":"string","description":"Protected resource description.","example":"Venice API","uniqueKey":"oneOf.2.description","typeLabel":"string"}},"additionalProperties":false,"uniqueKey":"oneOf.2","typeLabel":"object"}],"uniqueKey":"","typeLabel":"object"},"examples":{"Example":{"title":"Example","value":{"error":"\u003cstring>"}}},"exampleType":"generated"}},"exampleType":"generated"},"aa83afdb-6c47-443c-9d62-be51f29f9021":{"content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string","enum":["This API key is restricted to configured IP addresses, and this request's source IP is not allowed"],"description":"A description of the error","example":"This API key is restricted to configured IP addresses, and this request's source IP is not allowed","isRequired":true,"uniqueKey":"error","typeLabel":"enum\u003cstring>"}},"required":["error"],"uniqueKey":"","typeLabel":"object"},"examples":{"Example":{"title":"Example","value":{"error":"This API key is restricted to configured IP addresses, and this request's source IP is not allowed"}}},"exampleType":"generated"}},"description":"This API key is restricted to configured IP addresses, and this request's source IP is not allowed","exampleType":"generated"},"7fb0c0ea-6bf8-4f7c-aab0-3e47deb3a3c8":{"description":"Invalid request content-type","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string","description":"A description of the error","isRequired":true,"uniqueKey":"error","typeLabel":"string"}},"required":["error"],"uniqueKey":"","typeLabel":"object"},"examples":{"Example":{"title":"Example","value":{"error":"\u003cstring>"}}},"exampleType":"generated"}},"exampleType":"generated"},"f20dc8a7-4f4d-43f9-9fb3-ea940d5eaffb":{"description":"The prompt violates the content policy of Venice.ai or the model provider, or a style reference image exceeds the pixel limit.","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string","description":"A description of the error","isRequired":true,"uniqueKey":"error","typeLabel":"string"},"suggested_prompt":{"type":"string","description":"An optional provider-suggested replacement prompt that complies with content policy.","example":"A watercolor painting of a lighthouse on a rocky coast at sunset.","uniqueKey":"suggested_prompt","typeLabel":"string"},"recommended_model":{"type":"string","description":"A model ID that can be used as an alternative when a recommendation is available.","example":"chroma","uniqueKey":"recommended_model","typeLabel":"string"},"retryable":{"type":"boolean","description":"Present on every content-policy rejection: whether retrying the same request may succeed. True when the selected model's provider moderation is nondeterministic; false when the same request would be rejected again. Absent on other 422 errors, such as an input image that exceeds the pixel limit.","example":true,"uniqueKey":"retryable","typeLabel":"boolean"}},"required":["error"],"uniqueKey":"","typeLabel":"object"},"examples":{"Example":{"title":"Example","value":{"error":"\u003cstring>","suggested_prompt":"A watercolor painting of a lighthouse on a rocky coast at sunset.","recommended_model":"chroma","retryable":true}}},"exampleType":"generated"}},"exampleType":"generated"},"84f7002c-dca5-4b0e-9068-c3b9914bb270":{"description":"Rate limit exceeded","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string","description":"A description of the error","isRequired":true,"uniqueKey":"error","typeLabel":"string"}},"required":["error"],"uniqueKey":"","typeLabel":"object"},"examples":{"Example":{"title":"Example","value":{"error":"\u003cstring>"}}},"exampleType":"generated"}},"exampleType":"generated"},"6b0ac48d-aa22-420a-bf6f-06d863702d5d":{"description":"Inference processing failed","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string","description":"A description of the error","isRequired":true,"uniqueKey":"error","typeLabel":"string"}},"required":["error"],"uniqueKey":"","typeLabel":"object"},"examples":{"Example":{"title":"Example","value":{"error":"\u003cstring>"}}},"exampleType":"generated"}},"exampleType":"generated"},"424d2c3f-58f9-4fcb-937d-2cb689812561":{"description":"The model is at capacity. Please try again later.","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string","description":"A description of the error","isRequired":true,"uniqueKey":"error","typeLabel":"string"}},"required":["error"],"uniqueKey":"","typeLabel":"object"},"examples":{"Example":{"title":"Example","value":{"error":"\u003cstring>"}}},"exampleType":"generated"}},"exampleType":"generated"}},"security":{"207f944c-d595-47ea-93b3-0d5cd7e88b33":{"BearerAuth":{"bearerFormat":"JWT","scheme":"bearer","type":"http","scopes":[],"schemeName":"BearerAuth"}},"011311f7-2625-40d2-8c18-d8b1e542d47a":{"siwx":{"description":"Wallet-based authentication using the x402 sign-in-with-x extension. Supports EVM wallets on Base (EIP-4361 SIWE, including EIP-1271 smart contract wallets) and Ed25519 wallets on Solana mainnet.\n\n**Header format:** Base64-encoded JSON proof with these fields:\n- `domain` — `api.venice.ai`\n- `address` — EVM or Solana wallet address\n- `uri` — URL of the requested resource\n- `version` — `\"1\"`\n- `chainId` — `\"eip155:8453\"` for Base or `\"solana:5eykt4UsFv8P8NJdTREpY1vzqKqZKvdp\"` for Solana\n- `type` — `\"eip191\"` for EVM wallets or `\"ed25519\"` for Solana\n- `nonce` — the `nonce` from the latest 402 challenge (`extensions[\"sign-in-with-x\"].info.nonce`), or 32 random hex characters. Each nonce works once.\n- `issuedAt` — ISO 8601 time the proof was signed. Proofs older than 5 minutes are rejected.\n- `expirationTime`, `notBefore`, `statement`, `resources` — optional\n- `signature` — signature over the message built from these fields: an EIP-4361 SIWE message for EVM (hex) or the Solana sign-in message (base58)\n\nVenice rebuilds the signed message from these fields, with the bare reference on its `Chain ID` line (`8453`, `5eykt4UsFv8P8NJdTREpY1vzqKqZKvdp`). Proofs from older clients that send the signed `message` itself are still accepted.\n\n**Example (TypeScript, viem):**\n```\nimport { privateKeyToAccount } from 'viem/accounts'\nimport { createSiweMessage } from 'viem/siwe'\n\nconst account = privateKeyToAccount(PRIVATE_KEY)\nconst fields = { domain: 'api.venice.ai', address: account.address, uri: 'https://api.venice.ai/api/v1/chat/completions', version: '1' as const, nonce: crypto.randomUUID().replace(/-/g, ''), issuedAt: new Date().toISOString(), statement: 'Sign in to Venice AI' }\nconst message = createSiweMessage({ ...fields, chainId: 8453, issuedAt: new Date(fields.issuedAt) })\nconst signature = await account.signMessage({ message })\nconst header = btoa(JSON.stringify({ ...fields, chainId: 'eip155:8453', type: 'eip191', signature }))\n// Set header: SIGN-IN-WITH-X: \u003cheader>\n```\n\n**SDK:** `npm install venice-x402-client` provides `VeniceClient` and `createAuthFetch` which handle this automatically.\n\n**Billing:** x402 users pay from a prepaid x402 credit balance. Top up via `POST /x402/top-up`. When balance is insufficient, endpoints return `402` with structured top-up instructions.","in":"header","name":"SIGN-IN-WITH-X","type":"apiKey","scopes":[],"schemeName":"siwx"}}},"servers":{"44595c5a-cd65-4d68-a07b-049fe9e37006":{"url":"https://api.venice.ai/api/v1"}},"processedSecurityOptions":[{"schemes":[{"scheme":{"bearerFormat":"JWT","scheme":"bearer","type":"http","scopes":[],"schemeName":"BearerAuth"},"schema":{"title":"Bearer Auth","type":"string","isRequired":true,"description":"Bearer authentication header of the form `Bearer \u003ctoken>`, where `\u003ctoken>` is your auth token.","format":"bearer","typeLabel":"string\u003cbearer>","deprecated":false},"schemeName":"BearerAuth","name":"Authorization"}],"title":"BearerAuth"},{"schemes":[{"scheme":{"description":"Wallet-based authentication using the x402 sign-in-with-x extension. Supports EVM wallets on Base (EIP-4361 SIWE, including EIP-1271 smart contract wallets) and Ed25519 wallets on Solana mainnet.\n\n**Header format:** Base64-encoded JSON proof with these fields:\n- `domain` — `api.venice.ai`\n- `address` — EVM or Solana wallet address\n- `uri` — URL of the requested resource\n- `version` — `\"1\"`\n- `chainId` — `\"eip155:8453\"` for Base or `\"solana:5eykt4UsFv8P8NJdTREpY1vzqKqZKvdp\"` for Solana\n- `type` — `\"eip191\"` for EVM wallets or `\"ed25519\"` for Solana\n- `nonce` — the `nonce` from the latest 402 challenge (`extensions[\"sign-in-with-x\"].info.nonce`), or 32 random hex characters. Each nonce works once.\n- `issuedAt` — ISO 8601 time the proof was signed. Proofs older than 5 minutes are rejected.\n- `expirationTime`, `notBefore`, `statement`, `resources` — optional\n- `signature` — signature over the message built from these fields: an EIP-4361 SIWE message for EVM (hex) or the Solana sign-in message (base58)\n\nVenice rebuilds the signed message from these fields, with the bare reference on its `Chain ID` line (`8453`, `5eykt4UsFv8P8NJdTREpY1vzqKqZKvdp`). Proofs from older clients that send the signed `message` itself are still accepted.\n\n**Example (TypeScript, viem):**\n```\nimport { privateKeyToAccount } from 'viem/accounts'\nimport { createSiweMessage } from 'viem/siwe'\n\nconst account = privateKeyToAccount(PRIVATE_KEY)\nconst fields = { domain: 'api.venice.ai', address: account.address, uri: 'https://api.venice.ai/api/v1/chat/completions', version: '1' as const, nonce: crypto.randomUUID().replace(/-/g, ''), issuedAt: new Date().toISOString(), statement: 'Sign in to Venice AI' }\nconst message = createSiweMessage({ ...fields, chainId: 8453, issuedAt: new Date(fields.issuedAt) })\nconst signature = await account.signMessage({ message })\nconst header = btoa(JSON.stringify({ ...fields, chainId: 'eip155:8453', type: 'eip191', signature }))\n// Set header: SIGN-IN-WITH-X: \u003cheader>\n```\n\n**SDK:** `npm install venice-x402-client` provides `VeniceClient` and `createAuthFetch` which handle this automatically.\n\n**Billing:** x402 users pay from a prepaid x402 credit balance. Top up via `POST /x402/top-up`. When balance is insufficient, endpoints return `402` with structured top-up instructions.","in":"header","name":"SIGN-IN-WITH-X","type":"apiKey","scopes":[],"schemeName":"siwx"},"schema":{"title":"SIGN-IN-WITH-X","type":"string","description":"Wallet-based authentication using the x402 sign-in-with-x extension. Supports EVM wallets on Base (EIP-4361 SIWE, including EIP-1271 smart contract wallets) and Ed25519 wallets on Solana mainnet.\n\n**Header format:** Base64-encoded JSON proof with these fields:\n- `domain` — `api.venice.ai`\n- `address` — EVM or Solana wallet address\n- `uri` — URL of the requested resource\n- `version` — `\"1\"`\n- `chainId` — `\"eip155:8453\"` for Base or `\"solana:5eykt4UsFv8P8NJdTREpY1vzqKqZKvdp\"` for Solana\n- `type` — `\"eip191\"` for EVM wallets or `\"ed25519\"` for Solana\n- `nonce` — the `nonce` from the latest 402 challenge (`extensions[\"sign-in-with-x\"].info.nonce`), or 32 random hex characters. Each nonce works once.\n- `issuedAt` — ISO 8601 time the proof was signed. Proofs older than 5 minutes are rejected.\n- `expirationTime`, `notBefore`, `statement`, `resources` — optional\n- `signature` — signature over the message built from these fields: an EIP-4361 SIWE message for EVM (hex) or the Solana sign-in message (base58)\n\nVenice rebuilds the signed message from these fields, with the bare reference on its `Chain ID` line (`8453`, `5eykt4UsFv8P8NJdTREpY1vzqKqZKvdp`). Proofs from older clients that send the signed `message` itself are still accepted.\n\n**Example (TypeScript, viem):**\n```\nimport { privateKeyToAccount } from 'viem/accounts'\nimport { createSiweMessage } from 'viem/siwe'\n\nconst account = privateKeyToAccount(PRIVATE_KEY)\nconst fields = { domain: 'api.venice.ai', address: account.address, uri: 'https://api.venice.ai/api/v1/chat/completions', version: '1' as const, nonce: crypto.randomUUID().replace(/-/g, ''), issuedAt: new Date().toISOString(), statement: 'Sign in to Venice AI' }\nconst message = createSiweMessage({ ...fields, chainId: 8453, issuedAt: new Date(fields.issuedAt) })\nconst signature = await account.signMessage({ message })\nconst header = btoa(JSON.stringify({ ...fields, chainId: 'eip155:8453', type: 'eip191', signature }))\n// Set header: SIGN-IN-WITH-X: \u003cheader>\n```\n\n**SDK:** `npm install venice-x402-client` provides `VeniceClient` and `createAuthFetch` which handle this automatically.\n\n**Billing:** x402 users pay from a prepaid x402 credit balance. Top up via `POST /x402/top-up`. When balance is insufficient, endpoints return `402` with structured top-up instructions.","isRequired":true,"typeLabel":"string","deprecated":false},"schemeName":"siwx","name":"SIGN-IN-WITH-X"}],"title":"siwx"}]},"originalFileLocation":"swagger.yaml"},"subdomain":"veniceai","siteName":"Venice API Docs","title":"Image Generate | Venice API Docs","navMaps":{"firstHrefInVersion":{},"firstHrefInLanguage":{"en":{"href":"/api-reference/endpoint/image/generate","matchLevel":1},"pt-BR":{"href":"/pt-BR/api-reference/endpoint/image/generate","matchLevel":1},"ar":{"href":"/ar/api-reference/endpoint/image/generate","matchLevel":1},"it":{"href":"/it/api-reference/endpoint/image/generate","matchLevel":1},"de":{"href":"/de/api-reference/endpoint/image/generate","matchLevel":1},"es":{"href":"/es/api-reference/endpoint/image/generate","matchLevel":1},"fr":{"href":"/fr/api-reference/endpoint/image/generate","matchLevel":1},"zh":{"href":"/zh/api-reference/endpoint/image/generate","matchLevel":0},"ko":{"href":"/ko/api-reference/endpoint/image/generate","matchLevel":1}}},"lastModified":"2026-11-13T19:30:56.603Z","originalFileLocation":"zh/api-reference/endpoint/image/generate.mdx","locale":"zh"},"headHtml":"\u003cscript data-mint-head>(function(){var d=document.documentElement,p=null;if(!p){try{p=localStorage.getItem(\"isDarkMode\")}catch(e){}if(p==='true')p='dark';else if(p==='false')p='light';if(p!=='light'\u0026\u0026p!=='dark'\u0026\u0026p!=='system')p=\"dark\"}var r=p==='system'?(matchMedia(\"(prefers-color-scheme: dark)\").matches?'dark':'light'):p;d.classList.remove(r==='dark'?'light':'dark');d.classList.add(r);d.setAttribute(\"data-theme-preference\",p)})();\u003c/script>\u003cmeta data-mint-head name=\"description\" content=\"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. A 401 response with code X402_USER_NOT_ALLOWED means the wallet\u0026#x27;s Venice account is banned or deleted, or the wallet\u0026#x27;s x402 credit account belongs to a different user.\">\u003cmeta data-mint-head name=\"application-name\" content=\"Venice API Docs\">\u003cmeta data-mint-head name=\"generator\" content=\"Mintlify\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"192x192\" href=\"/mintlify-assets/_mintlify/favicons/veniceai/bx2bxRtmLEf0wvnq/_generated/favicon/android-chrome-192x192.png\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"apple-touch-icon\" type=\"image/png\" sizes=\"180x180\" href=\"/mintlify-assets/_mintlify/favicons/veniceai/bx2bxRtmLEf0wvnq/_generated/favicon/apple-touch-icon.png\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"16x16\" href=\"/mintlify-assets/_mintlify/favicons/veniceai/bx2bxRtmLEf0wvnq/_generated/favicon/favicon-16x16.png\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"32x32\" href=\"/mintlify-assets/_mintlify/favicons/veniceai/bx2bxRtmLEf0wvnq/_generated/favicon/favicon-32x32.png\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"shortcut icon\" type=\"image/x-icon\" href=\"/mintlify-assets/_mintlify/favicons/veniceai/bx2bxRtmLEf0wvnq/_generated/favicon/favicon.ico\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"192x192\" href=\"/mintlify-assets/_mintlify/favicons/veniceai/bx2bxRtmLEf0wvnq/_generated/favicon-dark/android-chrome-192x192.png\" media=\"(prefers-color-scheme: dark)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"16x16\" href=\"/mintlify-assets/_mintlify/favicons/veniceai/bx2bxRtmLEf0wvnq/_generated/favicon-dark/favicon-16x16.png\" media=\"(prefers-color-scheme: dark)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"32x32\" href=\"/mintlify-assets/_mintlify/favicons/veniceai/bx2bxRtmLEf0wvnq/_generated/favicon-dark/favicon-32x32.png\" media=\"(prefers-color-scheme: dark)\">\u003clink data-mint-head rel=\"shortcut icon\" type=\"image/x-icon\" href=\"/mintlify-assets/_mintlify/favicons/veniceai/bx2bxRtmLEf0wvnq/_generated/favicon-dark/favicon.ico\" media=\"(prefers-color-scheme: dark)\">\u003cmeta data-mint-head property=\"og:title\" content=\"Image Generate | Venice API Docs\">\u003cmeta data-mint-head property=\"og:description\" content=\"Documentation covering Venice\u0026#x27;s image generation API.\">\u003cmeta data-mint-head property=\"og:site_name\" content=\"Venice API Docs\">\u003cmeta data-mint-head property=\"og:url\" content=\"https://docs.venice.ai/zh/api-reference/endpoint/image/generate\">\u003cmeta data-mint-head property=\"og:type\" content=\"website\">\u003cmeta data-mint-head property=\"og:image\" content=\"https://veniceai.mintlify.site/_mintlify/api/og/v2?division=%E5%9B%BE%E5%83%8F\u0026amp;title=%E7%94%9F%E6%88%90%E5%9B%BE%E5%83%8F\u0026amp;description=Generate+an+image+based+on+input+parameters%0A%0A**Authentication%3A**+This+endpoint+accepts+either+a+Bearer+API+key+or+a+%60SIGN-IN-WITH-X%60+header+for+x402+wallet-base\u0026amp;theme=e3e98313d1ad7eff1b456df0\u0026amp;signature=3eaaefa904594ce3d317276c5125e1b5d2a353da2fab9375ff9c3afd502ec13a\">\u003cmeta data-mint-head property=\"og:image:width\" content=\"1200\">\u003cmeta data-mint-head property=\"og:image:height\" content=\"630\">\u003cmeta data-mint-head name=\"twitter:card\" content=\"summary_large_image\">\u003cmeta data-mint-head name=\"twitter:title\" content=\"Image Generate | Venice API Docs\">\u003cmeta data-mint-head name=\"twitter:description\" content=\"Documentation covering Venice\u0026#x27;s image generation API.\">\u003cmeta data-mint-head name=\"twitter:image\" content=\"https://veniceai.mintlify.site/_mintlify/api/og/v2?division=%E5%9B%BE%E5%83%8F\u0026amp;title=%E7%94%9F%E6%88%90%E5%9B%BE%E5%83%8F\u0026amp;description=Generate+an+image+based+on+input+parameters%0A%0A**Authentication%3A**+This+endpoint+accepts+either+a+Bearer+API+key+or+a+%60SIGN-IN-WITH-X%60+header+for+x402+wallet-base\u0026amp;theme=e3e98313d1ad7eff1b456df0\u0026amp;signature=3eaaefa904594ce3d317276c5125e1b5d2a353da2fab9375ff9c3afd502ec13a\">\u003cmeta data-mint-head name=\"twitter:image:width\" content=\"1200\">\u003cmeta data-mint-head name=\"twitter:image:height\" content=\"630\">\u003cmeta data-mint-head name=\"msapplication-config\" content=\"/mintlify-assets/_mintlify/favicons/veniceai/bx2bxRtmLEf0wvnq/_generated/favicon/browserconfig.xml\">\u003cmeta data-mint-head name=\"apple-mobile-web-app-title\" content=\"Venice API Docs\">\u003cmeta data-mint-head name=\"msapplication-TileColor\" content=\"#125DA3\">\u003cmeta data-mint-head name=\"og:locale\" content=\"en_US\">\u003cmeta data-mint-head name=\"og:logo\" content=\"/logo/light.svg\">\u003cmeta data-mint-head name=\"article:publisher\" content=\"Venice AI\">\u003clink data-mint-head rel=\"canonical\" href=\"https://docs.venice.ai/zh/api-reference/endpoint/image/generate\">\u003clink data-mint-head rel=\"alternate\" type=\"application/xml\" href=\"/sitemap.xml\">\u003clink data-mint-head rel=\"alternate\" type=\"text/markdown\" href=\"/zh/api-reference/endpoint/image/generate.md\">\u003clink data-mint-head rel=\"alternate\" hreflang=\"zh\" href=\"https://docs.venice.ai/zh/api-reference/endpoint/image/generate\">\u003clink data-mint-head rel=\"alternate\" hreflang=\"en\" href=\"https://docs.venice.ai/api-reference/endpoint/image/generate\">\u003clink data-mint-head rel=\"alternate\" hreflang=\"pt-BR\" href=\"https://docs.venice.ai/pt-BR/api-reference/endpoint/image/generate\">\u003clink data-mint-head rel=\"alternate\" hreflang=\"ar\" href=\"https://docs.venice.ai/ar/api-reference/endpoint/image/generate\">\u003clink data-mint-head rel=\"alternate\" hreflang=\"it\" href=\"https://docs.venice.ai/it/api-reference/endpoint/image/generate\">\u003clink data-mint-head rel=\"alternate\" hreflang=\"de\" href=\"https://docs.venice.ai/de/api-reference/endpoint/image/generate\">\u003clink data-mint-head rel=\"alternate\" hreflang=\"es\" href=\"https://docs.venice.ai/es/api-reference/endpoint/image/generate\">\u003clink data-mint-head rel=\"alternate\" hreflang=\"fr\" href=\"https://docs.venice.ai/fr/api-reference/endpoint/image/generate\">\u003clink data-mint-head rel=\"alternate\" hreflang=\"ko\" href=\"https://docs.venice.ai/ko/api-reference/endpoint/image/generate\">\u003clink data-mint-head rel=\"alternate\" hreflang=\"x-default\" href=\"https://docs.venice.ai/api-reference/endpoint/image/generate\">\u003cscript data-mint-head type=\"application/ld+json\">{\"@context\":\"https://schema.org\",\"@graph\":[{\"@type\":\"Organization\",\"@id\":\"https://docs.venice.ai/#organization\",\"name\":\"Venice API Docs\",\"url\":\"https://docs.venice.ai\",\"logo\":{\"@type\":\"ImageObject\",\"url\":\"https://mintcdn.com/veniceai/gFXvp87w4B810n0Y/logo/light.svg?fit=max\u0026auto=format\u0026n=gFXvp87w4B810n0Y\u0026q=85\u0026s=121558c3bff1e4e012fcd34bdc50555c\"}},{\"@type\":\"WebSite\",\"@id\":\"https://docs.venice.ai#website\",\"name\":\"Venice API Docs\",\"url\":\"https://docs.venice.ai\",\"publisher\":{\"@id\":\"https://docs.venice.ai/#organization\"}},{\"@type\":\"WebPage\",\"@id\":\"https://docs.venice.ai/zh/api-reference/endpoint/image/generate#webpage\",\"url\":\"https://docs.venice.ai/zh/api-reference/endpoint/image/generate\",\"name\":\"生成图像\",\"description\":\"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. A 401 response with code X402_USER_NOT_ALLOWED means the wallet's Venice account is banned or deleted, or the wallet's x402 credit account belongs to a different user.\",\"dateModified\":\"2026-11-13T19:30:56.603Z\",\"isPartOf\":{\"@id\":\"https://docs.venice.ai#website\"},\"breadcrumb\":{\"@id\":\"https://docs.venice.ai/zh/api-reference/endpoint/image/generate#breadcrumb\"}},{\"@type\":\"BreadcrumbList\",\"@id\":\"https://docs.venice.ai/zh/api-reference/endpoint/image/generate#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Venice APIs\",\"item\":\"https://docs.venice.ai/zh/api-reference/api-spec\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"生成图像\",\"item\":\"https://docs.venice.ai/zh/api-reference/endpoint/image/generate\"}]},{\"@type\":[\"TechArticle\",\"APIReference\"],\"@id\":\"https://docs.venice.ai/zh/api-reference/endpoint/image/generate#apireference\",\"headline\":\"生成图像\",\"name\":\"生成图像\",\"description\":\"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. A 401 response with code X402_USER_NOT_ALLOWED means the wallet's Venice account is banned or deleted, or the wallet's x402 credit account belongs to a different user.\",\"url\":\"https://docs.venice.ai/zh/api-reference/endpoint/image/generate\",\"mainEntityOfPage\":{\"@id\":\"https://docs.venice.ai/zh/api-reference/endpoint/image/generate#webpage\"},\"dateModified\":\"2026-11-13T19:30:56.603Z\",\"publisher\":{\"@id\":\"https://docs.venice.ai/#organization\"},\"isPartOf\":{\"@id\":\"https://docs.venice.ai#website\"}}]}\u003c/script>\u003cscript data-mint-head type=\"application/ld+json\">{\"@context\":\"https://schema.org\",\"@type\":\"WebSite\",\"name\":\"Venice API Docs\",\"publisher\":{\"@type\":\"Organization\",\"name\":\"Venice API Docs\"},\"provider\":{\"@type\":\"Organization\",\"name\":\"Mintlify\",\"url\":\"https://mintlify.com\"}}\u003c/script>","agentPointerHref":"/zh/api-reference/endpoint/image/generate.md","siteName":"Venice API Docs","nav":{"global":null,"languages":[{"language":"en","default":true,"pages":[{"title":"en","href":"/api-reference/endpoint/image/generate"}]},{"language":"pt-BR","pages":[{"title":"pt-BR","href":"/pt-BR/api-reference/endpoint/image/generate"}]},{"language":"ar","pages":[{"title":"ar","href":"/ar/api-reference/endpoint/image/generate"}]},{"language":"it","pages":[{"title":"it","href":"/it/api-reference/endpoint/image/generate"}]},{"language":"de","pages":[{"title":"de","href":"/de/api-reference/endpoint/image/generate"}]},{"language":"es","pages":[{"title":"es","href":"/es/api-reference/endpoint/image/generate"}]},{"language":"fr","pages":[{"title":"fr","href":"/fr/api-reference/endpoint/image/generate"}]},{"language":"zh","tabs":[{"tab":"文档","icon":"book","pages":[{"title":"文档","href":"/zh/overview/about-venice"}]},{"tab":"模型","icon":"box","pages":[{"title":"模型","href":"/zh/models/overview"}]},{"tab":"学习","icon":"layout-grid","pages":[{"title":"学习","href":"/zh/learn"}]},{"tab":"API 参考","icon":"code","groups":[{"group":"Venice APIs","pages":[{"title":"简介","href":"/zh/api-reference/api-spec"},{"title":"速率限制","href":"/zh/api-reference/rate-limiting"},{"title":"错误码","href":"/zh/api-reference/error-codes"},{"group":"聊天","expanded":false,"pages":[{"title":"Chat Completions","openapi":"POST /chat/completions","href":"/zh/api-reference/endpoint/chat/completions"},{"title":"Responses","openapi":"POST /responses","href":"/zh/api-reference/endpoint/responses/create"},{"title":"模型特性后缀","href":"/zh/api-reference/endpoint/chat/model_feature_suffix"},{"title":"创建决策","openapi":"POST /decisions","href":"/zh/api-reference/endpoint/decisions/create"},{"title":"System One 兼容性","openapi":"POST /systemone","description":"**Beta**: Alias of `POST /decisions` mirroring the upstream TypeSafe path, so TypeSafe SDKs work with a base URL swap (`TYPESAFE_BASE_URL=https://api.venice.ai/api`).","href":"/zh/api-reference/endpoint/decisions/systemone"}]},{"group":"图像","expanded":false,"pages":[{"title":"生成图像","openapi":"POST /image/generate","href":"/zh/api-reference/endpoint/image/generate"},{"title":"放大和增强","openapi":"POST /image/upscale","description":"Upscale an image to a higher resolution. The image can be provided either as a multipart form-data file upload or as a base64-encoded string in a JSON request.\n\n**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. A `401` response with code `X402_USER_NOT_ALLOWED` means the wallet's Venice account is banned or deleted, or the wallet's x402 credit account belongs to a different user.","href":"/zh/api-reference/endpoint/image/upscale"},{"title":"编辑(即 Inpaint)","openapi":"POST /image/edit","href":"/zh/api-reference/endpoint/image/edit"},{"title":"多图像编辑","openapi":"POST /image/multi-edit","href":"/zh/api-reference/endpoint/image/multi-edit"},{"title":"移除背景","openapi":"POST /image/background-remove","href":"/zh/api-reference/endpoint/image/background-remove"},{"title":"图像风格","openapi":"GET /image/styles","href":"/zh/api-reference/endpoint/image/styles"},{"title":"生成图像(OpenAI 兼容 API)","openapi":"POST /images/generations","href":"/zh/api-reference/endpoint/image/generations"}]},{"group":"音频","expanded":false,"pages":[{"title":"Speech API(Beta)","openapi":"POST /audio/speech","href":"/zh/api-reference/endpoint/audio/speech"},{"title":"克隆声音","openapi":"POST /audio/voices","href":"/zh/api-reference/endpoint/audio/voices"},{"title":"Transcriptions API(Beta)","openapi":"POST /audio/transcriptions","href":"/zh/api-reference/endpoint/audio/transcriptions"},{"title":"排队音频生成","openapi":"POST /audio/queue","href":"/zh/api-reference/endpoint/audio/queue"},{"title":"检索音频","openapi":"POST /audio/retrieve","href":"/zh/api-reference/endpoint/audio/retrieve"},{"title":"音频生成报价","openapi":"POST /audio/quote","href":"/zh/api-reference/endpoint/audio/quote"},{"title":"完成音频","openapi":"POST /audio/complete","href":"/zh/api-reference/endpoint/audio/complete"},{"title":"排队语音转换","openapi":"POST /audio/voice-changer/queue","href":"/zh/api-reference/endpoint/audio/voice-changer/queue"},{"title":"检索语音转换","openapi":"POST /audio/voice-changer/retrieve","href":"/zh/api-reference/endpoint/audio/voice-changer/retrieve"},{"title":"语音转换报价","openapi":"POST /audio/voice-changer/quote","href":"/zh/api-reference/endpoint/audio/voice-changer/quote"},{"title":"完成语音转换","openapi":"POST /audio/voice-changer/complete","href":"/zh/api-reference/endpoint/audio/voice-changer/complete"}]},{"group":"视频","expanded":false,"pages":[{"title":"排队视频生成","openapi":"POST /video/queue","href":"/zh/api-reference/endpoint/video/queue"},{"title":"检索视频","openapi":"POST /video/retrieve","href":"/zh/api-reference/endpoint/video/retrieve"},{"title":"视频生成报价","openapi":"POST /video/quote","href":"/zh/api-reference/endpoint/video/quote"},{"title":"完成视频","openapi":"POST /video/complete","href":"/zh/api-reference/endpoint/video/complete"}]},{"group":"工具","expanded":false,"pages":[{"title":"文本解析器","openapi":"POST /augment/text-parser","href":"/zh/api-reference/endpoint/augment/text-parser"},{"title":"Web 抓取","openapi":"POST /augment/scrape","href":"/zh/api-reference/endpoint/augment/scrape"},{"title":"Web 搜索","openapi":"POST /augment/search","href":"/zh/api-reference/endpoint/augment/search"},{"title":"Crypto 网络","openapi":"GET /crypto/rpc/networks","href":"/zh/api-reference/endpoint/crypto/networks"},{"title":"Crypto RPC","openapi":"POST /crypto/rpc/{network}","href":"/zh/api-reference/endpoint/crypto/rpc"}]},{"group":"嵌入","expanded":false,"pages":[{"title":"生成 Embeddings","openapi":"POST /embeddings","href":"/zh/api-reference/endpoint/embeddings/generate"}]},{"group":"模型","expanded":false,"pages":[{"title":"列出模型","openapi":"GET /models","href":"/zh/api-reference/endpoint/models/list"},{"title":"兼容性映射","openapi":"GET /models/compatibility_mapping","href":"/zh/api-reference/endpoint/models/compatibility_mapping"},{"title":"模型特征","openapi":"GET /models/traits","href":"/zh/api-reference/endpoint/models/traits"}]},{"group":"API 密钥","expanded":false,"pages":[{"title":"列出 API 密钥","openapi":"GET /api_keys","href":"/zh/api-reference/endpoint/api_keys/list"},{"title":"获取 API 密钥详情","openapi":"GET /api_keys/{id}","href":"/zh/api-reference/endpoint/api_keys/get"},{"title":"创建 API 密钥","openapi":"POST /api_keys","href":"/zh/api-reference/endpoint/api_keys/create"},{"title":"更新 API 密钥","openapi":"PATCH /api_keys","href":"/zh/api-reference/endpoint/api_keys/update"},{"title":"删除 API 密钥","openapi":"DELETE /api_keys","href":"/zh/api-reference/endpoint/api_keys/delete"},{"title":"通过 Web3 钱包生成 API 密钥","openapi":"GET /api_keys/generate_web3_key","href":"/zh/api-reference/endpoint/api_keys/generate_web3_key/get"},{"title":"通过 Web3 钱包生成 API 密钥","openapi":"POST /api_keys/generate_web3_key","href":"/zh/api-reference/endpoint/api_keys/generate_web3_key/post"}]},{"group":"API 密钥速率限制","expanded":false,"pages":[{"title":"速率限制与余额","openapi":"GET /api_keys/rate_limits","href":"/zh/api-reference/endpoint/api_keys/rate_limits"},{"title":"速率限制日志","openapi":"GET /api_keys/rate_limits/log","href":"/zh/api-reference/endpoint/api_keys/rate_limit_logs"}]},{"group":"角色","expanded":false,"pages":[{"title":"获取角色","openapi":"GET /characters/{slug}","href":"/zh/api-reference/endpoint/characters/get"},{"title":"列出角色","openapi":"GET /characters","href":"/zh/api-reference/endpoint/characters/list"},{"title":"列出角色评论","openapi":"GET /characters/{slug}/reviews","href":"/zh/api-reference/endpoint/characters/reviews"}]},{"group":"账单","expanded":false,"pages":[{"title":"账单余额","openapi":"GET /billing/balance","href":"/zh/api-reference/endpoint/billing/balance"},{"title":"账单使用量(已移除)","openapi":"GET /billing/usage","href":"/zh/api-reference/endpoint/billing/usage"},{"title":"账单用量分析(Beta)","openapi":"GET /billing/usage-analytics","href":"/zh/api-reference/endpoint/billing/usage-analytics"},{"title":"账单使用历史","openapi":"GET /billing/usage-history","href":"/zh/api-reference/endpoint/billing/usage-history"}]},{"group":"X402","expanded":true,"pages":[{"title":"x402 余额","openapi":"GET /x402/balance/{walletAddress}","href":"/zh/api-reference/endpoint/x402/balance"},{"title":"x402 充值","openapi":"POST /x402/top-up","href":"/zh/api-reference/endpoint/x402/top-up"},{"title":"x402 交易记录","openapi":"GET /x402/transactions/{walletAddress}","href":"/zh/api-reference/endpoint/x402/transactions"}]}]}]},{"tab":"更新日志","icon":"history","href":"/changelog"},{"tab":"状态","icon":"activity","href":"https://veniceai-status.com"}]},{"language":"ko","pages":[{"title":"ko","href":"/ko/api-reference/endpoint/image/generate"}]}]},"basePath":"","title":"Image Generate | Venice API Docs","deploymentId":"dpl_57NA6NKtrcUBhuxv6Tm2hAi21TK4","buildId":"dpl_57NA6NKtrcUBhuxv6Tm2hAi21TK4","dynamics":["c2aa737661","b0f84f53ff","a9bb46feb3","2b790eda92"],"chunks":["OpenApiReferenceProvider-CalkZbx8.js","snippetPresets-DtvvunBK.js","utils-Bn5byECU.js","style-to-object-BY3JEAdk.js","utils-DOTAoFcT.js","v4-DIgz8zy6.js","addUniqueKeysToSchema-CDauU9aU.js","conditional-requirements-CFM0id0Q.js","cloneDeep-k2aHAqp5.js","_Uint8Array-CQuRedKT.js","isObject-FP1Yky1u.js","Page-Dz3zehSO.js","api-description-markdown-DwoksVHI.js","DynamicMarkdown-XsrWkK-b.js","CodeSnippet-BBA8eWiP.js","SectionHeading-AR_EzDYe.js","ApiExamples-CSBS2nDe.js","usePlaygroundInputsStore-BkN7uKke.js","shallow-6IMgYiEa.js","isEqual-DicuCknl.js","CodeSnippets-C268fsRY.js","getApiPlaygroundDisplay-DMK5GRGS.js","MethodPill-CvOL8UTX.js","getPastedJson-BazkMjRw.js","Check2Icon-BL_xILK9.js","axios-CsQoIw0U.js","Markdown-CX8Sr5UZ.js","AssistantPageLink-B3VcLrB0.js","dist-WDJo6xkj.js","lib-DMeTj1gb.js","lib-B8HbPgcC.js","katex-Dbtb6Wk7.js","html-void-elements-mCSPHezU.js","marked.esm-CZWythHk.js"]}