{"docsConfig":{"theme":"maple","$schema":"https://mintlify.com/docs.json","name":"AIHubMix","colors":{"primary":"#2563EB","light":"#7298FF","dark":"#2563EB"},"logo":{"light":"https://mintcdn.com/aihubmix/4M5Ijn4uterRbt_v/logo/light.svg?fit=max\u0026auto=format\u0026n=4M5Ijn4uterRbt_v\u0026q=85\u0026s=cfc912408caea6ea63a70c908855d80b","dark":"https://mintcdn.com/aihubmix/4M5Ijn4uterRbt_v/logo/dark.svg?fit=max\u0026auto=format\u0026n=4M5Ijn4uterRbt_v\u0026q=85\u0026s=a93af1a4b6cca0f4807ebfa4f08606a5","href":"https://aihubmix.com"},"favicon":"https://mintcdn.com/aihubmix/wvLBC2rudZx6kP2C/favicon.svg?fit=max\u0026auto=format\u0026n=wvLBC2rudZx6kP2C\u0026q=85\u0026s=3ceb0f890a06ba81303020aeb3a5662b","api":{"openapi":"openapi.json","playground":{"display":"interactive","proxy":true},"examples":{"defaults":"required","languages":["curl","python"],"prefill":false,"autogenerate":true},"url":"full","mdx":{"auth":{"method":"bearer"},"server":["https://aihubmix.com","https://api.inferera.com"]}},"navbar":{"primary":{"type":"button","label":"Quick Start","href":"https://aihubmix.com"}},"seo":{"metatags":{"charset":"UTF-8","viewport":"width=device-width, initial-scale=1.0","description":"AiHubMix is a comprehensive AI model API routing service, providing unified access to OpenAI, Claude, Gemini, Deepseek, Qwen, and more. Effortlessly integrate LLMs, multimodal AI, and developer tools with a single, standardized API.","keywords":"AI, documentation, AiHubMix, LLM, API, integration, developer, OpenAI, Claude, Gemini, Deepseek, Qwen, multimodal, image generation, text-to-speech, embeddings, reranking, video processing","author":"AIHubMix","article:author":"AIHubMix","og:type":"website","og:image":"https://assets.aihubmix.com/docs/og-image.webp","og:description":"Unified API docs for OpenAI, Claude, Gemini, Deepseek, Qwen, and more. Integrate LLMs and multimodal AI with ease.","og:site_name":"AiHubMix","twitter:card":"summary_large_image","twitter:description":"Unified API docs for OpenAI, Claude, Gemini, Deepseek, Qwen, and more. Integrate LLMs and multimodal AI with ease.","twitter:image":"https://assets.aihubmix.com/docs/og-image.webp","theme-color":"#2563EB","color-scheme":"light dark","referrer":"origin","distribution":"global","category":"Technology","apple-mobile-web-app-capable":"yes","application-name":"AiHubMix","msapplication-TileColor":"#2563EB","google-site-verification":"O8gGkZVV1R0quPlvC2DKGS2J05Ab5D2VJ2jUFKUld_s"}},"integrations":{"ga4":{"measurementId":"G-9KBSNEHPLG"}},"contextual":{"options":["copy","view","chatgpt","claude","perplexity","cursor","vscode"],"display":"header"},"thumbnails":{},"styling":{"latex":true},"navigation":{"languages":[{"language":"zh-Hans","href":"cn"},{"language":"en","href":"en"},{"language":"ja","href":"jp"},{"language":"ko","href":"ko"},{"language":"zh-Hant","href":"zh-Hant"},{"language":"fr","href":"fr"},{"language":"de","href":"de"},{"language":"es","href":"es"},{"language":"pt","href":"pt"}]}},"deployment":{"deploymentMetadataValue":{"subdomain":"aihubmix","hasAudioNarration":false,"actualSubdomain":"aihubmix","customDomains":["docs.aihubmix.com"],"gitSource":{"type":"github","owner":"aihubmix","repo":"inferera-docs","deployBranch":"main","contentDirectory":"","isPrivate":true,"mountPath":"","label":""},"entitlements":{"AI_CHAT":{"status":"ENABLED"},"WEB_MCP":{"status":"ENABLED"},"NARRATION":{"status":"ENABLED"}},"buildId":"6afee7ec9b499d373f3b8bc9","clientVersion":"0.0.4227","searchFilterCounts":[{"language":"zh-Hans","tag":"文档","count":78},{"language":"de","tag":"Docs","count":78},{"language":"en","tag":"Docs","count":78},{"language":"es","tag":"Docs","count":78},{"language":"fr","tag":"Docs","count":78},{"language":"ja","tag":"ドキュメント","count":78},{"language":"ko","tag":"문서","count":78},{"language":"pt","tag":"Docs","count":78},{"language":"zh-Hant","tag":"文件","count":78},{"language":"zh-Hans","tag":"API 参考","count":42},{"language":"zh-Hans","tag":"云 Agent","count":42},{"language":"de","tag":"API-Referenz","count":42},{"language":"en","tag":"API Reference","count":42},{"language":"en","tag":"Cloud Agent","count":42},{"language":"es","tag":"Referencia de API","count":42},{"language":"fr","tag":"Référence API","count":42},{"language":"ja","tag":"API リファレンス","count":42},{"language":"ja","tag":"Cloud Agent","count":42},{"language":"ko","tag":"API 레퍼런스","count":42},{"language":"ko","tag":"Cloud Agent","count":42},{"language":"pt","tag":"Referência da API","count":42},{"language":"zh-Hant","tag":"API 參考","count":42},{"language":"zh-Hant","tag":"雲 Agent","count":42},{"language":"zh-Hans","tag":"模型端点","count":30},{"language":"de","tag":"Modell-Endpunkte","count":30},{"language":"en","tag":"Model Endpoints","count":30},{"language":"es","tag":"Endpoints de modelo","count":30},{"language":"fr","tag":"Endpoints de modèle","count":30},{"language":"ja","tag":"モデルエンドポイント","count":30},{"language":"ko","tag":"모델 엔드포인트","count":30},{"language":"pt","tag":"Endpoints de modelo","count":30},{"language":"zh-Hant","tag":"模型端點","count":30},{"language":"zh-Hans","tag":"应用集成","count":29},{"language":"de","tag":"Anwendungen","count":29},{"language":"en","tag":"Apps","count":29},{"language":"es","tag":"Aplicaciones","count":29},{"language":"fr","tag":"Applications","count":29},{"language":"ja","tag":"アプリ","count":29},{"language":"ko","tag":"앱","count":29},{"language":"pt","tag":"Aplicativos","count":29},{"language":"zh-Hant","tag":"應用整合","count":29},{"language":"zh-Hans","tag":"集成指南","count":25},{"language":"de","tag":"Integrationsleitfaden","count":24},{"language":"en","tag":"Integration Guide","count":24},{"language":"es","tag":"Guía de integración","count":24},{"language":"fr","tag":"Guide d'intégration","count":24},{"language":"ja","tag":"統合ガイド","count":24},{"language":"ko","tag":"통합 가이드","count":24},{"language":"pt","tag":"Guia de integração","count":24},{"language":"zh-Hant","tag":"整合指南","count":24},{"language":"zh-Hans","tag":"模型能力","count":23},{"language":"de","tag":"Modellfähigkeiten","count":23},{"language":"en","tag":"Model Capabilities","count":23},{"language":"es","tag":"Capacidades del modelo","count":23},{"language":"fr","tag":"Capacités des modèles","count":23},{"language":"ja","tag":"モデル機能","count":23},{"language":"ko","tag":"모델 기능","count":23},{"language":"pt","tag":"Capacidades do modelo","count":23},{"language":"zh-Hant","tag":"模型能力","count":23},{"language":"zh-Hans","tag":"开始使用","count":17},{"language":"zh-Hans","tag":"协议参考","count":17},{"language":"ja","tag":"はじめに","count":17},{"language":"ko","tag":"시작하기","count":17},{"language":"zh-Hant","tag":"開始使用","count":17},{"language":"de","tag":"Protokoll-Referenz","count":16},{"language":"en","tag":"Protocol Reference","count":16},{"language":"es","tag":"Referencia de protocolo","count":16},{"language":"fr","tag":"Référence du protocole","count":16},{"language":"ja","tag":"プロトコルリファレンス","count":16},{"language":"ko","tag":"프로토콜 참조","count":16},{"language":"pt","tag":"Referência de protocolo","count":16},{"language":"zh-Hant","tag":"協定參考","count":16},{"language":"de","tag":"Chat-Clients","count":15},{"language":"en","tag":"Chat Clients","count":15},{"language":"es","tag":"Clientes de chat","count":15},{"language":"fr","tag":"Clients de chat","count":15},{"language":"ja","tag":"チャットクライアント","count":15},{"language":"ko","tag":"채팅 클라이언트","count":15},{"language":"pt","tag":"Clientes de chat","count":15},{"language":"zh-Hant","tag":"通用 Chat 客戶端","count":15},{"language":"zh-Hans","tag":"编程助手","count":14},{"language":"de","tag":"AIHubMix Unified API","count":14},{"language":"de","tag":"OpenAI Compatible","count":14},{"language":"en","tag":"AIHubMix Unified API","count":14},{"language":"es","tag":"AIHubMix Unified API","count":14},{"language":"es","tag":"OpenAI Compatible","count":14},{"language":"fr","tag":"AIHubMix Unified API","count":14},{"language":"fr","tag":"OpenAI Compatible","count":14},{"language":"pt","tag":"AIHubMix Unified API","count":14},{"language":"pt","tag":"OpenAI Compatible","count":14}]},"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":"workos-onboarding","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":"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":"brand.css","content":":root{--ahm-brand-logo: url('/logo/light.svg')}:root.dark{--ahm-brand-logo: url('/logo/dark.svg')}:root:is(:lang(cn),:lang(zh)){--ahm-brand-logo: url('/logo/zh-light.svg')}:root.dark:is(:lang(cn),:lang(zh)){--ahm-brand-logo: url('/logo/zh-dark.svg')}.nav-logo{content:var(--ahm-brand-logo);width:110px!important;height:24px!important;max-width:110px!important;padding:0!important;object-fit:contain;object-position:left center}footer a[href*=\"mintlify\"]{display:none!important}html[data-current-path$=\"/guides/aihubmix-score\"] table td{min-width:88px!important}.katex .katex-mathml{position:absolute;clip:rect(1px, 1px, 1px, 1px);padding:0;border:0;height:1px;width:1px;overflow:hidden}html[data-current-path$=\"/guides/aihubmix-score\"] .katex-display,html[data-current-path$=\"/guides/aihubmix-score\"] .katex-display>.katex{overflow:visible!important}@media (max-width: 560px){html[data-current-path$=\"/guides/aihubmix-score\"] .katex-display>.katex{font-size:0.90em}}@media (max-width: 480px){html[data-current-path$=\"/guides/aihubmix-score\"] .katex-display>.katex{font-size:0.78em}}"},{"filePath":"media-error-tables.css","content":".media-error-table [data-component-part=\"scroll-area-content\"]{min-width:592px!important;width:100%}@media (min-width: 1024px){.media-error-table [data-component-part=\"scroll-area-content\"]{min-width:100%!important}}.media-error-table table{table-layout:fixed}.media-error-table th,.media-error-table td{min-width:0!important;overflow-wrap:anywhere}.media-error-http th:nth-child(1){width:9%}.media-error-http th:nth-child(2){width:25%}.media-error-http th:nth-child(3),.media-error-http th:nth-child(4){width:33%}.media-error-task th:nth-child(1){width:26%}.media-error-task th:nth-child(2){width:38%}.media-error-task th:nth-child(3){width:36%}"}]}
{"page":{"pagePath":"en/api/CliEndpoints/delete-key","slug":"/en/api/CliEndpoints/delete-key","pageMetadata":{"title":"Delete KEY","image":"/og-image.webp","description":"Delete a KEY based on token_id","api":"DELETE /api/token/{token_id}","href":"/en/api/CliEndpoints/delete-key"},"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: \"Delete a KEY based on token_id\"\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={code:`code`,hr:`hr`,p:`p`,..._provideComponents(),...props.components},{Heading,ParamField,ResponseField}=_components;if(!Heading)_missingMdxReference(`Heading`,true);if(!ParamField)_missingMdxReference(`ParamField`,true);if(!ResponseField)_missingMdxReference(`ResponseField`,true);return _jsxs(_Fragment,{children:[_jsx(Heading,{level:`2`,id:`request-parameters`,children:`Request Parameters`}),`\n`,_jsx(Heading,{level:`3`,id:`request-headers`,children:`Request Headers`}),`\n`,_jsx(ResponseField,{type:`string`,required:true,children:_jsx(_components.p,{children:`Authentication for the request. This API uses the AIHubMix Manage Key for authentication.`})}),`\n`,_jsx(ResponseField,{type:`string`,children:_jsx(_components.p,{children:`The content type of the request. This parameter must be set to application/json.`})}),`\n`,_jsx(Heading,{level:`3`,id:`path-parameters`,children:`Path Parameters`}),`\n`,_jsx(ParamField,{path:`token_id`,type:`integer`,required:true,id:`param-token-id`,children:_jsx(_components.p,{children:`The ID of the KEY.`})}),`\n`,_jsx(Heading,{level:`2`,id:`response-parameters`,children:`Response Parameters`}),`\n`,_jsx(ResponseField,{name:`success`,type:`boolean`,id:`param-success`,children:_jsx(_components.p,{children:`Indicates whether the operation was successful.`})}),`\n`,_jsx(ResponseField,{name:`message`,type:`string`,id:`param-message`,children:_jsx(_components.p,{children:`Message information (may be empty). Returns the reason for failure if the request fails.`})}),`\n`,_jsx(ResponseField,{name:`data`,type:`object`,id:`param-data`,children:_jsxs(_components.p,{children:[`The result object of the deletion (as returned by the interface). May be an empty object `,_jsx(_components.code,{children:`{}`}),`.`]})}),`\n`,_jsx(_components.hr,{}),`\n`,_jsx(_components.p,{children:`Last updated: 2026-06-01`})]})}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":{"config":{},"pageMetadata":{"title":"Delete KEY","image":"/og-image.webp","description":"Delete a KEY based on token_id","api":"DELETE /api/token/{token_id}","href":"/en/api/CliEndpoints/delete-key"}}},"mdxSourceWithNoJs":null},"mdxExtracts":{"tableOfContents":[{"title":"Request Parameters","slug":"request-parameters","depth":2,"children":[{"title":"Request Headers","slug":"request-headers","depth":3,"children":[]},{"title":"Path Parameters","slug":"path-parameters","depth":3,"children":[]}]},{"title":"Response Parameters","slug":"response-parameters","depth":2,"children":[]}],"codeExamples":{},"endpoint":{"title":"Delete KEY","path":"/api/token/{token_id}","servers":[{"url":"https://aihubmix.com"},{"url":"https://api.inferera.com"}],"method":"delete","request":{"security":[{"title":"Bearer Auth","parameters":{"header":{"Authorization":{"type":"http","scheme":"bearer","description":"Bearer authentication header of the form `Bearer \u003ctoken>`, where `\u003ctoken>` is your auth token."}},"query":{},"cookie":{}}}],"parameters":{"query":{},"header":{},"cookie":{},"path":{"token_id":{"schema":[{"type":"integer","description":"The ID of the KEY.","required":true}]}}},"body":{}},"response":{"200":{"application/json":{"schemaArray":[{"type":"object","properties":{"success":[{"type":"boolean","description":"Indicates whether the operation was successful."}],"message":[{"type":"string","description":"Message information (may be empty). Returns the reason for failure if the request fails."}],"data":[{"type":"object","properties":{},"description":"The result object of the deletion (as returned by the interface). May be an empty object `{}` ."}]}}],"examples":{"example":{"value":{"success":true,"message":"\u003cstring>","data":{}}}}}}},"deprecated":false}},"jsLinks":[],"subdomain":"aihubmix","siteName":"AIHubMix","title":"Delete KEY - AIHubMix","navMaps":{"firstHrefInVersion":{},"firstHrefInLanguage":{"zh-Hans":{"href":"/cn/api/CliEndpoints/delete-key","matchLevel":1},"en":{"href":"/en/api/CliEndpoints/delete-key","matchLevel":0},"ja":{"href":"/jp/api/CliEndpoints/delete-key","matchLevel":1},"ko":{"href":"/ko/api/CliEndpoints/delete-key","matchLevel":1},"zh-Hant":{"href":"/zh-Hant/api/CliEndpoints/delete-key","matchLevel":1},"fr":{"href":"/fr/api/CliEndpoints/delete-key","matchLevel":1},"de":{"href":"/de/api/CliEndpoints/delete-key","matchLevel":1},"es":{"href":"/es/api/CliEndpoints/delete-key","matchLevel":1},"pt":{"href":"/pt/api/CliEndpoints/delete-key","matchLevel":1}}},"lastModified":"2026-06-01T16:32:28.813Z","originalFileLocation":"en/api/CliEndpoints/delete-key.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=\"description\" content=\"Delete a KEY based on token_id\">\u003cmeta data-mint-head name=\"keywords\" content=\"AI, documentation, AiHubMix, LLM, API, integration, developer, OpenAI, Claude, Gemini, Deepseek, Qwen, multimodal, image generation, text-to-speech, embeddings, reranking, video processing\">\u003cmeta data-mint-head name=\"application-name\" content=\"AIHubMix\">\u003cmeta data-mint-head name=\"generator\" content=\"Mintlify\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"192x192\" href=\"/mintlify-assets/_mintlify/favicons/aihubmix/oVt_FUKZRfRFWFpr/_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/aihubmix/oVt_FUKZRfRFWFpr/_generated/favicon/apple-touch-icon.png\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"16x16\" href=\"/mintlify-assets/_mintlify/favicons/aihubmix/oVt_FUKZRfRFWFpr/_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/aihubmix/oVt_FUKZRfRFWFpr/_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/aihubmix/oVt_FUKZRfRFWFpr/_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/aihubmix/oVt_FUKZRfRFWFpr/_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/aihubmix/oVt_FUKZRfRFWFpr/_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/aihubmix/oVt_FUKZRfRFWFpr/_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/aihubmix/oVt_FUKZRfRFWFpr/_generated/favicon-dark/favicon.ico\" media=\"(prefers-color-scheme: dark)\">\u003cmeta data-mint-head property=\"og:title\" content=\"Delete KEY - AIHubMix\">\u003cmeta data-mint-head property=\"og:description\" content=\"Unified API docs for OpenAI, Claude, Gemini, Deepseek, Qwen, and more. Integrate LLMs and multimodal AI with ease.\">\u003cmeta data-mint-head property=\"og:site_name\" content=\"AiHubMix\">\u003cmeta data-mint-head property=\"og:url\" content=\"https://docs.aihubmix.com/en/api/CliEndpoints/delete-key\">\u003cmeta data-mint-head property=\"og:type\" content=\"website\">\u003cmeta data-mint-head property=\"og:image\" content=\"https://assets.aihubmix.com/docs/og-image.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=\"Delete KEY - AIHubMix\">\u003cmeta data-mint-head name=\"twitter:description\" content=\"Unified API docs for OpenAI, Claude, Gemini, Deepseek, Qwen, and more. Integrate LLMs and multimodal AI with ease.\">\u003cmeta data-mint-head name=\"twitter:image\" content=\"https://assets.aihubmix.com/docs/og-image.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/aihubmix/oVt_FUKZRfRFWFpr/_generated/favicon/browserconfig.xml\">\u003cmeta data-mint-head name=\"apple-mobile-web-app-title\" content=\"AIHubMix\">\u003cmeta data-mint-head name=\"msapplication-TileColor\" content=\"#2563EB\">\u003cmeta data-mint-head name=\"charset\" content=\"UTF-8\">\u003cmeta data-mint-head name=\"viewport\" content=\"width=device-width, initial-scale=1.0\">\u003cmeta data-mint-head name=\"author\" content=\"AIHubMix\">\u003cmeta data-mint-head name=\"article:author\" content=\"AIHubMix\">\u003cmeta data-mint-head name=\"theme-color\" content=\"#2563EB\">\u003cmeta data-mint-head name=\"color-scheme\" content=\"light dark\">\u003cmeta data-mint-head name=\"referrer\" content=\"origin\">\u003cmeta data-mint-head name=\"distribution\" content=\"global\">\u003cmeta data-mint-head name=\"category\" content=\"Technology\">\u003cmeta data-mint-head name=\"apple-mobile-web-app-capable\" content=\"yes\">\u003cmeta data-mint-head name=\"application-name\" content=\"AiHubMix\">\u003cmeta data-mint-head name=\"google-site-verification\" content=\"O8gGkZVV1R0quPlvC2DKGS2J05Ab5D2VJ2jUFKUld_s\">\u003clink data-mint-head rel=\"canonical\" href=\"https://docs.aihubmix.com/en/api/CliEndpoints/delete-key\">\u003clink data-mint-head rel=\"alternate\" type=\"application/xml\" href=\"/sitemap.xml\">\u003clink data-mint-head rel=\"alternate\" type=\"text/markdown\" href=\"/en/api/CliEndpoints/delete-key.md\">\u003clink data-mint-head rel=\"alternate\" hreflang=\"en\" href=\"https://docs.aihubmix.com/en/api/CliEndpoints/delete-key\">\u003clink data-mint-head rel=\"alternate\" hreflang=\"zh-Hans\" href=\"https://docs.aihubmix.com/cn/api/CliEndpoints/delete-key\">\u003clink data-mint-head rel=\"alternate\" hreflang=\"ja\" href=\"https://docs.aihubmix.com/jp/api/CliEndpoints/delete-key\">\u003clink data-mint-head rel=\"alternate\" hreflang=\"ko\" href=\"https://docs.aihubmix.com/ko/api/CliEndpoints/delete-key\">\u003clink data-mint-head rel=\"alternate\" hreflang=\"zh-Hant\" href=\"https://docs.aihubmix.com/zh-Hant/api/CliEndpoints/delete-key\">\u003clink data-mint-head rel=\"alternate\" hreflang=\"fr\" href=\"https://docs.aihubmix.com/fr/api/CliEndpoints/delete-key\">\u003clink data-mint-head rel=\"alternate\" hreflang=\"de\" href=\"https://docs.aihubmix.com/de/api/CliEndpoints/delete-key\">\u003clink data-mint-head rel=\"alternate\" hreflang=\"es\" href=\"https://docs.aihubmix.com/es/api/CliEndpoints/delete-key\">\u003clink data-mint-head rel=\"alternate\" hreflang=\"pt\" href=\"https://docs.aihubmix.com/pt/api/CliEndpoints/delete-key\">\u003clink data-mint-head rel=\"alternate\" hreflang=\"x-default\" href=\"https://docs.aihubmix.com/cn/api/CliEndpoints/delete-key\">\u003cscript data-mint-head type=\"application/ld+json\">{\"@context\":\"https://schema.org\",\"@graph\":[{\"@type\":\"Organization\",\"@id\":\"https://docs.aihubmix.com/#organization\",\"name\":\"AIHubMix\",\"url\":\"https://docs.aihubmix.com\",\"logo\":{\"@type\":\"ImageObject\",\"url\":\"https://mintcdn.com/aihubmix/4M5Ijn4uterRbt_v/logo/light.svg?fit=max\u0026auto=format\u0026n=4M5Ijn4uterRbt_v\u0026q=85\u0026s=cfc912408caea6ea63a70c908855d80b\"}},{\"@type\":\"WebSite\",\"@id\":\"https://docs.aihubmix.com#website\",\"name\":\"AIHubMix\",\"url\":\"https://docs.aihubmix.com\",\"publisher\":{\"@id\":\"https://docs.aihubmix.com/#organization\"}},{\"@type\":\"WebPage\",\"@id\":\"https://docs.aihubmix.com/en/api/CliEndpoints/delete-key#webpage\",\"url\":\"https://docs.aihubmix.com/en/api/CliEndpoints/delete-key\",\"name\":\"Delete KEY\",\"description\":\"Delete a KEY based on token_id\",\"dateModified\":\"2026-06-01T16:32:28.813Z\",\"isPartOf\":{\"@id\":\"https://docs.aihubmix.com#website\"},\"breadcrumb\":{\"@id\":\"https://docs.aihubmix.com/en/api/CliEndpoints/delete-key#breadcrumb\"}},{\"@type\":\"BreadcrumbList\",\"@id\":\"https://docs.aihubmix.com/en/api/CliEndpoints/delete-key#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Platform API\",\"item\":\"https://docs.aihubmix.com/en/api/Models-API\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Delete KEY\",\"item\":\"https://docs.aihubmix.com/en/api/CliEndpoints/delete-key\"}]},{\"@type\":[\"TechArticle\",\"APIReference\"],\"@id\":\"https://docs.aihubmix.com/en/api/CliEndpoints/delete-key#apireference\",\"headline\":\"Delete KEY\",\"name\":\"Delete KEY\",\"description\":\"Delete a KEY based on token_id\",\"url\":\"https://docs.aihubmix.com/en/api/CliEndpoints/delete-key\",\"mainEntityOfPage\":{\"@id\":\"https://docs.aihubmix.com/en/api/CliEndpoints/delete-key#webpage\"},\"image\":\"https://assets.aihubmix.com/docs/og-image.webp\",\"dateModified\":\"2026-06-01T16:32:28.813Z\",\"publisher\":{\"@id\":\"https://docs.aihubmix.com/#organization\"},\"isPartOf\":{\"@id\":\"https://docs.aihubmix.com#website\"}}]}\u003c/script>\u003cscript data-mint-head type=\"application/ld+json\">{\"@context\":\"https://schema.org\",\"@type\":\"WebSite\",\"name\":\"AIHubMix\",\"publisher\":{\"@type\":\"Organization\",\"name\":\"AIHubMix\"},\"provider\":{\"@type\":\"Organization\",\"name\":\"Mintlify\",\"url\":\"https://mintlify.com\"}}\u003c/script>","agentPointerHref":"/en/api/CliEndpoints/delete-key.md","siteName":"AIHubMix","nav":{"global":null,"languages":[{"language":"zh-Hans","pages":[{"title":"zh-Hans","href":"/cn/api/CliEndpoints/delete-key"}]},{"language":"en","tabs":[{"tab":"Docs","pages":[{"title":"Docs","href":"/en"}]},{"tab":"API Reference","pages":[{"group":"Model Endpoints","pages":[{"group":"OpenAI Compatible","pages":[{"title":"Create a Chat Completion","deprecated":null,"version":null,"openapi":"/openapi.json post /v1/chat/completions","href":"/en/api-reference/openai-compatible/create-a-chat-completion"},{"title":"Create a Model Response","deprecated":null,"version":null,"openapi":"/openapi.json post /v1/responses","href":"/en/api-reference/openai-compatible/create-a-model-response"},{"title":"Create a Completion","deprecated":null,"version":null,"openapi":"/openapi.json post /v1/completions","href":"/en/api-reference/openai-compatible/create-a-completion"},{"title":"Create an Embedding","deprecated":null,"version":null,"openapi":"/openapi.json post /v1/embeddings","href":"/en/api-reference/openai-compatible/create-an-embedding"},{"title":"Generate Images","deprecated":null,"version":null,"openapi":"/openapi.json post /v1/images/generations","href":"/en/api-reference/openai-compatible/generate-images"},{"title":"Create a Video","deprecated":null,"version":null,"openapi":"/openapi.json post /v1/videos","href":"/en/api-reference/openai-compatible/create-a-video"},{"title":"Retrieve a Video","deprecated":null,"version":null,"openapi":"/openapi.json get /v1/videos/{video_id}","href":"/en/api-reference/openai-compatible/retrieve-a-video"},{"title":"Delete a Video","deprecated":null,"version":null,"openapi":"/openapi.json delete /v1/videos/{video_id}","href":"/en/api-reference/openai-compatible/delete-a-video"},{"title":"Download Video Content","deprecated":null,"version":null,"openapi":"/openapi.json get /v1/videos/{video_id}/content","href":"/en/api-reference/openai-compatible/download-video-content"},{"title":"Remix a Video","deprecated":null,"version":null,"openapi":"/openapi.json post /v1/videos/{video_id}/remix","href":"/en/api-reference/openai-compatible/remix-a-video"},{"title":"Create Speech","deprecated":null,"version":null,"openapi":"/openapi.json post /v1/audio/speech","href":"/en/api-reference/openai-compatible/create-speech"},{"title":"Create Transcription","deprecated":null,"version":null,"openapi":"/openapi.json post /v1/audio/transcriptions","href":"/en/api-reference/openai-compatible/create-transcription"},{"title":"Create Translation","deprecated":null,"version":null,"openapi":"/openapi.json post /v1/audio/translations","href":"/en/api-reference/openai-compatible/create-translation"},{"title":"Create Moderation","deprecated":null,"version":null,"openapi":"/openapi.json post /v1/moderations","href":"/en/api-reference/openai-compatible/create-moderation"}]},{"group":"Anthropic Compatible","pages":[{"title":"Create a Message","deprecated":null,"version":null,"openapi":"/openapi.json post /v1/messages","href":"/en/api-reference/anthropic-compatible/create-a-message"}]},{"group":"Google Vertex AI Compatible","pages":[{"title":"Generate Content","deprecated":null,"version":null,"openapi":"/openapi.json post /gemini/v1beta/models/{model}:generateContent","href":"/en/api-reference/google-vertex-ai-compatible/generate-content"}]},{"group":"AIHubMix Unified API","pages":[{"title":"Create an AIHubMix image generation","deprecated":null,"version":null,"openapi":"/openapi.json post /ai/v1/images/generations","href":"/en/api-reference/aihubmix-unified-api/create-an-aihubmix-image-generation"},{"title":"List AIHubMix image tasks","deprecated":null,"version":null,"openapi":"/openapi.json get /ai/v1/images","href":"/en/api-reference/aihubmix-unified-api/list-aihubmix-image-tasks"},{"title":"Get an AIHubMix image task","deprecated":null,"version":null,"openapi":"/openapi.json get /ai/v1/images/{id}","href":"/en/api-reference/aihubmix-unified-api/get-an-aihubmix-image-task"},{"title":"Download an AIHubMix image result","deprecated":null,"version":null,"openapi":"/openapi.json get /ai/v1/images/{id}/content/{result_id}","href":"/en/api-reference/aihubmix-unified-api/download-an-aihubmix-image-result"},{"title":"List AIHubMix video tasks","deprecated":null,"version":null,"openapi":"/openapi.json get /ai/v1/videos","href":"/en/api-reference/aihubmix-unified-api/list-aihubmix-video-tasks"},{"title":"Create an AIHubMix video task","deprecated":null,"version":null,"openapi":"/openapi.json post /ai/v1/videos","href":"/en/api-reference/aihubmix-unified-api/create-an-aihubmix-video-task"},{"title":"Get an AIHubMix video task","deprecated":null,"version":null,"openapi":"/openapi.json get /ai/v1/videos/{id}","href":"/en/api-reference/aihubmix-unified-api/get-an-aihubmix-video-task"},{"title":"Download an AIHubMix video","deprecated":null,"version":null,"openapi":"/openapi.json get /ai/v1/videos/{id}/content","href":"/en/api-reference/aihubmix-unified-api/download-an-aihubmix-video"},{"title":"List unified AIHubMix tasks","deprecated":null,"version":null,"openapi":"/openapi.json get /ai/v1/tasks","href":"/en/api-reference/aihubmix-unified-api/list-unified-aihubmix-tasks"},{"title":"Get a unified AIHubMix task","deprecated":null,"version":null,"openapi":"/openapi.json get /ai/v1/tasks/{id}","href":"/en/api-reference/aihubmix-unified-api/get-a-unified-aihubmix-task"},{"title":"Get the primary unified task result","deprecated":null,"version":null,"openapi":"/openapi.json get /ai/v1/tasks/{id}/content","href":"/en/api-reference/aihubmix-unified-api/get-the-primary-unified-task-result"},{"title":"Get a specific unified task result","deprecated":null,"version":null,"openapi":"/openapi.json get /ai/v1/tasks/{id}/content/{result_id}","href":"/en/api-reference/aihubmix-unified-api/get-a-specific-unified-task-result"},{"title":"List models with media request Schemas","deprecated":null,"version":null,"openapi":"/openapi.json get /api/v1/models","href":"/en/api-reference/aihubmix-unified-api/list-models-with-media-request-schemas"},{"title":"Get a model's supported endpoints and request Schemas","deprecated":null,"version":null,"openapi":"/openapi.json get /call/schema/models/{model}/endpoints","href":"/en/api-reference/aihubmix-unified-api/get-a-models-supported-endpoints-and-request-schemas"}]}]},{"group":"Platform API","pages":[{"title":"Model Management API","api":"GET /api/v1/models","href":"/en/api/Models-API"},{"title":"Current User Info","api":"GET /api/user/self","href":"/en/api/CliEndpoints/get-self"},{"title":"Get KEY List","api":"GET /api/token/","href":"/en/api/CliEndpoints/list-keys"},{"title":"Create New KEY","api":"POST /api/token/","href":"/en/api/CliEndpoints/create-key"},{"title":"Update KEY","api":"PUT /api/token/","href":"/en/api/CliEndpoints/update-key"},{"title":"Retrieve Single KEY Details","description":"Get detailed information about a KEY based on token_id","api":"GET /api/token/{token_id}","href":"/en/api/CliEndpoints/get-key"},{"title":"Delete KEY","api":"DELETE /api/token/{token_id}","href":"/en/api/CliEndpoints/delete-key"},{"title":"Search KEY","description":"Search for KEY using keyword","api":"GET /api/token/search","href":"/en/api/CliEndpoints/search-keys"},{"title":"Obtain User KEY","api":"GET /api/user/token","href":"/en/api/CliEndpoints/get-user-token"},{"title":"Available Models","api":"GET /api/user/available_models","href":"/en/api/CliEndpoints/available-models"},{"title":"LLM Router Model Scope","api":"GET /api/router/leaderboard","href":"/en/api/RouterEndpoints/leaderboard"},{"title":"Model Vendor Icons","api":"GET /api/router/vendors","href":"/en/api/RouterEndpoints/vendors"}]}]},{"tab":"Integration Guide","pages":[{"title":"Integration Guide","href":"/en/api/Third-PartyIntegrationTechnicalGuide"}]},{"tab":"Apps","pages":[{"title":"Apps","href":"/en/clients/Cherry-Studio"}]},{"tab":"Cloud Agent","pages":[{"title":"Cloud Agent","href":"/en/cloud"}]},{"tab":"Blog","pages":[{"title":"Blog","href":"/en/blogs/kimi-k3-guide"}]},{"tab":"Changelog","pages":[{"title":"Changelog","href":"/en/update/News"}]}]},{"language":"ja","pages":[{"title":"ja","href":"/jp/api/CliEndpoints/delete-key"}]},{"language":"ko","pages":[{"title":"ko","href":"/ko/api/CliEndpoints/delete-key"}]},{"language":"zh-Hant","pages":[{"title":"zh-Hant","href":"/zh-Hant/api/CliEndpoints/delete-key"}]},{"language":"fr","pages":[{"title":"fr","href":"/fr/api/CliEndpoints/delete-key"}]},{"language":"de","pages":[{"title":"de","href":"/de/api/CliEndpoints/delete-key"}]},{"language":"es","pages":[{"title":"es","href":"/es/api/CliEndpoints/delete-key"}]},{"language":"pt","pages":[{"title":"pt","href":"/pt/api/CliEndpoints/delete-key"}]}]},"basePath":"","title":"Delete KEY - AIHubMix","deploymentId":"dpl_vSEmv961Ncyvz1psVwgUnTXQMSYk","buildId":"dpl_vSEmv961Ncyvz1psVwgUnTXQMSYk","dynamics":["c2aa737661","b0f84f53ff","2b790eda92"],"chunks":["OpenApiReferenceProvider-CrDfRf61.js","snippetPresets-Dv-cOUrx.js","utils-BUTreAgv.js","style-to-object-BY3JEAdk.js","utils-wsznt9RM.js","v4-DIgz8zy6.js","addUniqueKeysToSchema-DEsMlaPy.js","conditional-requirements-CFM0id0Q.js","cloneDeep-DontW4xJ.js","_Uint8Array-pP7X6_RM.js","isObject-FP1Yky1u.js","Page-Cr9IwkK7.js","CodeSnippet-eoRjC4Le.js","DynamicMarkdown-NFqqduU7.js","SectionHeading-DQ-mJoAt.js","icon-DXTBUt6s.js","ApiExamples-CU_aGGP0.js","usePlaygroundInputsStore-7dNmUIbS.js","shallow-fTtruD8x.js","isEqual-BRfNFpSD.js","CodeSnippets-52884wUJ.js","getApiPlaygroundDisplay-CZyAPlR2.js","MethodPill-2v-b3js5.js","getPastedJson-v_8Y1_4v.js","DuplicateIcon-DXIkhZIo.js","createIcon-DRpYuPZs.js","axios-CsQoIw0U.js"]}