Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
请求体
application/json
The request body for creating a new API key. API key creation is rate limited to 20 requests per minute and a maximum of 500 active API keys per user. VCU (Legacy Diem) is being deprecated in favor of tokenized Diem. Please update your API calls to use Diem instead.
Reset window the consumption limits apply to. EPOCH resets every UTC day (legacy default). MONTH resets on the 1st of each UTC calendar month. LIFETIME never resets, so the limit acts as a permanent cap on the key.
Which models this key may call, by privacy tier. ALL allows every model. PRIVATE_TEXT requires text and embedding models to be Private, TEE, or E2EE while other modalities may be Anonymous or Private. PRIVATE_ONLY requires every model to be Private, TEE, or E2EE; Anonymous models are rejected.
{
"error": "This API key is restricted to configured IP addresses, and this request's source IP is not allowed"
}
{
"error": "<string>"
}
{
"error": "<string>"
}
{"docsConfig":{"theme":"luma","$schema":"https://mintlify.com/docs.json","name":"Venice API Docs","colors":{"primary":"#125DA3","light":"#125DA3","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"}},"navbar":{"links":[],"primary":{"type":"button","label":"Try Venice","href":"https://venice.ai/chat?utm_source=venice-api-documentation"}},"footer":{"socials":{"x":"https://x.com/AskVenice","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":"@AskVenice"},"indexing":"navigable"},"icons":{"library":"tabler"},"styling":{"codeblocks":"system","latex":true},"integrations":{"gtm":{"tagId":"GTM-KFP6HX49"},"plausible":{"domain":"docs.venice.ai"}},"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":""},"chroma":{"liveDeploymentHistoryId":"6aeb5f1fb21018c2553e9b10","collectionId":"db812bb8-6444-4a3d-ab80-1fc926c74977","schemaVersion":"v3","latestBuiltDeploymentHistoryId":"6aeb5f1fb21018c2553e9b10"},"feedback":{"edits":true,"issues":true,"thumbs":true},"entitlements":{"AI_CHAT":{"status":"ENABLED"},"WEB_MCP":{"status":"ENABLED"},"NARRATION":{"status":"ENABLED"}},"buildId":"6aeb5f1fb21018c2553e9b10","clientVersion":"0.0.4054","searchFilterCounts":[{"language":"en","tag":"Docs","count":80},{"language":"ar","tag":"التوثيق","count":80},{"language":"de","tag":"Dokumentation","count":80},{"language":"es","tag":"Documentación","count":80},{"language":"fr","tag":"Documentation","count":80},{"language":"it","tag":"Documentazione","count":80},{"language":"ko","tag":"문서","count":80},{"language":"pt-BR","tag":"Documentação","count":80},{"language":"zh","tag":"文档","count":80},{"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":"Audio","count":18},{"language":"en","tag":"Learn","count":18},{"language":"ar","tag":"الصوت","count":18},{"language":"ar","tag":"تعلّم","count":18},{"language":"de","tag":"Audio","count":18},{"language":"de","tag":"Lernen","count":18},{"language":"es","tag":"Audio","count":18},{"language":"es","tag":"Aprender","count":18},{"language":"fr","tag":"Audio","count":18},{"language":"fr","tag":"Apprendre","count":18},{"language":"it","tag":"Audio","count":18},{"language":"it","tag":"Impara","count":18},{"language":"ko","tag":"오디오","count":18},{"language":"ko","tag":"학습","count":18},{"language":"pt-BR","tag":"Áudio","count":18},{"language":"pt-BR","tag":"Aprender","count":18},{"language":"zh","tag":"音频","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":"Models","count":11},{"language":"en","tag":"Text \u0026 Chat","count":11},{"language":"ar","tag":"النماذج","count":11},{"language":"ar","tag":"النص والدردشة","count":11},{"language":"de","tag":"Modelle","count":11},{"language":"de","tag":"Text \u0026 Chat","count":11},{"language":"es","tag":"Modelos","count":11},{"language":"es","tag":"Texto y chat","count":11},{"language":"fr","tag":"Modèles","count":11},{"language":"fr","tag":"Texte et chat","count":11},{"language":"it","tag":"Modelli","count":11},{"language":"it","tag":"Testo e chat","count":11},{"language":"ko","tag":"모델","count":11},{"language":"ko","tag":"텍스트 및 채팅","count":11},{"language":"pt-BR","tag":"Modelos","count":11},{"language":"pt-BR","tag":"Texto e chat","count":11},{"language":"zh","tag":"模型","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":"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":"workos-onboarding","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"llms-txt-v2","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":"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":"assistant-v5","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":"vite-origin","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workos-sso-scim","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":"workos-signup","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":"workos-enabled","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":"sso-setup-deadline-banner","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false}],"googleFontsInlined":false},"customCss":[{"filePath":"style.css","href":"/_mintlify/custom/veniceai/7e50b8754e176672/style.css"}],"page":{"pagePath":"zh/api-reference/endpoint/api_keys/create","slug":"/zh/api-reference/endpoint/api_keys/create","pageMetadata":{"title":"创建 API 密钥","og:title":"Create API Key | Venice API Docs","openapi":"POST /api_keys","description":"Create a new API key.","href":"/zh/api-reference/endpoint/api_keys/create"},"description":{"compiledSource":"\"use strict\";\nconst {jsx: _jsx} = arguments[0];\nconst {useMDXComponents: _provideComponents} = arguments[0];\nfunction _createMdxContent(props) {\n const _components = {\n p: \"p\",\n ..._provideComponents(),\n ...props.components\n };\n return _jsx(_components.p, {\n children: \"Create a new API key.\"\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}=arguments[0];const{useMDXComponents:_provideComponents}=arguments[0];function _createMdxContent(props){return _jsx(_Fragment,{})}function MDXContent(props={}){const{wrapper:MDXLayout}={..._provideComponents(),...props.components};return MDXLayout?_jsx(MDXLayout,{...props,children:_jsx(_createMdxContent,{...props})}):_createMdxContent(props)}return{default:MDXContent}","frontmatter":{},"scope":{"codeStyling":"system","config":{},"pageMetadata":{"title":"创建 API 密钥","og:title":"Create API Key | Venice API Docs","openapi":"POST /api_keys","description":"Create a new API key.","href":"/zh/api-reference/endpoint/api_keys/create"}}},"mdxSourceWithNoJs":null},"mdxExtracts":{"tableOfContents":[],"codeExamples":{}},"jsLinks":["/_mintlify/custom/veniceai/e2ef95b7f404dd19/model-search.js"],"openApiReferenceData":{"operation":{"description":"Create a new API key.","operationId":"createApiKey","summary":"/api/v1/api_keys","tags":["API Keys"],"requestBody":"f0dac6a9-dec2-4c77-86b8-4625a4271622","responses":{"200":"d001325c-efe8-4454-81c2-2aa6fdd7b31e","400":"3226ce28-6fc9-4095-95dd-80bb39bf6a20","401":"e4063a1a-965d-4de4-a72c-e4bac5174629","403":"90a7421d-7522-41e0-b2e4-0b516747dcd5","429":"8a6f3ac7-079e-4492-afaa-c2e096a3491c","500":"0d36bfc0-1677-4f2c-a112-733eab504a43"},"method":"post","type":"path","servers":["5f1831bd-248c-480f-8517-5351929f450f"],"security":["c7c8f1c4-f842-466d-85a4-3d3e03a296d5"],"path":"/api_keys","baseUrlOptions":["https://api.venice.ai/api/v1"],"title":"/api/v1/api_keys","codeSamples":[],"requiredOnlyExamples":false,"requestExampleType":"generated","responseExampleType":"generated","disableProxy":true},"dependencies":{"parameters":{},"requestBody":{"content":{"application/json":{"schema":{"type":"object","properties":{"apiKeyType":{"type":"string","enum":["INFERENCE","ADMIN"],"description":"The API Key type. Admin keys have full access to the API while inference keys are only able to call inference endpoints.","example":"ADMIN","isRequired":true,"uniqueKey":"apiKeyType","typeLabel":"enum\u003cstring>"},"description":{"type":"string","maxLength":64,"description":"The API Key description (max 64 characters)","example":"Example API Key","isRequired":true,"uniqueKey":"description","typeLabel":"string"},"consumptionLimit":{"type":"object","properties":{"usd":{"oneOf":[{"type":"number","description":"USD limit","maximum":9999999999,"minimum":0,"example":50,"uniqueKey":"consumptionLimit.usd.oneOf.0","typeLabel":"number"},{"title":"null","description":"USD limit","example":50,"uniqueKey":"consumptionLimit.usd.oneOf.1","typeLabel":"any"},{"type":"null","title":"null","description":"USD limit","example":50,"uniqueKey":"consumptionLimit.usd.oneOf.2","typeLabel":"null"},{"title":"null","description":"USD limit","example":50,"uniqueKey":"consumptionLimit.usd.oneOf.3","typeLabel":"any"},{"type":"null","title":"null","description":"USD limit","example":50,"uniqueKey":"consumptionLimit.usd.oneOf.4","typeLabel":"null"}],"uniqueKey":"consumptionLimit.usd","typeLabel":"number · any · null · any · null"},"diem":{"oneOf":[{"type":"number","description":"Diem limit","maximum":9999999999,"minimum":0,"example":10,"uniqueKey":"consumptionLimit.diem.oneOf.0","typeLabel":"number"},{"title":"null","description":"Diem limit","example":10,"uniqueKey":"consumptionLimit.diem.oneOf.1","typeLabel":"any"},{"type":"null","title":"null","description":"Diem limit","example":10,"uniqueKey":"consumptionLimit.diem.oneOf.2","typeLabel":"null"},{"title":"null","description":"Diem limit","example":10,"uniqueKey":"consumptionLimit.diem.oneOf.3","typeLabel":"any"},{"type":"null","title":"null","description":"Diem limit","example":10,"uniqueKey":"consumptionLimit.diem.oneOf.4","typeLabel":"null"}],"uniqueKey":"consumptionLimit.diem","typeLabel":"number · any · null · any · null"},"vcu":{"oneOf":[{"type":"number","description":"VCU limit (deprecated - use Diem instead)","maximum":9999999999,"minimum":0,"deprecated":true,"example":100,"uniqueKey":"consumptionLimit.vcu.oneOf.0","typeLabel":"number"},{"title":"null","description":"VCU limit (deprecated - use Diem instead)","deprecated":true,"example":100,"uniqueKey":"consumptionLimit.vcu.oneOf.1","typeLabel":"any"},{"type":"null","title":"null","description":"VCU limit (deprecated - use Diem instead)","deprecated":true,"example":100,"uniqueKey":"consumptionLimit.vcu.oneOf.2","typeLabel":"null"},{"title":"null","description":"VCU limit (deprecated - use Diem instead)","deprecated":true,"example":100,"uniqueKey":"consumptionLimit.vcu.oneOf.3","typeLabel":"any"},{"type":"null","title":"null","description":"VCU limit (deprecated - use Diem instead)","deprecated":true,"example":100,"uniqueKey":"consumptionLimit.vcu.oneOf.4","typeLabel":"null"}],"uniqueKey":"consumptionLimit.vcu","typeLabel":"number · any · null · any · null"}},"description":"The API Key consumption limits, evaluated against the window selected by `limitPeriod`.","example":{"usd":50,"diem":10,"vcu":30},"uniqueKey":"consumptionLimit","typeLabel":"object"},"limitPeriod":{"type":"string","enum":["EPOCH","MONTH","LIFETIME"],"description":"Reset window the consumption limits apply to. `EPOCH` resets every UTC day (legacy default). `MONTH` resets on the 1st of each UTC calendar month. `LIFETIME` never resets, so the limit acts as a permanent cap on the key.","example":"MONTH","uniqueKey":"limitPeriod","typeLabel":"enum\u003cstring>"},"modelPrivacy":{"type":"string","enum":["ALL","PRIVATE_TEXT","PRIVATE_ONLY"],"description":"Which models this key may call, by privacy tier. `ALL` allows every model. `PRIVATE_TEXT` requires text and embedding models to be Private, TEE, or E2EE while other modalities may be Anonymous or Private. `PRIVATE_ONLY` requires every model to be Private, TEE, or E2EE; Anonymous models are rejected.","example":"ALL","uniqueKey":"modelPrivacy","typeLabel":"enum\u003cstring>"},"expiresAt":{"oneOf":[{"type":"string","description":"The API Key expiration date. If not provided, the key will not expire.","enum":[""],"example":"2023-10-01T12:00:00.000Z","uniqueKey":"expiresAt.oneOf.0","typeLabel":"enum\u003cstring>"},{"type":"string","description":"The API Key expiration date. If not provided, the key will not expire.","pattern":"^\\d{4}-\\d{2}-\\d{2}$","example":"2023-10-01T12:00:00.000Z","uniqueKey":"expiresAt.oneOf.1","typeLabel":"string"},{"type":"string","description":"The API Key expiration date. If not provided, the key will not expire.","pattern":"^\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}:\\d{2}(\\.\\d{3})?Z$","example":"2023-10-01T12:00:00.000Z","uniqueKey":"expiresAt.oneOf.2","typeLabel":"string"}],"uniqueKey":"expiresAt","typeLabel":"enum\u003cstring> · string · string"},"ipAllowlist":{"type":"array","items":{"type":"string","maxLength":64,"uniqueKey":"ipAllowlist.items.[INDEX]","typeLabel":"string"},"maxItems":100,"description":"Globally reachable IPv4 or IPv6 addresses and CIDR subnets allowed to use this key. An empty list allows requests from any IP address.","example":["11.22.33.44","11.22.33.0/24","2a00:1::/48"],"uniqueKey":"ipAllowlist","typeLabel":"string[]"}},"required":["apiKeyType","description"],"additionalProperties":false,"description":"The request body for creating a new API key. API key creation is rate limited to 20 requests per minute and a maximum of 500 active API keys per user. VCU (Legacy Diem) is being deprecated in favor of tokenized Diem. Please update your API calls to use Diem instead.","uniqueKey":"","typeLabel":"object"},"examples":{"Example":{"title":"Example","value":{"apiKeyType":"ADMIN","description":"Example API Key","consumptionLimit":{"usd":50,"diem":10,"vcu":30},"limitPeriod":"MONTH","modelPrivacy":"ALL","expiresAt":"2023-10-01T12:00:00.000Z","ipAllowlist":["11.22.33.44","11.22.33.0/24","2a00:1::/48"]}}},"exampleType":"generated"}},"exampleType":"generated"},"responses":{"d001325c-efe8-4454-81c2-2aa6fdd7b31e":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"data":{"type":"object","properties":{"apiKey":{"type":"string","description":"The API Key. This is only shown once, so make sure to save it somewhere safe.","isRequired":true,"uniqueKey":"data.apiKey","typeLabel":"string"},"apiKeyType":{"type":"string","enum":["INFERENCE","ADMIN"],"description":"The API Key type","example":"ADMIN","isRequired":true,"uniqueKey":"data.apiKeyType","typeLabel":"enum\u003cstring>"},"consumptionLimit":{"type":"object","properties":{"usd":{"oneOf":[{"type":"number","description":"USD limit","maximum":9999999999,"minimum":0,"example":50,"uniqueKey":"data.consumptionLimit.usd.oneOf.0","typeLabel":"number"},{"title":"null","description":"USD limit","example":50,"uniqueKey":"data.consumptionLimit.usd.oneOf.1","typeLabel":"any"},{"type":"null","title":"null","description":"USD limit","example":50,"uniqueKey":"data.consumptionLimit.usd.oneOf.2","typeLabel":"null"},{"title":"null","description":"USD limit","example":50,"uniqueKey":"data.consumptionLimit.usd.oneOf.3","typeLabel":"any"},{"type":"null","title":"null","description":"USD limit","example":50,"uniqueKey":"data.consumptionLimit.usd.oneOf.4","typeLabel":"null"}],"uniqueKey":"data.consumptionLimit.usd","typeLabel":"number · any · null · any · null"},"diem":{"oneOf":[{"type":"number","description":"Diem limit","maximum":9999999999,"minimum":0,"example":10,"uniqueKey":"data.consumptionLimit.diem.oneOf.0","typeLabel":"number"},{"title":"null","description":"Diem limit","example":10,"uniqueKey":"data.consumptionLimit.diem.oneOf.1","typeLabel":"any"},{"type":"null","title":"null","description":"Diem limit","example":10,"uniqueKey":"data.consumptionLimit.diem.oneOf.2","typeLabel":"null"},{"title":"null","description":"Diem limit","example":10,"uniqueKey":"data.consumptionLimit.diem.oneOf.3","typeLabel":"any"},{"type":"null","title":"null","description":"Diem limit","example":10,"uniqueKey":"data.consumptionLimit.diem.oneOf.4","typeLabel":"null"}],"uniqueKey":"data.consumptionLimit.diem","typeLabel":"number · any · null · any · null"},"vcu":{"oneOf":[{"type":"number","description":"VCU limit (deprecated - use Diem instead)","maximum":9999999999,"minimum":0,"deprecated":true,"example":100,"uniqueKey":"data.consumptionLimit.vcu.oneOf.0","typeLabel":"number"},{"title":"null","description":"VCU limit (deprecated - use Diem instead)","deprecated":true,"example":100,"uniqueKey":"data.consumptionLimit.vcu.oneOf.1","typeLabel":"any"},{"type":"null","title":"null","description":"VCU limit (deprecated - use Diem instead)","deprecated":true,"example":100,"uniqueKey":"data.consumptionLimit.vcu.oneOf.2","typeLabel":"null"},{"title":"null","description":"VCU limit (deprecated - use Diem instead)","deprecated":true,"example":100,"uniqueKey":"data.consumptionLimit.vcu.oneOf.3","typeLabel":"any"},{"type":"null","title":"null","description":"VCU limit (deprecated - use Diem instead)","deprecated":true,"example":100,"uniqueKey":"data.consumptionLimit.vcu.oneOf.4","typeLabel":"null"}],"uniqueKey":"data.consumptionLimit.vcu","typeLabel":"number · any · null · any · null"}},"description":"The API Key consumption limits, evaluated against the window selected by `limitPeriod`.","example":{"usd":50,"diem":10,"vcu":30},"isRequired":true,"uniqueKey":"data.consumptionLimit","typeLabel":"object"},"limitPeriod":{"type":"string","enum":["EPOCH","MONTH","LIFETIME"],"description":"Reset window the consumption limits apply to. `EPOCH` resets every UTC day (legacy default). `MONTH` resets on the 1st of each UTC calendar month. `LIFETIME` never resets, so the limit acts as a permanent cap on the key.","example":"MONTH","isRequired":true,"uniqueKey":"data.limitPeriod","typeLabel":"enum\u003cstring>"},"modelPrivacy":{"type":"string","enum":["ALL","PRIVATE_TEXT","PRIVATE_ONLY"],"description":"Which models this key may call, by privacy tier. `ALL` allows every model. `PRIVATE_TEXT` requires text and embedding models to be Private, TEE, or E2EE while other modalities may be Anonymous or Private. `PRIVATE_ONLY` requires every model to be Private, TEE, or E2EE; Anonymous models are rejected.","example":"ALL","isRequired":true,"uniqueKey":"data.modelPrivacy","typeLabel":"enum\u003cstring>"},"expiresAt":{"oneOf":[{"type":"string","description":"The API Key expiration date","example":"2023-10-01T12:00:00.000Z","isRequired":true,"uniqueKey":"data.expiresAt.oneOf.0","typeLabel":"string"},{"type":"null","description":"The API Key expiration date","example":"2023-10-01T12:00:00.000Z","isRequired":true,"uniqueKey":"data.expiresAt.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"data.expiresAt","typeLabel":"string | null"},"id":{"type":"string","description":"The API Key ID","example":"e28e82dc-9df2-4b47-b726-d0a222ef2ab5","isRequired":true,"uniqueKey":"data.id","typeLabel":"string"},"ipAllowlist":{"type":"array","items":{"type":"string","uniqueKey":"data.ipAllowlist.items.[INDEX]","typeLabel":"string"},"maxItems":100,"description":"Globally reachable IPv4 or IPv6 addresses and CIDR subnets allowed to use this key. An empty list allows requests from any IP address. Entries are returned in canonical CIDR notation.","example":["11.22.33.44/32","11.22.33.0/24","2a00:1::/48"],"isRequired":true,"uniqueKey":"data.ipAllowlist","typeLabel":"string[]"},"description":{"type":"string","description":"The API Key description","example":"Example API Key","uniqueKey":"data.description","typeLabel":"string"}},"required":["apiKey","apiKeyType","consumptionLimit","limitPeriod","modelPrivacy","expiresAt","id","ipAllowlist"],"additionalProperties":false,"isRequired":true,"uniqueKey":"data","typeLabel":"object"},"success":{"type":"boolean","isRequired":true,"uniqueKey":"success","typeLabel":"boolean"}},"required":["data","success"],"additionalProperties":false,"uniqueKey":"","typeLabel":"object"},"examples":{"Example":{"title":"Example","value":{"data":{"apiKey":"\u003cstring>","apiKeyType":"ADMIN","consumptionLimit":{"usd":50,"diem":10,"vcu":30},"limitPeriod":"MONTH","modelPrivacy":"ALL","expiresAt":"2023-10-01T12:00:00.000Z","id":"e28e82dc-9df2-4b47-b726-d0a222ef2ab5","ipAllowlist":["11.22.33.44/32","11.22.33.0/24","2a00:1::/48"],"description":"Example API Key"},"success":true}}},"exampleType":"generated"}},"exampleType":"generated"},"3226ce28-6fc9-4095-95dd-80bb39bf6a20":{"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"},"e4063a1a-965d-4de4-a72c-e4bac5174629":{"description":"Authentication 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"},"90a7421d-7522-41e0-b2e4-0b516747dcd5":{"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"},"8a6f3ac7-079e-4492-afaa-c2e096a3491c":{"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"},"0d36bfc0-1677-4f2c-a112-733eab504a43":{"description":"An unknown error occurred","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":{"c7c8f1c4-f842-466d-85a4-3d3e03a296d5":{"BearerAuth":{"bearerFormat":"JWT","scheme":"bearer","type":"http","scopes":[],"schemeName":"BearerAuth"}}},"servers":{"5f1831bd-248c-480f-8517-5351929f450f":{"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"}]},"originalFileLocation":"swagger.yaml"},"subdomain":"veniceai","siteName":"Venice API Docs","title":"Create API Key | Venice API Docs","navMaps":{"firstHrefInVersion":{},"firstHrefInLanguage":{"en":{"href":"/api-reference/endpoint/api_keys/create","matchLevel":1},"pt-BR":{"href":"/pt-BR/api-reference/endpoint/api_keys/create","matchLevel":1},"ar":{"href":"/ar/api-reference/endpoint/api_keys/create","matchLevel":1},"it":{"href":"/it/api-reference/endpoint/api_keys/create","matchLevel":1},"de":{"href":"/de/api-reference/endpoint/api_keys/create","matchLevel":1},"es":{"href":"/es/api-reference/endpoint/api_keys/create","matchLevel":1},"fr":{"href":"/fr/api-reference/endpoint/api_keys/create","matchLevel":1},"zh":{"href":"/zh/api-reference/endpoint/api_keys/create","matchLevel":0},"ko":{"href":"/ko/api-reference/endpoint/api_keys/create","matchLevel":1}}},"lastModified":"2026-06-16T19:27:38.628Z","originalFileLocation":"zh/api-reference/endpoint/api_keys/create.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=\"system\"}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=\"Create a new API key.\">\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=\"Create API Key | Venice API Docs\">\u003cmeta data-mint-head property=\"og:description\" content=\"Create a new API key.\">\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/api_keys/create\">\u003cmeta data-mint-head property=\"og:type\" content=\"website\">\u003cmeta data-mint-head property=\"og:image\" content=\"https://veniceai.mintlify.app/_mintlify/api/og/v2?division=API+%E5%AF%86%E9%92%A5\u0026amp;title=%E5%88%9B%E5%BB%BA+API+%E5%AF%86%E9%92%A5\u0026amp;description=Create+a+new+API+key.\u0026amp;theme=508d743c1f2720564c9062e7\u0026amp;signature=3ba3652fc319d7385f1a06413500507f8f47daddd018939900349577df19036a\">\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=\"Create API Key | Venice API Docs\">\u003cmeta data-mint-head name=\"twitter:description\" content=\"Create a new API key.\">\u003cmeta data-mint-head name=\"twitter:image\" content=\"https://veniceai.mintlify.app/_mintlify/api/og/v2?division=API+%E5%AF%86%E9%92%A5\u0026amp;title=%E5%88%9B%E5%BB%BA+API+%E5%AF%86%E9%92%A5\u0026amp;description=Create+a+new+API+key.\u0026amp;theme=508d743c1f2720564c9062e7\u0026amp;signature=3ba3652fc319d7385f1a06413500507f8f47daddd018939900349577df19036a\">\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/api_keys/create\">\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/api_keys/create.md\">\u003clink data-mint-head rel=\"alternate\" hreflang=\"zh\" href=\"https://docs.venice.ai/zh/api-reference/endpoint/api_keys/create\">\u003clink data-mint-head rel=\"alternate\" hreflang=\"en\" href=\"https://docs.venice.ai/api-reference/endpoint/api_keys/create\">\u003clink data-mint-head rel=\"alternate\" hreflang=\"pt-BR\" href=\"https://docs.venice.ai/pt-BR/api-reference/endpoint/api_keys/create\">\u003clink data-mint-head rel=\"alternate\" hreflang=\"ar\" href=\"https://docs.venice.ai/ar/api-reference/endpoint/api_keys/create\">\u003clink data-mint-head rel=\"alternate\" hreflang=\"it\" href=\"https://docs.venice.ai/it/api-reference/endpoint/api_keys/create\">\u003clink data-mint-head rel=\"alternate\" hreflang=\"de\" href=\"https://docs.venice.ai/de/api-reference/endpoint/api_keys/create\">\u003clink data-mint-head rel=\"alternate\" hreflang=\"es\" href=\"https://docs.venice.ai/es/api-reference/endpoint/api_keys/create\">\u003clink data-mint-head rel=\"alternate\" hreflang=\"fr\" href=\"https://docs.venice.ai/fr/api-reference/endpoint/api_keys/create\">\u003clink data-mint-head rel=\"alternate\" hreflang=\"ko\" href=\"https://docs.venice.ai/ko/api-reference/endpoint/api_keys/create\">\u003clink data-mint-head rel=\"alternate\" hreflang=\"x-default\" href=\"https://docs.venice.ai/api-reference/endpoint/api_keys/create\">\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/api_keys/create#webpage\",\"url\":\"https://docs.venice.ai/zh/api-reference/endpoint/api_keys/create\",\"name\":\"创建 API 密钥\",\"description\":\"Create a new API key.\",\"dateModified\":\"2026-06-16T19:27:38.628Z\",\"isPartOf\":{\"@id\":\"https://docs.venice.ai#website\"},\"breadcrumb\":{\"@id\":\"https://docs.venice.ai/zh/api-reference/endpoint/api_keys/create#breadcrumb\"}},{\"@type\":\"BreadcrumbList\",\"@id\":\"https://docs.venice.ai/zh/api-reference/endpoint/api_keys/create#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Venice APIs\",\"item\":\"https://docs.venice.ai/zh/api-reference/api-spec\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"API 密钥\",\"item\":\"https://docs.venice.ai/zh/api-reference/endpoint/api_keys/list\"},{\"@type\":\"ListItem\",\"position\":3,\"name\":\"创建 API 密钥\",\"item\":\"https://docs.venice.ai/zh/api-reference/endpoint/api_keys/create\"}]},{\"@type\":[\"TechArticle\",\"APIReference\"],\"@id\":\"https://docs.venice.ai/zh/api-reference/endpoint/api_keys/create#apireference\",\"headline\":\"创建 API 密钥\",\"name\":\"创建 API 密钥\",\"description\":\"Create a new API key.\",\"url\":\"https://docs.venice.ai/zh/api-reference/endpoint/api_keys/create\",\"mainEntityOfPage\":{\"@id\":\"https://docs.venice.ai/zh/api-reference/endpoint/api_keys/create#webpage\"},\"dateModified\":\"2026-06-16T19:27:38.628Z\",\"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\",\"creator\":{\"@type\":\"Organization\",\"name\":\"Mintlify\",\"url\":\"https://mintlify.com\"}}\u003c/script>","siteName":"Venice API Docs","nav":{"global":null,"languages":[{"language":"en","default":true,"pages":[{"title":"en","href":"/api-reference/endpoint/api_keys/create"}]},{"language":"pt-BR","pages":[{"title":"pt-BR","href":"/pt-BR/api-reference/endpoint/api_keys/create"}]},{"language":"ar","pages":[{"title":"ar","href":"/ar/api-reference/endpoint/api_keys/create"}]},{"language":"it","pages":[{"title":"it","href":"/it/api-reference/endpoint/api_keys/create"}]},{"language":"de","pages":[{"title":"de","href":"/de/api-reference/endpoint/api_keys/create"}]},{"language":"es","pages":[{"title":"es","href":"/es/api-reference/endpoint/api_keys/create"}]},{"language":"fr","pages":[{"title":"fr","href":"/fr/api-reference/endpoint/api_keys/create"}]},{"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","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","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}","description":"Return details about a specific API key, including rate limits and balance data.","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","description":"Update an existing API key. The description, expiration date, consumption limits, limit period, model privacy, and IP allowlist can be updated.","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":"https://featurebase.venice.ai/changelog"},{"tab":"状态","icon":"activity","href":"https://veniceai-status.com"}]},{"language":"ko","pages":[{"title":"ko","href":"/ko/api-reference/endpoint/api_keys/create"}]}]},"basePath":"","title":"Create API Key | Venice API Docs","buildId":"dpl_345ReqzYaAjzS9QpeJemsKdb7KDj","deploymentId":"dpl_345ReqzYaAjzS9QpeJemsKdb7KDj","dynamics":["c2aa737661","b0f84f53ff","a9bb46feb3","2b790eda92"],"chunks":["OpenApiReferenceProvider-C8RPHPxo.js","utils-0BK-9q6z.js","cloneDeep-izs3Hzxb.js","_Uint8Array-BVIqJ90l.js","isObjectLike-C8vmzPEN.js","isArray-Dcu1dQ5t.js","utils-DfjzsUJT.js","toString-BX-iyh8G.js","isSymbol-CSH9U2Gm.js","addUniqueKeysToSchema-B4v9psJ4.js","snippetPresets-CpTQv-Ez.js","style-to-object-BY3JEAdk.js","v4-DIgz8zy6.js","Page-Buji1S4J.js","ApiExamples-BNP-Fvr0.js","isEqual-BfaiBbcl.js","usePlaygroundInputsStore-BSgu6h1D.js","shallow-Biv1i9Gs.js","getApiPlaygroundDisplay-BoGOXhtF.js","CodeSnippet-DvQoT18_.js","CodeSnippets-Dnpa15xT.js","getPastedJson-xAIyhUFE.js","icon-S6FBih11.js","MethodPill-SaYeUZyk.js","DuplicateIcon-Cs-p3v2Q.js","createIcon-DjCFEoHq.js","DynamicMarkdown-BcnBltEQ.js","SectionHeading-BUBl0eEF.js","axios-vUo_bRtp.js","Markdown-h4cOoD8d.js","clsx-B2v50t8t.js","lib-DuNMoZ05.js","lib-B8HbPgcC.js","html-void-elements-mCSPHezU.js","dist-DJnKvr0g.js","katex-YMM-FMeD.js","marked.esm-CZWythHk.js","AssistantPageLink-BHrrjR1K.js"]}