Authenticate System API requests and convert account and API-key quota units.
Overview
The System API manages resources in your MixRoute account, including API keys, Smart Routing keys, and wallet operations. It is separate from the model inference API.
Purpose
Base URL
Credential
Account and key management
https://api.mixroute.ai
System access token
Model inference
https://api.mixroute.ai/v1
API key beginning with sk-
A system access token grants account-level management access. Never place it in browser code, mobile applications, logs, or source control.
Get a system access token
Open Account Settings → API Access in the MixRoute Console, then generate and copy a system access token. Store it in a secrets manager.
GET /api/user/token generates a new system access token. It is a rotation operation, not a read operation, and invalidates the previous token. Do not call it during routine automation.
The user ID must belong to the system access token. Authentication failures do not use a single HTTP status: missing credentials or a user-ID mismatch can return HTTP 401, while an invalid access token currently returns HTTP 200 with success: false. Always check both the HTTP status and the response envelope.Use this request to verify authentication without changing account data:
curl -fsS "$BASE_URL/api/user/self" \ -H "Authorization: Bearer $ACCESS_TOKEN" \ -H "New-Api-User: $USER_ID" \ | jq -e ' if .success == true then .data else error(.message // "authentication failed") end '
Response envelope
Most System API endpoints use this envelope:
{ "success": true, "message": "", "data": {}}
Some validation and authentication failures return HTTP 200 with success: false, so check both the HTTP status and the success field.
Do not assume that a group available to another account is available to yours. The default group is suitable for most examples in this guide.
Security checklist
Keep the system access token server-side.
Use a dedicated account or token for automation.
Never log reveal-endpoint responses.
Give each API key a clear name, expiration, quota, and IP restriction where possible.
Rotate by creating a replacement first, then disable and delete the old key after traffic moves.
{"docsConfig":{"theme":"mint","$schema":"https://mintlify.com/docs.json","name":"MixRoute","colors":{"primary":"#7B1FA2","light":"#9C27B0","dark":"#7B1FA2"},"logo":{"light":"https://mintcdn.com/personal-a5418d9f/gmsYcyD3CEVDrHlx/logo/mixroute_logo_light.svg?fit=max\u0026auto=format\u0026n=gmsYcyD3CEVDrHlx\u0026q=85\u0026s=265a1a46d074895bd39b660678e01cd8","dark":"https://mintcdn.com/personal-a5418d9f/gmsYcyD3CEVDrHlx/logo/mixroute_logo_dark.svg?fit=max\u0026auto=format\u0026n=gmsYcyD3CEVDrHlx\u0026q=85\u0026s=98fd320a3e678bc64086c7d2f0dc84c1","href":"https://mixroute.ai/"},"favicon":"https://mintcdn.com/personal-a5418d9f/gmsYcyD3CEVDrHlx/mixroute.svg?fit=max\u0026auto=format\u0026n=gmsYcyD3CEVDrHlx\u0026q=85\u0026s=0f5f32b1b26993bc7cedaee3e45d2eb0","api":{"mdx":{"server":"https://api.mixroute.ai"}},"navbar":{"links":[],"primary":{"type":"button","label":"Get Started","href":"https://console.mixroute.ai"}},"footer":{"socials":{}},"seo":{"metatags":{"canonical":"https://mixroute.ai/docs"}},"integrations":{"gtm":{"tagId":"GTM-W54W5KHJ"}},"styling":{"latex":false},"navigation":{"languages":[{"language":"en","default":true,"href":"introduction"},{"language":"zh-Hans","href":"zh-Hans/introduction"},{"language":"zh-Hant","href":"zh-Hant/introduction"},{"language":"ja","href":"ja/introduction"}]}},"deployment":{"deploymentMetadataValue":{"subdomain":"personal-a5418d9f","hasAudioNarration":false,"actualSubdomain":"personal-a5418d9f","customDomains":["mixroute.ai"],"gitSource":{"type":"github","owner":"cherish-cherry","repo":"mixroute-docs","deployBranch":"main","contentDirectory":"","isPrivate":true,"mountPath":"","label":""},"feedback":{"thumbs":false},"entitlements":{},"buildId":"6afa7d41f20ad22eaaee0a07","clientVersion":"0.0.4143","searchFilterCounts":[{"language":"en","tag":"Home","count":263},{"language":"ja","tag":"ホーム","count":263},{"language":"zh-Hans","tag":"首页","count":263},{"language":"zh-Hant","tag":"首頁","count":263},{"language":"en","tag":"Model Introduction","count":245},{"language":"ja","tag":"モデル紹介","count":245},{"language":"zh-Hans","tag":"模型介绍","count":245},{"language":"zh-Hant","tag":"模型介紹","count":245},{"language":"en","tag":"OpenAI","count":58},{"language":"ja","tag":"OpenAI","count":58},{"language":"zh-Hans","tag":"OpenAI","count":58},{"language":"zh-Hant","tag":"OpenAI","count":58},{"language":"en","tag":"API Reference","count":44},{"language":"ja","tag":"APIリファレンス","count":44},{"language":"zh-Hans","tag":"API 手册","count":44},{"language":"zh-Hant","tag":"API 手冊","count":44},{"language":"en","tag":"Google","count":36},{"language":"ja","tag":"Google","count":36},{"language":"zh-Hans","tag":"Google","count":36},{"language":"zh-Hant","tag":"Google","count":36},{"language":"en","tag":"Alibaba","count":26},{"language":"ja","tag":"Alibaba","count":26},{"language":"zh-Hans","tag":"Alibaba","count":26},{"language":"zh-Hant","tag":"Alibaba","count":26},{"language":"en","tag":"Zhipu","count":24},{"language":"ja","tag":"Zhipu","count":24},{"language":"zh-Hans","tag":"Zhipu","count":24},{"language":"zh-Hant","tag":"Zhipu","count":24},{"language":"en","tag":"xAI","count":20},{"language":"ja","tag":"xAI","count":20},{"language":"zh-Hans","tag":"xAI","count":20},{"language":"zh-Hant","tag":"xAI","count":20},{"language":"en","tag":"Integrations","count":18},{"language":"ja","tag":"連携","count":18},{"language":"zh-Hans","tag":"开发工具 \u0026 平台","count":18},{"language":"zh-Hant","tag":"開發工具 \u0026 平台","count":18},{"language":"en","tag":"Anthropic","count":16},{"language":"ja","tag":"Anthropic","count":16},{"language":"zh-Hans","tag":"Anthropic","count":16},{"language":"zh-Hant","tag":"Anthropic","count":16}]},"assistantConfig":{"enableAskAiButton":false,"enableStarterQuestions":false,"enableContextualStarterQuestions":false,"enableAskAiSearchBar":true},"basePath":"/docs","hasChatPermissions":false,"hasWebMcpPermissions":false,"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":"llms-txt-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false}],"googleFontsInlined":false},"customCss":[{"filePath":"style.css","content":"header img,#navbar img,[class*=\"logo\"] img,[class*=\"Logo\"] img,a[href=\"/\"] img,a[href=\"/cn\"] img,a[href=\"/en\"] img,a[href=\"/zh-Hant\"] img{max-height:32px!important;height:32px!important;width:auto!important}.card,[class*=\"Card\"]{position:relative!important;background-color:#f5f5f7!important;border:none!important;overflow:visible!important}.card::before,[class*=\"Card\"]::before{content:\"\";position:absolute;inset:-2px;border-radius:14px;z-index:-1;padding:2px;background:linear-gradient(135deg, #ff8a65 0%, #e91e63 35%, #9c27b0 70%, #673ab7 100%);-webkit-mask:linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);mask:linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);-webkit-mask-composite:xor;mask-composite:exclude}html.dark .card,html.dark [class*=\"Card\"],.dark .card,.dark [class*=\"Card\"],[data-theme=\"dark\"] .card,[data-theme=\"dark\"] [class*=\"Card\"]{background-color:#2d2d2d!important;color:#e5e5e5}html.dark .card::before,html.dark [class*=\"Card\"]::before,.dark .card::before,.dark [class*=\"Card\"]::before,[data-theme=\"dark\"] .card::before,[data-theme=\"dark\"] [class*=\"Card\"]::before{background:linear-gradient(135deg, #ff9a56 0%, #ff6b9d 35%, #c44dff 70%, #6b7aff 100%)}html.dark .card a,html.dark [class*=\"Card\"] a,.dark .card a,.dark [class*=\"Card\"] a,[data-theme=\"dark\"] .card a,[data-theme=\"dark\"] [class*=\"Card\"] a{color:#a78bfa}html.dark #content img[src=\"https://cdn.jsdelivr.net/npm/@lobehub/icons-static-svg@1.91.0/icons/openai.svg\"],html.dark #content img[src=\"https://cdn.jsdelivr.net/npm/@lobehub/icons-static-svg@1.91.0/icons/grok.svg\"]{filter:invert(1)}"}],"page":{"pagePath":"api-reference/system-api/authentication-and-quota","slug":"/api-reference/system-api/authentication-and-quota","pageMetadata":{"title":"Authentication and Quota","sidebarTitle":"Authentication and Quota","description":"Authenticate System API requests and convert account and API-key quota units.","icon":{"name":"shield-keyhole","library":"lucide"},"og:title":"Authentication and Quota API Reference - MixRoute","href":"/api-reference/system-api/authentication-and-quota"},"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: \"Authenticate System API requests and convert account and API-key quota units.\"\n });\n}\nfunction MDXContent(props = {}) {\n const {wrapper: MDXLayout} = {\n ..._provideComponents(),\n ...props.components\n };\n return MDXLayout ? _jsx(MDXLayout, {\n ...props,\n children: _jsx(_createMdxContent, {\n ...props\n })\n }) : _createMdxContent(props);\n}\nreturn {\n default: MDXContent\n};\n","frontmatter":{},"scope":{}},"pageType":"default","mdx":{"mdxSource":{"compiledSource":"\"use strict\";const{Fragment:_Fragment,jsx:_jsx,jsxs:_jsxs}=arguments[0];const{useMDXComponents:_provideComponents}=arguments[0];function _createMdxContent(props){const _components={a:`a`,code:`code`,li:`li`,p:`p`,pre:`pre`,span:`span`,strong:`strong`,tbody:`tbody`,td:`td`,th:`th`,thead:`thead`,tr:`tr`,ul:`ul`,..._provideComponents(),...props.components},{CodeBlock,Heading,Note,Table,Warning}=_components;if(!CodeBlock)_missingMdxReference(`CodeBlock`,true);if(!Heading)_missingMdxReference(`Heading`,true);if(!Note)_missingMdxReference(`Note`,true);if(!Table)_missingMdxReference(`Table`,true);if(!Warning)_missingMdxReference(`Warning`,true);return _jsxs(_Fragment,{children:[_jsx(Heading,{level:`2`,id:`overview`,children:`Overview`}),`\n`,_jsx(_components.p,{children:`The System API manages resources in your MixRoute account, including API keys, Smart Routing keys, and wallet operations. It is separate from the model inference API.`}),`\n`,_jsxs(Table,{children:[_jsx(_components.thead,{children:_jsxs(_components.tr,{children:[_jsx(_components.th,{children:`Purpose`}),_jsx(_components.th,{children:`Base URL`}),_jsx(_components.th,{children:`Credential`})]})}),_jsxs(_components.tbody,{children:[_jsxs(_components.tr,{children:[_jsx(_components.td,{children:`Account and key management`}),_jsx(_components.td,{children:_jsx(_components.code,{children:`https://api.mixroute.ai`})}),_jsx(_components.td,{children:`System access token`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:`Model inference`}),_jsx(_components.td,{children:_jsx(_components.code,{children:`https://api.mixroute.ai/v1`})}),_jsxs(_components.td,{children:[`API key beginning with `,_jsx(_components.code,{children:`sk-`})]})]})]})]}),`\n`,_jsx(Warning,{children:_jsx(_components.p,{children:`A system access token grants account-level management access. Never place it in browser code, mobile applications, logs, or source control.`})}),`\n`,_jsx(Heading,{level:`2`,id:`get-a-system-access-token`,children:`Get a system access token`}),`\n`,_jsxs(_components.p,{children:[`Open `,_jsx(_components.strong,{children:`Account Settings → API Access`}),` in the `,_jsx(_components.a,{href:`https://console.mixroute.ai/settings`,children:`MixRoute Console`}),`, then generate and copy a system access token. Store it in a secrets manager.`]}),`\n`,_jsx(Warning,{children:_jsxs(_components.p,{children:[_jsx(_components.code,{children:`GET /api/user/token`}),` generates a new system access token. It is a rotation operation, not a read operation, and invalidates the previous token. Do not call it during routine automation.`]})}),`\n`,_jsx(_components.p,{children:`Set the values used by the examples:`}),`\n`,_jsx(CodeBlock,{filename:``,numberOfLines:`3`,language:`shellscript`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`shellscript`,children:_jsxs(_components.code,{language:`shellscript`,numberOfLines:`3`,children:[_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:`export`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` BASE_URL`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:`=`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"https://api.mixroute.ai\"`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:`export`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` ACCESS_TOKEN`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:`=`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"YOUR_SYSTEM_ACCESS_TOKEN\"`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:`export`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` USER_ID`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:`=`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"YOUR_NUMERIC_USER_ID\"`})]}),`\n`]})})}),`\n`,_jsx(_components.p,{children:`The numeric user ID is shown in the account settings page.`}),`\n`,_jsx(Heading,{level:`2`,id:`authentication-headers`,children:`Authentication headers`}),`\n`,_jsx(_components.p,{children:`Every protected System API request requires both headers:`}),`\n`,_jsx(CodeBlock,{filename:``,numberOfLines:`2`,language:`http`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`http`,children:_jsxs(_components.code,{language:`http`,numberOfLines:`2`,children:[_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#569CD6`},children:`Authorization`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:`:`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` Bearer YOUR_SYSTEM_ACCESS_TOKEN`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#569CD6`},children:`New-Api-User`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:`:`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` YOUR_NUMERIC_USER_ID`})]}),`\n`]})})}),`\n`,_jsx(_components.p,{children:`For requests with a JSON body, also send:`}),`\n`,_jsx(CodeBlock,{filename:``,numberOfLines:`1`,language:`http`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`http`,children:_jsxs(_components.code,{language:`http`,numberOfLines:`1`,children:[_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#569CD6`},children:`Content-Type`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:`:`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` application/json`})]}),`\n`]})})}),`\n`,_jsxs(_components.p,{children:[`The user ID must belong to the system access token. Authentication failures do not use a single HTTP status: missing credentials or a user-ID mismatch can return HTTP `,_jsx(_components.code,{children:`401`}),`, while an invalid access token currently returns HTTP `,_jsx(_components.code,{children:`200`}),` with `,_jsx(_components.code,{children:`success: false`}),`. Always check both the HTTP status and the response envelope.`]}),`\n`,_jsx(_components.p,{children:`Use this request to verify authentication without changing account data:`}),`\n`,_jsx(CodeBlock,{filename:``,numberOfLines:`8`,language:`shellscript`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`shellscript`,children:_jsxs(_components.code,{language:`shellscript`,numberOfLines:`8`,children:[_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#DCDCAA`},children:`curl`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:` -fsS`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`$BASE_URL`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`/api/user/self\"`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D7BA7D`},children:` \\\\`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:` -H`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"Authorization: Bearer `}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`$ACCESS_TOKEN`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D7BA7D`},children:` \\\\`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:` -H`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"New-Api-User: `}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`$USER_ID`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D7BA7D`},children:` \\\\`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:` |`}),_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#DCDCAA`},children:` jq`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:` -e`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` '`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` if .success == true then .data`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` else error(.message // \"authentication failed\")`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` end`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` '`})}),`\n`]})})}),`\n`,_jsx(Heading,{level:`2`,id:`response-envelope`,children:`Response envelope`}),`\n`,_jsx(_components.p,{children:`Most System API endpoints use this envelope:`}),`\n`,_jsx(CodeBlock,{filename:``,numberOfLines:`5`,language:`json`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`json`,children:_jsxs(_components.code,{language:`json`,numberOfLines:`5`,children:[_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`{`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"success\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:`true`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"message\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"data\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: {}`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`}`})}),`\n`]})})}),`\n`,_jsxs(_components.p,{children:[`Some validation and authentication failures return HTTP `,_jsx(_components.code,{children:`200`}),` with `,_jsx(_components.code,{children:`success: false`}),`, so check both the HTTP status and the `,_jsx(_components.code,{children:`success`}),` field.`]}),`\n`,_jsx(CodeBlock,{filename:``,numberOfLines:`8`,language:`shellscript`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`shellscript`,children:_jsxs(_components.code,{language:`shellscript`,numberOfLines:`8`,children:[_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`response`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:`=`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`$(`}),_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#DCDCAA`},children:`curl`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:` -fsS`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`$BASE_URL`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`/api/user/self/groups\"`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D7BA7D`},children:` \\\\`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:` -H`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"Authorization: Bearer `}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`$ACCESS_TOKEN`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D7BA7D`},children:` \\\\`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:` -H`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"New-Api-User: `}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`$USER_ID`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`)`})]}),`\n`,_jsx(_components.span,{className:`line`}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#DCDCAA`},children:`jq`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:` -e`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` '.success == true'`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:` \u003c\u003c\u003c`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`$response`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:` >`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`/dev/null`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:` ||`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` {`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#DCDCAA`},children:` jq`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:` -r`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` '.message // \"System API request failed\"'`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:` \u003c\u003c\u003c`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`$response`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:` >\u00262`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#DCDCAA`},children:` exit`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#B5CEA8`},children:` 1`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`}`})}),`\n`]})})}),`\n`,_jsx(Heading,{level:`2`,id:`quota-units`,children:`Quota units`}),`\n`,_jsx(_components.p,{children:`Account quota and API-key quota are stored in internal quota units, not directly in USD. Read the current conversion from the public status endpoint:`}),`\n`,_jsx(CodeBlock,{filename:``,numberOfLines:`6`,language:`shellscript`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`shellscript`,children:_jsxs(_components.code,{language:`shellscript`,numberOfLines:`6`,children:[_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`quota_per_unit`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:`=`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`$(`}),_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#DCDCAA`},children:`curl`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:` -fsS`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`$BASE_URL`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`/api/status\"`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D7BA7D`},children:` \\\\`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:` |`}),_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#DCDCAA`},children:` jq`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:` -er`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` '.data.quota_per_unit'`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`)`})]}),`\n`,_jsx(_components.span,{className:`line`}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`usd_amount`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:`=`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`20`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`internal_quota`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:`=`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`$((`}),_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#DCDCAA`},children:`usd_amount`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:` *`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` quota_per_unit`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`))`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#DCDCAA`},children:`printf`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` 'Quota for $%s: %s\\\\n'`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`$usd_amount`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`$internal_quota`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"`})]}),`\n`]})})}),`\n`,_jsx(_components.p,{children:`Use these formulas:`}),`\n`,_jsx(CodeBlock,{filename:``,numberOfLines:`3`,language:`text`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`text`,children:_jsxs(_components.code,{language:`text`,numberOfLines:`3`,children:[_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{children:`internal quota = USD amount × quota_per_unit`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{children:`USD amount = internal quota ÷ quota_per_unit`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{})})]})})}),`\n`,_jsx(Note,{children:_jsxs(_components.p,{children:[_jsx(_components.code,{children:`quota_per_unit`}),` is deployment configuration and can change. Retrieve it instead of hard-coding the current value.`]})}),`\n`,_jsx(Heading,{level:`3`,id:`account-balance-versus-key-quota`,children:`Account balance versus key quota`}),`\n`,_jsxs(_components.ul,{children:[`\n`,_jsxs(_components.li,{children:[`Account balance (`,_jsx(_components.code,{children:`GET /api/user/self`}),`, field `,_jsx(_components.code,{children:`quota`}),`) is the wallet balance available to the account.`]}),`\n`,_jsxs(_components.li,{children:[`Key quota (`,_jsx(_components.code,{children:`remain_quota`}),`) is a spending ceiling for one API key.`]}),`\n`,_jsx(_components.li,{children:`Assigning a key quota does not transfer funds out of the wallet.`}),`\n`,_jsxs(_components.li,{children:[_jsx(_components.code,{children:`unlimited_quota: true`}),` removes the key-level ceiling, but requests still consume account balance.`]}),`\n`]}),`\n`,_jsx(_components.p,{children:`Read and display the current account balance:`}),`\n`,_jsx(CodeBlock,{filename:``,numberOfLines:`12`,language:`shellscript`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`shellscript`,children:_jsxs(_components.code,{language:`shellscript`,numberOfLines:`12`,children:[_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`user`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:`=`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`$(`}),_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#DCDCAA`},children:`curl`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:` -fsS`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`$BASE_URL`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`/api/user/self\"`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D7BA7D`},children:` \\\\`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:` -H`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"Authorization: Bearer `}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`$ACCESS_TOKEN`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D7BA7D`},children:` \\\\`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:` -H`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"New-Api-User: `}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`$USER_ID`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`)`})]}),`\n`,_jsx(_components.span,{className:`line`}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`quota_per_unit`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:`=`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`$(`}),_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#DCDCAA`},children:`curl`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:` -fsS`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`$BASE_URL`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`/api/status\"`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D7BA7D`},children:` \\\\`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:` |`}),_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#DCDCAA`},children:` jq`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:` -er`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` '.data.quota_per_unit'`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`)`})]}),`\n`,_jsx(_components.span,{className:`line`}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#DCDCAA`},children:`jq`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:` --argjson`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` unit`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`$quota_per_unit`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` '{`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` user_id: .data.id,`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` internal_quota: .data.quota,`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` balance_usd: (.data.quota / $unit)`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`}'`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:` \u003c\u003c\u003c`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`$user`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"`})]}),`\n`]})})}),`\n`,_jsx(Heading,{level:`2`,id:`available-groups`,children:`Available groups`}),`\n`,_jsx(_components.p,{children:`Use the account-specific group list when creating a key:`}),`\n`,_jsx(CodeBlock,{filename:``,numberOfLines:`3`,language:`shellscript`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`shellscript`,children:_jsxs(_components.code,{language:`shellscript`,numberOfLines:`3`,children:[_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#DCDCAA`},children:`curl`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:` -fsS`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`$BASE_URL`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`/api/user/self/groups\"`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D7BA7D`},children:` \\\\`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:` -H`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"Authorization: Bearer `}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`$ACCESS_TOKEN`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D7BA7D`},children:` \\\\`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:` -H`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"New-Api-User: `}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`$USER_ID`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:` |`}),_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#DCDCAA`},children:` jq`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` '.data'`})]}),`\n`]})})}),`\n`,_jsxs(_components.p,{children:[`Do not assume that a group available to another account is available to yours. The `,_jsx(_components.code,{children:`default`}),` group is suitable for most examples in this guide.`]}),`\n`,_jsx(Heading,{level:`2`,id:`security-checklist`,children:`Security checklist`}),`\n`,_jsxs(_components.ul,{children:[`\n`,_jsx(_components.li,{children:`Keep the system access token server-side.`}),`\n`,_jsx(_components.li,{children:`Use a dedicated account or token for automation.`}),`\n`,_jsx(_components.li,{children:`Never log reveal-endpoint responses.`}),`\n`,_jsx(_components.li,{children:`Give each API key a clear name, expiration, quota, and IP restriction where possible.`}),`\n`,_jsx(_components.li,{children:`Rotate by creating a replacement first, then disable and delete the old key after traffic moves.`}),`\n`]})]})}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":"Authentication and Quota","sidebarTitle":"Authentication and Quota","description":"Authenticate System API requests and convert account and API-key quota units.","icon":{"name":"shield-keyhole","library":"lucide"},"og:title":"Authentication and Quota API Reference - MixRoute","href":"/api-reference/system-api/authentication-and-quota"}}},"mdxSourceWithNoJs":null},"mdxExtracts":{"tableOfContents":[{"title":"Overview","slug":"overview","depth":2,"children":[]},{"title":"Get a system access token","slug":"get-a-system-access-token","depth":2,"children":[]},{"title":"Authentication headers","slug":"authentication-headers","depth":2,"children":[]},{"title":"Response envelope","slug":"response-envelope","depth":2,"children":[]},{"title":"Quota units","slug":"quota-units","depth":2,"children":[{"title":"Account balance versus key quota","slug":"account-balance-versus-key-quota","depth":3,"children":[]}]},{"title":"Available groups","slug":"available-groups","depth":2,"children":[]},{"title":"Security checklist","slug":"security-checklist","depth":2,"children":[]}],"codeExamples":{}},"jsLinks":[],"subdomain":"personal-a5418d9f","siteName":"MixRoute","title":"Authentication and Quota API Reference - MixRoute","navMaps":{"firstHrefInVersion":{},"firstHrefInLanguage":{"en":{"href":"/api-reference/system-api/authentication-and-quota","matchLevel":0},"zh-Hans":{"href":"/zh-Hans/api-reference/system-api/authentication-and-quota","matchLevel":1},"zh-Hant":{"href":"/zh-Hant/api-reference/system-api/authentication-and-quota","matchLevel":1},"ja":{"href":"/ja/api-reference/system-api/authentication-and-quota","matchLevel":1}}},"lastModified":"2026-11-16T03:01:26.940Z","originalFileLocation":"api-reference/system-api/authentication-and-quota.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=\"Authenticate System API requests and convert account and API-key quota units.\">\u003cmeta data-mint-head name=\"application-name\" content=\"MixRoute\">\u003cmeta data-mint-head name=\"generator\" content=\"Mintlify\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"192x192\" href=\"/docs/mintlify-assets/_mintlify/favicons/personal-a5418d9f/dv2IYF4xw-oEMCIM/_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=\"/docs/mintlify-assets/_mintlify/favicons/personal-a5418d9f/dv2IYF4xw-oEMCIM/_generated/favicon/apple-touch-icon.png\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"16x16\" href=\"/docs/mintlify-assets/_mintlify/favicons/personal-a5418d9f/dv2IYF4xw-oEMCIM/_generated/favicon/favicon-16x16.png\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"32x32\" href=\"/docs/mintlify-assets/_mintlify/favicons/personal-a5418d9f/dv2IYF4xw-oEMCIM/_generated/favicon/favicon-32x32.png\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"shortcut icon\" type=\"image/x-icon\" href=\"/docs/mintlify-assets/_mintlify/favicons/personal-a5418d9f/dv2IYF4xw-oEMCIM/_generated/favicon/favicon.ico\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"192x192\" href=\"/docs/mintlify-assets/_mintlify/favicons/personal-a5418d9f/dv2IYF4xw-oEMCIM/_generated/favicon-dark/android-chrome-192x192.png\" media=\"(prefers-color-scheme: dark)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"16x16\" href=\"/docs/mintlify-assets/_mintlify/favicons/personal-a5418d9f/dv2IYF4xw-oEMCIM/_generated/favicon-dark/favicon-16x16.png\" media=\"(prefers-color-scheme: dark)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"32x32\" href=\"/docs/mintlify-assets/_mintlify/favicons/personal-a5418d9f/dv2IYF4xw-oEMCIM/_generated/favicon-dark/favicon-32x32.png\" media=\"(prefers-color-scheme: dark)\">\u003clink data-mint-head rel=\"shortcut icon\" type=\"image/x-icon\" href=\"/docs/mintlify-assets/_mintlify/favicons/personal-a5418d9f/dv2IYF4xw-oEMCIM/_generated/favicon-dark/favicon.ico\" media=\"(prefers-color-scheme: dark)\">\u003cmeta data-mint-head property=\"og:title\" content=\"Authentication and Quota API Reference - MixRoute\">\u003cmeta data-mint-head property=\"og:description\" content=\"Authenticate System API requests and convert account and API-key quota units.\">\u003cmeta data-mint-head property=\"og:site_name\" content=\"MixRoute\">\u003cmeta data-mint-head property=\"og:url\" content=\"https://mixroute.ai/docs/api-reference/system-api/authentication-and-quota\">\u003cmeta data-mint-head property=\"og:type\" content=\"website\">\u003cmeta data-mint-head property=\"og:image\" content=\"https://personal-a5418d9f.mintlify.site/docs/_mintlify/api/og/v2?division=System+API\u0026amp;title=Authentication+and+Quota\u0026amp;description=Authenticate+System+API+requests+and+convert+account+and+API-key+quota+units.\u0026amp;theme=4006ee24882b0e4bcca4d898\u0026amp;signature=2cb38c63d952d735a483ada8e9094dc1d567d7e267c45db7d36a344b5ded66c7\">\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=\"Authentication and Quota API Reference - MixRoute\">\u003cmeta data-mint-head name=\"twitter:description\" content=\"Authenticate System API requests and convert account and API-key quota units.\">\u003cmeta data-mint-head name=\"twitter:image\" content=\"https://personal-a5418d9f.mintlify.site/docs/_mintlify/api/og/v2?division=System+API\u0026amp;title=Authentication+and+Quota\u0026amp;description=Authenticate+System+API+requests+and+convert+account+and+API-key+quota+units.\u0026amp;theme=4006ee24882b0e4bcca4d898\u0026amp;signature=2cb38c63d952d735a483ada8e9094dc1d567d7e267c45db7d36a344b5ded66c7\">\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=\"/docs/mintlify-assets/_mintlify/favicons/personal-a5418d9f/dv2IYF4xw-oEMCIM/_generated/favicon/browserconfig.xml\">\u003cmeta data-mint-head name=\"apple-mobile-web-app-title\" content=\"MixRoute\">\u003cmeta data-mint-head name=\"msapplication-TileColor\" content=\"#7B1FA2\">\u003clink data-mint-head rel=\"canonical\" href=\"https://mixroute.ai/docs/api-reference/system-api/authentication-and-quota\">\u003clink data-mint-head rel=\"alternate\" type=\"application/xml\" href=\"/docs/sitemap.xml\">\u003clink data-mint-head rel=\"alternate\" type=\"text/markdown\" href=\"/docs/api-reference/system-api/authentication-and-quota.md\">\u003clink data-mint-head rel=\"alternate\" hreflang=\"en\" href=\"https://mixroute.ai/docs/api-reference/system-api/authentication-and-quota\">\u003clink data-mint-head rel=\"alternate\" hreflang=\"zh-Hans\" href=\"https://mixroute.ai/docs/zh-Hans/api-reference/system-api/authentication-and-quota\">\u003clink data-mint-head rel=\"alternate\" hreflang=\"zh-Hant\" href=\"https://mixroute.ai/docs/zh-Hant/api-reference/system-api/authentication-and-quota\">\u003clink data-mint-head rel=\"alternate\" hreflang=\"ja\" href=\"https://mixroute.ai/docs/ja/api-reference/system-api/authentication-and-quota\">\u003clink data-mint-head rel=\"alternate\" hreflang=\"x-default\" href=\"https://mixroute.ai/docs/api-reference/system-api/authentication-and-quota\">\u003cscript data-mint-head type=\"application/ld+json\">{\"@context\":\"https://schema.org\",\"@graph\":[{\"@type\":\"Organization\",\"@id\":\"https://mixroute.ai/#organization\",\"name\":\"MixRoute\",\"url\":\"https://mixroute.ai\",\"logo\":{\"@type\":\"ImageObject\",\"url\":\"https://mintcdn.com/personal-a5418d9f/gmsYcyD3CEVDrHlx/logo/mixroute_logo_light.svg?fit=max\u0026auto=format\u0026n=gmsYcyD3CEVDrHlx\u0026q=85\u0026s=265a1a46d074895bd39b660678e01cd8\"}},{\"@type\":\"WebSite\",\"@id\":\"https://mixroute.ai/docs#website\",\"name\":\"MixRoute\",\"url\":\"https://mixroute.ai/docs\",\"publisher\":{\"@id\":\"https://mixroute.ai/#organization\"}},{\"@type\":\"WebPage\",\"@id\":\"https://mixroute.ai/docs/api-reference/system-api/authentication-and-quota#webpage\",\"url\":\"https://mixroute.ai/docs/api-reference/system-api/authentication-and-quota\",\"name\":\"Authentication and Quota\",\"description\":\"Authenticate System API requests and convert account and API-key quota units.\",\"dateModified\":\"2026-11-16T03:01:26.940Z\",\"isPartOf\":{\"@id\":\"https://mixroute.ai/docs#website\"},\"breadcrumb\":{\"@id\":\"https://mixroute.ai/docs/api-reference/system-api/authentication-and-quota#breadcrumb\"}},{\"@type\":\"BreadcrumbList\",\"@id\":\"https://mixroute.ai/docs/api-reference/system-api/authentication-and-quota#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"MixRoute\",\"item\":\"https://mixroute.ai/docs\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Authentication and Quota\",\"item\":\"https://mixroute.ai/docs/api-reference/system-api/authentication-and-quota\"}]},{\"@type\":[\"Article\",\"TechArticle\"],\"@id\":\"https://mixroute.ai/docs/api-reference/system-api/authentication-and-quota#article\",\"headline\":\"Authentication and Quota\",\"name\":\"Authentication and Quota\",\"description\":\"Authenticate System API requests and convert account and API-key quota units.\",\"url\":\"https://mixroute.ai/docs/api-reference/system-api/authentication-and-quota\",\"mainEntityOfPage\":{\"@id\":\"https://mixroute.ai/docs/api-reference/system-api/authentication-and-quota#webpage\"},\"dateModified\":\"2026-11-16T03:01:26.940Z\",\"publisher\":{\"@id\":\"https://mixroute.ai/#organization\"},\"isPartOf\":{\"@id\":\"https://mixroute.ai/docs#website\"}}]}\u003c/script>\u003cscript data-mint-head type=\"application/ld+json\">{\"@context\":\"https://schema.org\",\"@type\":\"WebSite\",\"name\":\"MixRoute\",\"publisher\":{\"@type\":\"Organization\",\"name\":\"MixRoute\"},\"provider\":{\"@type\":\"Organization\",\"name\":\"Mintlify\",\"url\":\"https://mintlify.com\"}}\u003c/script>","agentPointerHref":"/docs/api-reference/system-api/authentication-and-quota.md","siteName":"MixRoute","nav":{"global":null,"languages":[{"language":"en","default":true,"tabs":[{"tab":"Home","pages":[{"title":"Home","href":"/introduction"}]},{"tab":"API Reference","groups":[{"group":"Popular Models","pages":[{"title":"Popular Models","href":"/api-reference/models"}]},{"group":"OpenAI SDK Usage","pages":[{"title":"OpenAI SDK Usage","description":"Using official OpenAI SDK with MixRoute API","href":"/api-reference/openai-sdk"}]},{"group":"System API","icon":"server","pages":[{"title":"Authentication and Quota","sidebarTitle":"Authentication and Quota","icon":{"name":"shield-keyhole","library":"lucide"},"href":"/api-reference/system-api/authentication-and-quota"},{"title":"API Key Management","sidebarTitle":"API Key Management","description":"Create, find, reveal, update, disable, rotate, and delete API keys through the System API.","icon":{"name":"key","library":"lucide"},"href":"/api-reference/system-api/api-key-management"},{"title":"Smart Routing API","sidebarTitle":"Smart Routing API","icon":{"name":"route","library":"lucide"},"href":"/api-reference/system-api/smart-routing"},{"title":"Billing and Auto-Recharge","sidebarTitle":"Billing and Auto-Recharge","icon":"https://d3gk2c5xim1je2.cloudfront.net/fontawesome/v7.2.0/solid/wallet.svg","href":"/api-reference/system-api/billing-and-auto-recharge"},{"title":"User Logs \u0026 Usage Statistics","icon":{"name":"book-open","library":"lucide"},"api":"GET /api/log/self","hideApiMarker":true,"href":"/api-reference/endpoint/user-logs"}]},{"group":"Text Series","pages":[{"title":"Gemini Native (Text)","api":"POST /v1beta/models/{model}:generateContent","sidebarTitle":"Gemini Text","href":"/api-reference/endpoint/gemini-native"},{"title":"Chat Completions (OpenAI)","api":"POST /v1/chat/completions","sidebarTitle":"Chat Completions","href":"/api-reference/endpoint/chat-openai"},{"title":"Create Responses Request (OpenAI)","api":"POST /v1/responses","sidebarTitle":"Responses","href":"/api-reference/endpoint/responses-openai"},{"title":"Create Messages (Claude)","api":"POST /v1/messages","sidebarTitle":"Claude Messages","href":"/api-reference/endpoint/messages"},{"title":"Count Tokens (Claude)","api":"POST /v1/messages/count_tokens","sidebarTitle":"Claude Token Count","href":"/api-reference/endpoint/count-tokens"},{"title":"Document Reranking","sidebarTitle":"Rerank","api":"POST /v1/rerank","playground":"none","hidden":false,"href":"/api-reference/endpoint/rerank"}]},{"group":"Decision Models","icon":"list-check","pages":[{"title":"Jev Decisions","sidebarTitle":"Jev Decisions","api":"POST /typesafe/v1/systemone","playground":"none","href":"/api-reference/endpoint/jev"},{"title":"OpenAI Decisions API","sidebarTitle":"OpenAI Decisions","api":"POST /v1/decisions","playground":"none","href":"/api-reference/endpoint/decisions"},{"title":"Google Decisions API","sidebarTitle":"Google Decisions","api":"POST /v1beta/decisions","playground":"none","href":"/api-reference/endpoint/google-decisions"}]},{"group":"Embedding Series","pages":[{"title":"Text Embeddings","api":"POST /v1/embeddings","sidebarTitle":"Text Embeddings","href":"/api-reference/endpoint/embeddings"},{"title":"Gemini Text Embedding (embedContent)","api":"POST /v1/models/{model}:embedContent","sidebarTitle":"Gemini Embeddings","href":"/api-reference/endpoint/gemini-embed-content"}]},{"group":"Image Series","pages":[{"title":"Image API Overview","api":"POST /v1/images/generations","sidebarTitle":"Overview","hideApiMarker":true,"playground":"none","href":"/api-reference/endpoint/image-generation"},{"title":"Seedream 5.5","sidebarTitle":"Seedream 5.5","api":"POST /v1/images/generations","playground":"none","href":"/api-reference/endpoint/seedream"},{"title":"GPT Image","sidebarTitle":"GPT Image","api":"POST /v1/images/generations","playground":"none","href":"/api-reference/endpoint/gpt-image"},{"title":"GPT Image Editing","sidebarTitle":"GPT Image Editing","api":"POST /v1/images/edits","playground":"none","href":"/api-reference/endpoint/gpt-image-edit"},{"title":"Grok Imagine","sidebarTitle":"Grok Imagine","api":"POST /v1/images/generations","playground":"none","href":"/api-reference/endpoint/grok-imagine-image"},{"title":"Grok Imagine Editing","sidebarTitle":"Grok Imagine Editing","api":"POST /v1/images/edits","playground":"none","href":"/api-reference/endpoint/grok-imagine-edit"},{"title":"Qwen Image","sidebarTitle":"Qwen Image","api":"POST /v1/images/generations","playground":"none","href":"/api-reference/endpoint/qwen-image"},{"title":"Qwen Image Editing","sidebarTitle":"Qwen Image Editing","api":"POST /v1/images/generations","playground":"none","href":"/api-reference/endpoint/qwen-image-edit"},{"title":"Gemini Native (Image)","api":"POST /v1/models/{model}:generateContent","sidebarTitle":"Gemini Images","playground":"none","href":"/api-reference/endpoint/nano-banana"},{"title":"Gemini Native (Image, Streaming)","api":"POST /v1/models/{model}:streamGenerateContent","sidebarTitle":"Gemini Image Stream","playground":"none","href":"/api-reference/endpoint/nano-banana-stream"}]},{"group":"Video Series","pages":[{"title":"Video API Overview","api":"POST /v1/video/generations","sidebarTitle":"Overview","hideApiMarker":true,"href":"/api-reference/endpoint/submit-video-task"},{"title":"Seedance","sidebarTitle":"Seedance","api":"POST /v1/video/generations","playground":"none","href":"/api-reference/endpoint/seedance"},{"title":"Doubao","sidebarTitle":"Doubao","api":"POST /v1/video/generations","playground":"none","href":"/api-reference/endpoint/doubao"},{"title":"Dreamina","sidebarTitle":"Dreamina","api":"POST /v1/video/generations","playground":"none","href":"/api-reference/endpoint/dreamina"},{"title":"Wan","sidebarTitle":"Wan","api":"POST /v1/video/generations","playground":"none","href":"/api-reference/endpoint/wan"},{"title":"Veo","api":"POST /v1/video/generations","sidebarTitle":"Veo","playground":"none","href":"/api-reference/endpoint/veo"},{"title":"MiniMax H3","sidebarTitle":"MiniMax H3","api":"POST /v1/video/generations","playground":"none","href":"/api-reference/endpoint/minimax-h3"},{"group":"Kling","icon":"film","pages":[{"title":"Kling Overview","sidebarTitle":"Overview","href":"/api-reference/endpoint/kling"},{"title":"Kling Text to Video","sidebarTitle":"Text to Video","api":"POST /kling/text-to-video/{model}","playground":"none","href":"/api-reference/endpoint/kling-text-to-video"},{"title":"Kling Image to Video","sidebarTitle":"Image to Video","api":"POST /kling/image-to-video/{model}","playground":"none","href":"/api-reference/endpoint/kling-image-to-video"},{"title":"Kling Omni Generation and Editing","sidebarTitle":"Omni Generation and Editing","api":"POST /kling/omni-video/{model}","playground":"none","href":"/api-reference/endpoint/kling-omni-video"},{"title":"Kling Motion Control","sidebarTitle":"Motion Control","api":"POST /kling/motion-control/{model}","playground":"none","href":"/api-reference/endpoint/kling-motion-control"},{"title":"Query Kling Task","sidebarTitle":"Query Kling Task","api":"GET /kling/tasks","playground":"none","href":"/api-reference/endpoint/kling-tasks"}]},{"title":"Query Video Task","api":"GET /v1/video/generations/{task_id}","href":"/api-reference/endpoint/query-video-task"},{"title":"Download Video","api":"GET /v1/video/generations/download","href":"/api-reference/endpoint/download-video"}]},{"group":"Others","pages":[{"title":"List Models","api":"GET /v1/models","href":"/api-reference/endpoint/list-models"},{"title":"Gemini Live","api":"WSS /v1beta/models/{model}/liveStream","hidden":true,"href":"/api-reference/endpoint/gemini-live"}]}]},{"tab":"Smart Routing","pages":[{"title":"Smart Routing","href":"/api-reference/smart-routing"}]},{"tab":"Integrations","pages":[{"title":"Integrations","href":"/integrations/lobehub"}]},{"tab":"FAQ","pages":[{"title":"FAQ","href":"/faq/model-changing"}]}]},{"language":"zh-Hans","pages":[{"title":"zh-Hans","href":"/zh-Hans/api-reference/system-api/authentication-and-quota"}]},{"language":"zh-Hant","pages":[{"title":"zh-Hant","href":"/zh-Hant/api-reference/system-api/authentication-and-quota"}]},{"language":"ja","pages":[{"title":"ja","href":"/ja/api-reference/system-api/authentication-and-quota"}]}]},"basePath":"","title":"Authentication and Quota API Reference - MixRoute","buildId":"dpl_Aw98ji4XvBsgtZwL1VrkUF9ehFqz","deploymentId":"dpl_Aw98ji4XvBsgtZwL1VrkUF9ehFqz","dynamics":[],"chunks":[]}