Credit limit in "coins" (1 coin = 0.01 currency units). Limits consumption for time-limited API keys. Usage is blocked after the limit is reached. Default is 0 (no limit).
{"docsConfig":{"theme":"mint","$schema":"https://mintlify.com/docs.json","name":"极客智坊","colors":{"primary":"#16A34A","light":"#07C983","dark":"#15803D"},"logo":{"light":"https://mintcdn.com/geekai/O3NwfoCr_3liylVV/logo/geekai-logo.png?fit=max\u0026auto=format\u0026n=O3NwfoCr_3liylVV\u0026q=85\u0026s=8edc923acd300ea2b9049b14795c8c7a","dark":"https://mintcdn.com/geekai/O3NwfoCr_3liylVV/logo/geekai-logo.png?fit=max\u0026auto=format\u0026n=O3NwfoCr_3liylVV\u0026q=85\u0026s=8edc923acd300ea2b9049b14795c8c7a"},"favicon":"https://mintcdn.com/geekai/O3NwfoCr_3liylVV/geekai-icon.webp?fit=max\u0026auto=format\u0026n=O3NwfoCr_3liylVV\u0026q=85\u0026s=b0091b79891520b5d274b34c5ea4e970","navbar":{"links":[{"href":"https://geekai.co/models","label":"模型广场"}],"primary":{"type":"button","label":"模型对话","href":"https://geekai.co/chat"}},"seo":{"metatags":{"og:image":"/geekai-icon.webp"},"indexing":"all"},"styling":{"latex":false},"navigation":{"languages":[{"language":"cn","href":"cn/docs/introduction"},{"language":"en","href":"en/docs/introduction"}]}},"deployment":{"deploymentMetadataValue":{"subdomain":"geekai","hasAudioNarration":false,"actualSubdomain":"geekai","customDomains":["docs.geekai.co"],"gitSource":{"type":"github","owner":"geekai-pub","repo":"geekai-docs","deployBranch":"main","contentDirectory":"","isPrivate":true,"mountPath":"","label":""},"feedback":{"thumbs":true},"entitlements":{},"buildId":"6aecba4ce142d265493aaba0","clientVersion":"0.0.4087","searchFilterCounts":[{"language":"cn","tag":"画图模型","count":44},{"language":"cn","tag":"视频模型","count":42},{"language":"cn","tag":"API手册","count":37},{"language":"cn","tag":"文本模型","count":36},{"language":"cn","tag":"第三方集成","count":26},{"language":"cn","tag":"第三方应用集成","count":26},{"language":"en","tag":"API Reference","count":24},{"language":"cn","tag":"Chat API","count":14},{"language":"en","tag":"Use Cases","count":13},{"language":"en","tag":"AI Apps","count":13},{"language":"cn","tag":"字节豆包","count":10},{"language":"cn","tag":"可灵AI","count":10},{"language":"cn","tag":"语音模型","count":9},{"language":"en","tag":"User Guides","count":7},{"language":"en","tag":"Getting Started","count":7},{"language":"en","tag":"API KEY","count":6},{"language":"en","tag":"Agent","count":5},{"language":"en","tag":"Chat","count":3},{"language":"en","tag":"Audio","count":2},{"language":"en","tag":"File","count":2}]},"assistantConfig":{},"basePath":"","hasChatPermissions":false,"hasWebMcpPermissions":false,"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":"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":"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":"comment-mode","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false}],"googleFontsInlined":false},"customCss":[],"page":{"pagePath":"en/api/key/create","slug":"/en/api/key/create","pageMetadata":{"title":"Create a New API Key","openapi":"openapi.yaml POST /api_keys","sidebarTitle":"Create","description":null,"href":"/en/api/key/create"},"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={blockquote:`blockquote`,p:`p`,strong:`strong`,..._provideComponents(),...props.components};return _jsxs(_Fragment,{children:[_jsx(_components.p,{children:`This endpoint creates a new API key.`}),`\n`,_jsxs(_components.blockquote,{children:[`\n`,_jsxs(_components.p,{children:[_jsx(_components.strong,{children:`Note:`}),` Calling this endpoint requires an existing API key. Generally, you can use the API key that was automatically generated during registration.`]}),`\n`]})]})}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":{"config":{},"pageMetadata":{"title":"Create a New API Key","openapi":"openapi.yaml POST /api_keys","sidebarTitle":"Create","description":null,"href":"/en/api/key/create"}}},"mdxSourceWithNoJs":null},"mdxExtracts":{"tableOfContents":[],"codeExamples":{}},"jsLinks":[],"openApiReferenceData":{"operation":{"tags":["API_KEY"],"summary":"Create a New API Key","description":"Creates a new API key via the API.","operationId":"createApiKey","requestBody":"fd806b67-af31-452f-b66e-dea8fcae622e","responses":{"200":"3e41d260-fa50-4bf4-b01f-616b9d291e71","400":"5b8382b9-e632-4f65-8889-3d876cf22baa","401":"52c52df3-0f1a-432b-8e5a-68d5031cb121","500":"88650dfc-82c6-4065-82c3-515980fbf806"},"method":"post","type":"path","servers":["999ebc8c-c86e-44e2-8a00-aa3fbeb9514b"],"security":["93b1978a-f849-475d-a3fb-f03bf0bf0684","a28da8cf-e267-4a49-b543-20d0c85ac8dd"],"path":"/api_keys","baseUrlOptions":["https://geekai.dev/api/v1"],"title":"Create a New API Key","codeSamples":[],"requiredOnlyExamples":false,"requestExampleType":"generated","responseExampleType":"generated"},"dependencies":{"parameters":{},"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","required":["name","group"],"properties":{"name":{"type":"string","description":"A name to identify the API key's use case, for management and cost tracking.","default":"default","example":"geekai","isRequired":true,"uniqueKey":"name","typeLabel":"string"},"group":{"type":"string","description":"The proxy strategy group. Valid values are: lowcost (prioritize low cost), balance (balanced), ha (high availability), and none (no proxy).","enum":["lowcost","balance","ha","none"],"default":"balance","example":"balance","isRequired":true,"uniqueKey":"group","typeLabel":"enum\u003cstring>"},"credit_limit":{"type":"number","description":"Credit limit in \"coins\" (1 coin = 0.01 currency units). Limits consumption for time-limited API keys. Usage is blocked after the limit is reached. Default is 0 (no limit).","default":0,"example":10000,"uniqueKey":"credit_limit","typeLabel":"number"},"expired_at":{"type":"string","format":"date","description":"Expiration date. The key becomes unusable after this date. Empty by default (no expiration).","default":"","example":"2025-12-31","uniqueKey":"expired_at","typeLabel":"string\u003cdate>"}},"uniqueKey":"","typeLabel":"object"},"examples":{"Example":{"title":"Example","value":{"name":"geekai","group":"balance","credit_limit":10000,"expired_at":"2025-12-31"}}},"exampleType":"generated"}},"exampleType":"generated"},"responses":{"3e41d260-fa50-4bf4-b01f-616b9d291e71":{"description":"Success","content":{"application/json":{"schema":{"type":"object","properties":{"data":{"type":"object","description":"Details of the newly created API key.","properties":{"uuid":{"type":"string","description":"UUID","uniqueKey":"data.uuid","typeLabel":"string"},"name":{"type":"string","description":"Name","uniqueKey":"data.name","typeLabel":"string"},"value":{"type":"string","description":"The masked API key value.","uniqueKey":"data.value","typeLabel":"string"},"raw_value":{"type":"string","description":"The raw API key value. Use this value when calling the Geek Intelligent Workshop API.","uniqueKey":"data.raw_value","typeLabel":"string"},"group":{"type":"object","description":"Proxy strategy group.","properties":{"name":{"type":"string","description":"Strategy name.","uniqueKey":"data.group.name","typeLabel":"string"},"alias":{"type":"string","description":"Strategy alias.","uniqueKey":"data.group.alias","typeLabel":"string"},"desc":{"type":"string","description":"Strategy description.","uniqueKey":"data.group.desc","typeLabel":"string"}},"uniqueKey":"data.group","typeLabel":"object"},"credit_limit":{"type":"number","description":"Credit limit.","uniqueKey":"data.credit_limit","typeLabel":"number"},"credit_used":{"type":"number","description":"Credit used.","uniqueKey":"data.credit_used","typeLabel":"number"},"expired_at":{"type":"string","format":"date","description":"Expiration date.","uniqueKey":"data.expired_at","typeLabel":"string\u003cdate>"},"expired":{"type":"boolean","description":"Whether the key has expired.","uniqueKey":"data.expired","typeLabel":"boolean"},"status":{"type":"boolean","description":"Status. true = enabled, false = disabled.","uniqueKey":"data.status","typeLabel":"boolean"},"last_used_at":{"type":"string","format":"date-time","description":"Last used timestamp.","uniqueKey":"data.last_used_at","typeLabel":"string\u003cdate-time>"},"created_at":{"type":"string","format":"date-time","description":"Creation timestamp.","uniqueKey":"data.created_at","typeLabel":"string\u003cdate-time>"}},"uniqueKey":"data","typeLabel":"object"},"message":{"type":"string","description":"Success/failure message.","uniqueKey":"message","typeLabel":"string"}},"uniqueKey":"","typeLabel":"object"},"examples":{"Example":{"title":"Example","value":{"data":{"uuid":"\u003cstring>","name":"\u003cstring>","value":"\u003cstring>","raw_value":"\u003cstring>","group":{"name":"\u003cstring>","alias":"\u003cstring>","desc":"\u003cstring>"},"credit_limit":123,"credit_used":123,"expired_at":"2023-12-25","expired":true,"status":true,"last_used_at":"2023-11-07T05:31:56Z","created_at":"2023-11-07T05:31:56Z"},"message":"\u003cstring>"}}},"exampleType":"generated"}},"exampleType":"generated"},"5b8382b9-e632-4f65-8889-3d876cf22baa":{"description":"validation error","content":{"application/json":{"schema":{"type":"object","properties":{"code":{"type":"string","example":"validation_error","uniqueKey":"code","typeLabel":"string"},"message":{"type":"string","example":"validation error","uniqueKey":"message","typeLabel":"string"},"details":{"type":"object","additionalProperties":{"type":"string","uniqueKey":"details.additionalProperties","typeLabel":"string"},"example":{"field":"error message"},"uniqueKey":"details","typeLabel":"object"}},"uniqueKey":"","typeLabel":"object"},"examples":{"Example":{"title":"Example","value":{"code":"validation_error","message":"validation error","details":{"field":"error message"}}}},"exampleType":"generated"}},"exampleType":"generated"},"52c52df3-0f1a-432b-8e5a-68d5031cb121":{"description":"unauthorized","content":{"application/json":{"schema":{"type":"object","properties":{"code":{"type":"string","example":"unauthorized","uniqueKey":"code","typeLabel":"string"},"message":{"type":"string","example":"invalid api key or token","uniqueKey":"message","typeLabel":"string"}},"uniqueKey":"","typeLabel":"object"},"examples":{"Example":{"title":"Example","value":{"code":"unauthorized","message":"invalid api key or token"}}},"exampleType":"generated"}},"exampleType":"generated"},"88650dfc-82c6-4065-82c3-515980fbf806":{"description":"standard error response","content":{"application/json":{"schema":{"type":"object","required":["code","message"],"properties":{"code":{"type":"string","description":"error code","example":"invalid_request","isRequired":true,"uniqueKey":"code","typeLabel":"string"},"message":{"type":"string","description":"error message","example":"invalid request","isRequired":true,"uniqueKey":"message","typeLabel":"string"}},"uniqueKey":"","typeLabel":"object"},"examples":{"Example":{"title":"Example","value":{"code":"invalid_request","message":"invalid request"}}},"exampleType":"generated"}},"exampleType":"generated"}},"security":{"93b1978a-f849-475d-a3fb-f03bf0bf0684":{"bearerAuth":{"type":"http","scheme":"bearer","bearerFormat":"JWT","description":"token","scopes":[]}},"a28da8cf-e267-4a49-b543-20d0c85ac8dd":{"apiKeyAuth":{"type":"apiKey","in":"header","name":"X-API-Key","description":"api key","scopes":[]}}},"servers":{"999ebc8c-c86e-44e2-8a00-aa3fbeb9514b":{"url":"https://geekai.dev/api/v1","description":"base URL"}},"processedSecurityOptions":[{"schemes":[{"scheme":{"type":"http","scheme":"bearer","bearerFormat":"JWT","description":"token","scopes":[]},"schema":{"title":"Bearer Auth","type":"string","isRequired":true,"description":"token","format":"bearer","typeLabel":"string\u003cbearer>","deprecated":false},"schemeName":"bearerAuth","name":"Authorization"}],"title":"bearerAuth"},{"schemes":[{"scheme":{"type":"apiKey","in":"header","name":"X-API-Key","description":"api key","scopes":[]},"schema":{"title":"X-API-Key","type":"string","description":"api key","isRequired":true,"typeLabel":"string","deprecated":false},"schemeName":"apiKeyAuth","name":"X-API-Key"}],"title":"apiKeyAuth"}]},"originalFileLocation":"en/api/openapi.yaml"},"subdomain":"geekai","siteName":"极客智坊","title":"Create a New API Key - 极客智坊","navMaps":{"firstHrefInVersion":{},"firstHrefInLanguage":{"cn":{"href":"/cn/api/key/create","matchLevel":1},"en":{"href":"/en/api/key/create","matchLevel":0}}},"lastModified":"2026-11-05T10:54:23.863Z","originalFileLocation":"en/api/key/create.mdx","locale":"en"},"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=\"application-name\" content=\"极客智坊\">\u003cmeta data-mint-head name=\"generator\" content=\"Mintlify\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"192x192\" href=\"/mintlify-assets/_mintlify/favicons/geekai/4IycdE7H9LjTJ-KO/_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/geekai/4IycdE7H9LjTJ-KO/_generated/favicon/apple-touch-icon.png\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"16x16\" href=\"/mintlify-assets/_mintlify/favicons/geekai/4IycdE7H9LjTJ-KO/_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/geekai/4IycdE7H9LjTJ-KO/_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/geekai/4IycdE7H9LjTJ-KO/_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/geekai/4IycdE7H9LjTJ-KO/_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/geekai/4IycdE7H9LjTJ-KO/_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/geekai/4IycdE7H9LjTJ-KO/_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/geekai/4IycdE7H9LjTJ-KO/_generated/favicon-dark/favicon.ico\" media=\"(prefers-color-scheme: dark)\">\u003cmeta data-mint-head property=\"og:title\" content=\"Create a New API Key - 极客智坊\">\u003cmeta data-mint-head property=\"og:site_name\" content=\"极客智坊\">\u003cmeta data-mint-head property=\"og:url\" content=\"https://docs.geekai.co/en/api/key/create\">\u003cmeta data-mint-head property=\"og:type\" content=\"website\">\u003cmeta data-mint-head property=\"og:image\" content=\"https://geekai.mintlify.site/geekai-icon.webp\">\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 a New API Key - 极客智坊\">\u003cmeta data-mint-head name=\"twitter:image\" content=\"https://geekai.mintlify.site/geekai-icon.webp\">\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/geekai/4IycdE7H9LjTJ-KO/_generated/favicon/browserconfig.xml\">\u003cmeta data-mint-head name=\"apple-mobile-web-app-title\" content=\"极客智坊\">\u003cmeta data-mint-head name=\"msapplication-TileColor\" content=\"#16A34A\">\u003clink data-mint-head rel=\"canonical\" href=\"https://docs.geekai.co/en/api/key/create\">\u003clink data-mint-head rel=\"alternate\" type=\"application/xml\" href=\"/sitemap.xml\">\u003clink data-mint-head rel=\"alternate\" type=\"text/markdown\" href=\"/en/api/key/create.md\">\u003clink data-mint-head rel=\"alternate\" hreflang=\"en\" href=\"https://docs.geekai.co/en/api/key/create\">\u003clink data-mint-head rel=\"alternate\" hreflang=\"zh\" href=\"https://docs.geekai.co/cn/api/key/create\">\u003clink data-mint-head rel=\"alternate\" hreflang=\"x-default\" href=\"https://docs.geekai.co/cn/api/key/create\">\u003cscript data-mint-head type=\"application/ld+json\">{\"@context\":\"https://schema.org\",\"@graph\":[{\"@type\":\"Organization\",\"@id\":\"https://docs.geekai.co/#organization\",\"name\":\"极客智坊\",\"url\":\"https://docs.geekai.co\",\"logo\":{\"@type\":\"ImageObject\",\"url\":\"https://mintcdn.com/geekai/O3NwfoCr_3liylVV/logo/geekai-logo.png?fit=max\u0026auto=format\u0026n=O3NwfoCr_3liylVV\u0026q=85\u0026s=8edc923acd300ea2b9049b14795c8c7a\"}},{\"@type\":\"WebSite\",\"@id\":\"https://docs.geekai.co#website\",\"name\":\"极客智坊\",\"url\":\"https://docs.geekai.co\",\"publisher\":{\"@id\":\"https://docs.geekai.co/#organization\"}},{\"@type\":\"WebPage\",\"@id\":\"https://docs.geekai.co/en/api/key/create#webpage\",\"url\":\"https://docs.geekai.co/en/api/key/create\",\"name\":\"Create a New API Key\",\"dateModified\":\"2026-11-05T10:54:23.863Z\",\"isPartOf\":{\"@id\":\"https://docs.geekai.co#website\"},\"breadcrumb\":{\"@id\":\"https://docs.geekai.co/en/api/key/create#breadcrumb\"}},{\"@type\":\"BreadcrumbList\",\"@id\":\"https://docs.geekai.co/en/api/key/create#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"极客智坊\",\"item\":\"https://docs.geekai.co\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Create a New API Key\",\"item\":\"https://docs.geekai.co/en/api/key/create\"}]},{\"@type\":[\"TechArticle\",\"APIReference\"],\"@id\":\"https://docs.geekai.co/en/api/key/create#apireference\",\"headline\":\"Create a New API Key\",\"name\":\"Create a New API Key\",\"url\":\"https://docs.geekai.co/en/api/key/create\",\"mainEntityOfPage\":{\"@id\":\"https://docs.geekai.co/en/api/key/create#webpage\"},\"image\":\"https://docs.geekai.co/geekai-icon.webp\",\"dateModified\":\"2026-11-05T10:54:23.863Z\",\"publisher\":{\"@id\":\"https://docs.geekai.co/#organization\"},\"isPartOf\":{\"@id\":\"https://docs.geekai.co#website\"}}]}\u003c/script>\u003cscript data-mint-head type=\"application/ld+json\">{\"@context\":\"https://schema.org\",\"@type\":\"WebSite\",\"name\":\"极客智坊\",\"creator\":{\"@type\":\"Organization\",\"name\":\"Mintlify\",\"url\":\"https://mintlify.com\"}}\u003c/script>","siteName":"极客智坊","nav":{"global":null,"languages":[{"language":"cn","pages":[{"title":"cn","href":"/cn/api/key/create"}]},{"language":"en","tabs":[{"tab":"User Guides","pages":[{"title":"User Guides","href":"/en/docs/introduction"}]},{"tab":"Use Cases","pages":[{"title":"Use Cases","href":"/en/cases/botgem"}]},{"tab":"API Reference","groups":[{"group":"Chat","pages":[{"title":"Chat Completions","openapi":"openapi.yaml POST /chat/completions","sidebarTitle":"Chat","href":"/en/api/chat"},{"title":"Create Embedding","openapi":"openapi.yaml POST /embeddings","sidebarTitle":"Embedding","href":"/en/api/embedding"},{"title":"Rerank","openapi":"openapi.yaml POST /rerank","sidebarTitle":"Rerank","href":"/en/api/rerank"}]},{"group":"Image","pages":[{"title":"Image Generation","openapi":"openapi.yaml POST /images/generations","sidebarTitle":"Image Generation","href":"/en/api/image"}]},{"group":"Audio","pages":[{"title":"Speech to Text","openapi":"openapi.yaml POST /audio/transcriptions","sidebarTitle":"Speech to Text","href":"/en/api/audio/speechtotext"},{"title":"Text to Speech","openapi":"openapi.yaml POST /audio/speech","sidebarTitle":"Text to Speech","href":"/en/api/audio/texttospeech"}]},{"group":"Video","pages":[{"title":"Create Task","openapi":"openapi.yaml POST /videos/generations","sidebarTitle":"Create","href":"/en/api/video/create"},{"title":"Get Result","openapi":"openapi.yaml GET /video/{task_id}/result","sidebarTitle":"Retrieval","href":"/en/api/video/retrieval"}]},{"group":"Models","pages":[{"title":"List Models","openapi":"openapi.yaml GET /models","sidebarTitle":"List","href":"/en/api/models"}]},{"group":"Agent","pages":[{"title":"Create Agent","openapi":"openapi.yaml POST /agent/create","sidebarTitle":"Create","href":"/en/api/agent/create"},{"title":"Update Agent","openapi":"openapi.yaml PUT /agent/{uuid}/update","sidebarTitle":"Update","href":"/en/api/agent/update"},{"title":"Agent Embedding","openapi":"openapi.yaml PATCH /agent/{uuid}/embed","sidebarTitle":"Embedding","href":"/en/api/agent/embedding"},{"title":"Get Agent Info","openapi":"openapi.yaml GET /agent/{uuid}","sidebarTitle":"Retrieval","href":"/en/api/agent/retrieval"},{"title":"Chat with Agent","openapi":"openapi.yaml POST /agent/chat","sidebarTitle":"Chat","href":"/en/api/agent/chat"}]},{"group":"File","pages":[{"title":"Upload File","openapi":"openapi.yaml POST /files","sidebarTitle":"Upload","href":"/en/api/file/upload"},{"title":"Extract Content","openapi":"openapi.yaml GET /file/{uuid}/content","sidebarTitle":"Extract","href":"/en/api/file/extract"}]},{"group":"OCR","pages":[{"title":"Business Card Recognition","openapi":"openapi.yaml POST /bizcard/recognize","sidebarTitle":"Business Card","href":"/en/api/ocr/cardrecognition"},{"title":"ID Card Recognition","openapi":"openapi.yaml POST /idcard/recognize","sidebarTitle":"ID Card","description":null,"href":"/en/api/ocr/idcardrecognition"}]},{"group":"API KEY","pages":[{"title":"Create a New API Key","openapi":"openapi.yaml POST /api_keys","sidebarTitle":"Create","href":"/en/api/key/create"},{"title":"Get All API Keys","openapi":"openapi.yaml GET /api_keys","sidebarTitle":"List","description":null,"href":"/en/api/key/list"},{"title":"Get API Key Information","openapi":"openapi.yaml GET /api_keys/{uuid}","sidebarTitle":"Get","href":"/en/api/key/get"},{"title":"Update API Key","openapi":"openapi.yaml PUT /api_keys/{uuid}","sidebarTitle":"Update","href":"/en/api/key/update"},{"title":"Toggle API Key Status","openapi":"openapi.yaml PATCH /api_keys/{uuid}/status","sidebarTitle":"Enable/Disable","href":"/en/api/key/toggle"},{"title":"Delete an API Key","openapi":"openapi.yaml DELETE /api_keys/{uuid}","sidebarTitle":"Delete","href":"/en/api/key/delete"}]}]}]}]},"basePath":"","title":"Create a New API Key - 极客智坊","buildId":"dpl_FWZhTb2vab28gFGFH4ojka6qEznQ","deploymentId":"dpl_FWZhTb2vab28gFGFH4ojka6qEznQ","dynamics":["c2aa737661","2b790eda92","b0f84f53ff","a9bb46feb3"],"chunks":["OpenApiReferenceProvider-CBsVopKK.js","utils-DZAk68jJ.js","cloneDeep-izs3Hzxb.js","_Uint8Array-BVIqJ90l.js","isObjectLike-C8vmzPEN.js","isArray-Dcu1dQ5t.js","utils-D32AYZrP.js","toString-BX-iyh8G.js","isSymbol-CSH9U2Gm.js","addUniqueKeysToSchema-D_A5_cny.js","snippetPresets-xNRfS9th.js","style-to-object-BY3JEAdk.js","v4-DIgz8zy6.js","conditional-requirements-CFM0id0Q.js","ApiExamples-BIB25-tq.js","isEqual-BfaiBbcl.js","usePlaygroundInputsStore-CydJ4w4j.js","shallow-CYPBeQSG.js","getApiPlaygroundDisplay-A5xJVBOu.js","CodeSnippet-BVRTgi3m.js","CodeSnippets-DjD6BSlt.js","Page-Dr40SSJq.js","getPastedJson-D4V4JyrR.js","icon-uhcnG22T.js","MethodPill-CM-ZQdGH.js","DuplicateIcon-B_WnOiNf.js","createIcon-CJsb8utt.js","DynamicMarkdown-D-2HDKEp.js","SectionHeading-KP5xmMgQ.js","axios-vUo_bRtp.js","Markdown-D_k0dg6k.js","clsx-DK3K4Z1S.js","lib-DuNMoZ05.js","lib-B8HbPgcC.js","html-void-elements-mCSPHezU.js","dist-DE3EVdvd.js","katex-YMM-FMeD.js","marked.esm-CZWythHk.js","AssistantPageLink-fN9H9n9g.js"]}