{ "model": "gpt-4o-mini", "messages": [ { "role": "user", "content": "What is the meaning of life?" } ]}
请求参数
名称
位置
类型
必选
说明
Authorization
header
string
否
Bearer AIHUBMIX_API_KEY
Content-Type
header
string
否
none
body
body
object
否
none
返回示例:
200 Response
{ "id": "chatcmpl-AzJqsyf2h02BKjrqHMA1HVUQpiDfL", "model": "gpt-4o-mini", "object": "chat.completion", "created": 1739177682, "choices": [ { "index": 0, "message": { "role": "assistant", "content": "The meaning of life is a philosophical question that has been debated for centuries. Different people and cultures may have different beliefs about the purpose and significance of life. Some believe that the meaning of life is to seek happiness and fulfillment, while others believe in spiritual or religious meanings such as serving a higher power or fulfilling a destiny. Ultimately, the meaning of life may be a deeply personal and individual question that each person must answer for themselves." }, "finish_reason": "stop" } ], "system_fingerprint": "fp_0165350fbb", "usage": { "prompt_tokens": 14, "completion_tokens": 86, "total_tokens": 100 }}
返回结果
状态码
状态码含义
说明
数据模型
200
OK
none
Inline
更新时间:2026-06-01
⌘I
{"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":"6aed42716cc736dac014aecf","clientVersion":"0.0.4160","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":"de","tag":"API-Referenz","count":42},{"language":"en","tag":"API Reference","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":"ko","tag":"API 레퍼런스","count":42},{"language":"pt","tag":"Referência da API","count":42},{"language":"zh-Hant","tag":"API 參考","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":"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":"zh-Hans","tag":"通用 Chat 客户端","count":14},{"language":"zh-Hans","tag":"AIHubMix Unified API","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":"en","tag":"OpenAI Compatible","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":"ja","tag":"AIHubMix Unified API","count":14},{"language":"ja","tag":"OpenAI Compatible","count":14},{"language":"ko","tag":"AIHubMix Unified API","count":14},{"language":"ko","tag":"OpenAI Compatible","count":14},{"language":"pt","tag":"AIHubMix Unified API","count":14},{"language":"pt","tag":"OpenAI Compatible","count":14},{"language":"zh-Hant","tag":"AIHubMix Unified API","count":14},{"language":"zh-Hant","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":"llms-txt-v2","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":"cn/api/Aihubmix-Integration","slug":"/cn/api/Aihubmix-Integration","pageMetadata":{"title":"AIhubMix 一站式集成","image":"/og-image.webp","description":"了解 AIhubMix 的通用模型调用方式","href":"/cn/api/Aihubmix-Integration"},"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: \"了解 AIhubMix 的通用模型调用方式\"\n });\n}\nfunction MDXContent(props = {}) {\n const {wrapper: MDXLayout} = {\n ..._provideComponents(),\n ...props.components\n };\n return MDXLayout ? _jsx(MDXLayout, {\n ...props,\n children: _jsx(_createMdxContent, {\n ...props\n })\n }) : _createMdxContent(props);\n}\nreturn {\n default: MDXContent\n};\n","frontmatter":{},"scope":{}},"pageType":"default","mdx":{"mdxSource":{"compiledSource":"\"use strict\";const{Fragment:_Fragment,jsx:_jsx,jsxs:_jsxs}=arguments[0];const{useMDXComponents:_provideComponents}=arguments[0];function _createMdxContent(props){const _components={a:`a`,code:`code`,hr:`hr`,p:`p`,pre:`pre`,span:`span`,strong:`strong`,tbody:`tbody`,td:`td`,th:`th`,thead:`thead`,tr:`tr`,..._provideComponents(),...props.components},{CodeBlock,Heading,Info,Table,Tip}=_components;if(!CodeBlock)_missingMdxReference(`CodeBlock`,true);if(!Heading)_missingMdxReference(`Heading`,true);if(!Info)_missingMdxReference(`Info`,true);if(!Table)_missingMdxReference(`Table`,true);if(!Tip)_missingMdxReference(`Tip`,true);return _jsxs(_Fragment,{children:[_jsx(_components.p,{children:`AIHubMix 以 OpenAI 模型调用接口为标准,聚合了 OpenAI、谷歌 Gemini、Anthropic Claude 等多家主流大模型。通过统一的 API 接口,您可以无缝调用多个不同厂商的700➕模型。只需修改对应的 模型 ID,即可在同一套代码中切换使用 OpenAI、Gemini、Claude 等任意模型,无需学习和适配不同的调用协议。`}),`\n`,_jsx(Tip,{children:_jsxs(_components.p,{children:[`核心要点:只需要在 client 内部加入转发的 `,_jsx(_components.code,{children:`base_url`}),` 和 AIHubMix 平台的`,_jsx(_components.a,{href:`https://console.aihubmix.com/workspaces/default/keys`,children:`密钥`}),`。 模型 ID 可以在`,_jsx(_components.a,{href:`https://aihubmix.com/models`,children:`模型广场的卡片上`}),`点击「复制按钮」来获取。`]})}),`\n`,_jsx(Heading,{level:`2`,id:`基础集成:使用-openai-官方库`,children:`基础集成:使用 OpenAI 官方库`}),`\n`,_jsx(Heading,{level:`3`,id:`python-示例`,children:`Python 示例`}),`\n`,_jsx(CodeBlock,{filename:`Python`,numberOfLines:`18`,language:`python`,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:`python`,children:_jsxs(_components.code,{language:`python`,numberOfLines:`18`,children:[_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#C586C0`},children:`from`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` openai `}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#C586C0`},children:`import`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` OpenAI`})]}),`\n`,_jsx(_components.span,{className:`line`}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`client `}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:`=`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` OpenAI(`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#9CDCFE`},children:` api_key`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:`=`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"sk-***\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`, `}),_jsx(_components.span,{style:{color:`#6E7781`,\"--shiki-dark\":`#6A9955`},children:`# 换成你在 AiHubMix 生成的密钥`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#953800`,\"--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://aihubmix.com/v1\"`})]}),`\n`,_jsx(_components.span,{className:`line`,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\":`#D4D4D4`},children:`chat_completion `}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:`=`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` client.chat.completions.create(`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#9CDCFE`},children:` messages`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:`=`}),_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`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"role\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"user\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"content\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"Say this is a test\"`}),_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`,_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:`#953800`,\"--shiki-dark\":`#9CDCFE`},children:` model`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:`=`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"gpt-4o-mini\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`, `}),_jsx(_components.span,{style:{color:`#6E7781`,\"--shiki-dark\":`#6A9955`},children:`# 替换为任意支持的模型 ID`})]}),`\n`,_jsx(_components.span,{className:`line`,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:`#0550AE`,\"--shiki-dark\":`#DCDCAA`},children:`print`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`(chat_completion)`})]}),`\n`]})})}),`\n`,_jsx(Info,{children:_jsxs(_components.p,{children:[`OpenAI 官方当前服务状态 `,_jsx(_components.a,{href:`https://status.openai.com/`,children:`查询`})]})}),`\n`,_jsx(Heading,{level:`2`,id:`通用模型转发-api`,children:`通用模型转发 API`}),`\n`,_jsxs(_components.p,{children:[`端点(Endpoint): `,_jsx(_components.code,{children:`POST`}),` /v1/chat/completions`]}),`\n`,_jsx(_components.p,{children:_jsx(_components.strong,{children:`Body 请求参数:`})}),`\n`,_jsx(CodeBlock,{filename:``,numberOfLines:`9`,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:`9`,children:[_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`{`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"model\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"gpt-4o-mini\"`}),_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:` \"messages\"`}),_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`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"role\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"user\"`}),_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:` \"content\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"What is the meaning of life?\"`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_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`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`}`})}),`\n`]})})}),`\n`,_jsx(Heading,{level:`3`,id:`请求参数`,children:`请求参数`}),`\n`,_jsxs(Table,{children:[_jsx(_components.thead,{children:_jsxs(_components.tr,{children:[_jsx(_components.th,{children:`名称`}),_jsx(_components.th,{children:`位置`}),_jsx(_components.th,{children:`类型`}),_jsx(_components.th,{children:`必选`}),_jsx(_components.th,{children:`说明`})]})}),_jsxs(_components.tbody,{children:[_jsxs(_components.tr,{children:[_jsx(_components.td,{children:`Authorization`}),_jsx(_components.td,{children:`header`}),_jsx(_components.td,{children:`string`}),_jsx(_components.td,{children:`否`}),_jsx(_components.td,{children:`Bearer AIHUBMIX_API_KEY`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:`Content-Type`}),_jsx(_components.td,{children:`header`}),_jsx(_components.td,{children:`string`}),_jsx(_components.td,{children:`否`}),_jsx(_components.td,{children:`none`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:`body`}),_jsx(_components.td,{children:`body`}),_jsx(_components.td,{children:`object`}),_jsx(_components.td,{children:`否`}),_jsx(_components.td,{children:`none`})]})]})]}),`\n`,_jsx(_components.p,{children:_jsx(_components.strong,{children:`返回示例:`})}),`\n`,_jsx(CodeBlock,{filename:``,numberOfLines:`1`,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:`1`,children:[_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#B5CEA8`},children:`200`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` Response`})]}),`\n`]})})}),`\n`,_jsx(CodeBlock,{filename:``,numberOfLines:`22`,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:`22`,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:` \"id\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"chatcmpl-AzJqsyf2h02BKjrqHMA1HVUQpiDfL\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"model\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"gpt-4o-mini\"`}),_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:` \"object\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"chat.completion\"`}),_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:` \"created\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#B5CEA8`},children:`1739177682`}),_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:` \"choices\"`}),_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`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"index\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#B5CEA8`},children:`0`}),_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:`: {`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"role\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"assistant\"`}),_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:` \"content\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"The meaning of life is a philosophical question that has been debated for centuries. Different people and cultures may have different beliefs about the purpose and significance of life. Some believe that the meaning of life is to seek happiness and fulfillment, while others believe in spiritual or religious meanings such as serving a higher power or fulfilling a destiny. Ultimately, the meaning of life may be a deeply personal and individual question that each person must answer for themselves.\"`})]}),`\n`,_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:` \"finish_reason\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"stop\"`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_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`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"system_fingerprint\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"fp_0165350fbb\"`}),_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:` \"usage\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: {`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"prompt_tokens\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#B5CEA8`},children:`14`}),_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:` \"completion_tokens\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#B5CEA8`},children:`86`}),_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:` \"total_tokens\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#B5CEA8`},children:`100`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_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`,_jsx(Heading,{level:`3`,id:`返回结果`,children:`返回结果`}),`\n`,_jsxs(Table,{children:[_jsx(_components.thead,{children:_jsxs(_components.tr,{children:[_jsx(_components.th,{children:`状态码`}),_jsx(_components.th,{children:`状态码含义`}),_jsx(_components.th,{children:`说明`}),_jsx(_components.th,{children:`数据模型`})]})}),_jsx(_components.tbody,{children:_jsxs(_components.tr,{children:[_jsx(_components.td,{\"data-numeric\":`true`,children:`200`}),_jsx(_components.td,{children:`OK`}),_jsx(_components.td,{children:`none`}),_jsx(_components.td,{children:`Inline`})]})})]}),`\n`,_jsx(_components.hr,{}),`\n`,_jsx(_components.p,{children:`更新时间: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":"AIhubMix 一站式集成","image":"/og-image.webp","description":"了解 AIhubMix 的通用模型调用方式","href":"/cn/api/Aihubmix-Integration"}}},"mdxSourceWithNoJs":null},"mdxExtracts":{"tableOfContents":[{"title":"基础集成:使用 OpenAI 官方库","slug":"基础集成:使用-openai-官方库","depth":2,"children":[{"title":"Python 示例","slug":"python-示例","depth":3,"children":[]}]},{"title":"通用模型转发 API","slug":"通用模型转发-api","depth":2,"children":[{"title":"请求参数","slug":"请求参数","depth":3,"children":[]},{"title":"返回结果","slug":"返回结果","depth":3,"children":[]}]}],"codeExamples":{}},"jsLinks":[],"subdomain":"aihubmix","siteName":"AIHubMix","title":"AIhubMix 一站式集成 - AIHubMix","navMaps":{"firstHrefInVersion":{},"firstHrefInLanguage":{"zh-Hans":{"href":"/cn/api/Aihubmix-Integration","matchLevel":0},"en":{"href":"/en/api/Aihubmix-Integration","matchLevel":1},"ja":{"href":"/jp/api/Aihubmix-Integration","matchLevel":1},"ko":{"href":"/ko/api/Aihubmix-Integration","matchLevel":1},"zh-Hant":{"href":"/zh-Hant/api/Aihubmix-Integration","matchLevel":1},"fr":{"href":"/fr/api/Aihubmix-Integration","matchLevel":1},"de":{"href":"/de/api/Aihubmix-Integration","matchLevel":1},"es":{"href":"/es/api/Aihubmix-Integration","matchLevel":1},"pt":{"href":"/pt/api/Aihubmix-Integration","matchLevel":1}}},"lastModified":"2026-10-30T06:16:22.884Z","originalFileLocation":"cn/api/Aihubmix-Integration.mdx","locale":"zh-Hans"},"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=\"了解 AIhubMix 的通用模型调用方式\">\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=\"AIhubMix 一站式集成 - 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/cn/api/Aihubmix-Integration\">\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=\"AIhubMix 一站式集成 - 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/cn/api/Aihubmix-Integration\">\u003clink data-mint-head rel=\"alternate\" type=\"application/xml\" href=\"/sitemap.xml\">\u003clink data-mint-head rel=\"alternate\" type=\"text/markdown\" href=\"/cn/api/Aihubmix-Integration.md\">\u003clink data-mint-head rel=\"alternate\" hreflang=\"zh-Hans\" href=\"https://docs.aihubmix.com/cn/api/Aihubmix-Integration\">\u003clink data-mint-head rel=\"alternate\" hreflang=\"en\" href=\"https://docs.aihubmix.com/en/api/Aihubmix-Integration\">\u003clink data-mint-head rel=\"alternate\" hreflang=\"ja\" href=\"https://docs.aihubmix.com/jp/api/Aihubmix-Integration\">\u003clink data-mint-head rel=\"alternate\" hreflang=\"ko\" href=\"https://docs.aihubmix.com/ko/api/Aihubmix-Integration\">\u003clink data-mint-head rel=\"alternate\" hreflang=\"zh-Hant\" href=\"https://docs.aihubmix.com/zh-Hant/api/Aihubmix-Integration\">\u003clink data-mint-head rel=\"alternate\" hreflang=\"fr\" href=\"https://docs.aihubmix.com/fr/api/Aihubmix-Integration\">\u003clink data-mint-head rel=\"alternate\" hreflang=\"de\" href=\"https://docs.aihubmix.com/de/api/Aihubmix-Integration\">\u003clink data-mint-head rel=\"alternate\" hreflang=\"es\" href=\"https://docs.aihubmix.com/es/api/Aihubmix-Integration\">\u003clink data-mint-head rel=\"alternate\" hreflang=\"pt\" href=\"https://docs.aihubmix.com/pt/api/Aihubmix-Integration\">\u003clink data-mint-head rel=\"alternate\" hreflang=\"x-default\" href=\"https://docs.aihubmix.com/cn/api/Aihubmix-Integration\">\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/cn/api/Aihubmix-Integration#webpage\",\"url\":\"https://docs.aihubmix.com/cn/api/Aihubmix-Integration\",\"name\":\"AIhubMix 一站式集成\",\"description\":\"了解 AIhubMix 的通用模型调用方式\",\"dateModified\":\"2026-10-30T06:16:22.884Z\",\"isPartOf\":{\"@id\":\"https://docs.aihubmix.com#website\"},\"breadcrumb\":{\"@id\":\"https://docs.aihubmix.com/cn/api/Aihubmix-Integration#breadcrumb\"}},{\"@type\":\"BreadcrumbList\",\"@id\":\"https://docs.aihubmix.com/cn/api/Aihubmix-Integration#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"AIHubMix\",\"item\":\"https://docs.aihubmix.com\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"AIhubMix 一站式集成\",\"item\":\"https://docs.aihubmix.com/cn/api/Aihubmix-Integration\"}]},{\"@type\":[\"Article\",\"TechArticle\"],\"@id\":\"https://docs.aihubmix.com/cn/api/Aihubmix-Integration#article\",\"headline\":\"AIhubMix 一站式集成\",\"name\":\"AIhubMix 一站式集成\",\"description\":\"了解 AIhubMix 的通用模型调用方式\",\"url\":\"https://docs.aihubmix.com/cn/api/Aihubmix-Integration\",\"mainEntityOfPage\":{\"@id\":\"https://docs.aihubmix.com/cn/api/Aihubmix-Integration#webpage\"},\"image\":\"https://assets.aihubmix.com/docs/og-image.webp\",\"dateModified\":\"2026-10-30T06:16:22.884Z\",\"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":"/cn/api/Aihubmix-Integration.md","siteName":"AIHubMix","nav":{"global":null,"languages":[{"language":"zh-Hans","tabs":[{"tab":"文档","pages":[{"group":"开始使用","icon":"rocket-launch","pages":[{"title":"产品介绍","href":"/cn"},{"title":"快速开始","href":"/cn/quick-start"},{"title":"选择模型","href":"/cn/guides/choose-models"},{"title":"智能搜索","href":"/cn/guides/smart-search"},{"title":"模型详情与比较","href":"/cn/guides/model-details"},{"title":"Skills","href":"/cn/skills"},{"title":"Agent 接入","href":"/cn/agents"},{"title":"零数据存储说明","href":"/cn/api/Data-Pravicy"},{"title":"常见问题","href":"/cn/FAQs/Faq"},{"title":"HTTP 状态码","href":"/cn/FAQs/HTTP-Codes"},{"title":"Status","href":"/cn/api/Status"},{"title":"提交反馈","href":"/cn/FAQs/Feedback"}]},{"group":"控制台使用","icon":"gauge","pages":[{"title":"控制台概览","href":"/cn/console/overview"},{"title":"API Key 管理","href":"/cn/console/api-keys"},{"title":"用量看板","href":"/cn/console/usage"},{"title":"请求日志与排查","href":"/cn/console/request-logs"},{"title":"余额与账单","href":"/cn/console/billing"},{"title":"保存与管理付款方式","sidebarTitle":"付款方式","href":"/cn/console/payment-methods"},{"title":"自动充值","href":"/cn/console/auto-top-up"},{"title":"消息中心","href":"/cn/console/inbox"},{"title":"通知设置","href":"/cn/console/notifications"},{"title":"Webhook 通知接收设置","href":"/cn/console/notification-webhooks"}]},{"group":"企业与团队","icon":"users","pages":[{"title":"企业账户入门","href":"/cn/enterprise/overview"},{"title":"工作区管理","href":"/cn/enterprise/workspaces"},{"title":"成员与权限","href":"/cn/enterprise/members"},{"title":"成员 Key 与系统 Key","href":"/cn/enterprise/keys"},{"title":"预算与限额","href":"/cn/enterprise/budgets"},{"title":"审计记录","href":"/cn/enterprise/audit"}]},{"group":"网关能力","icon":"shuffle","pages":[{"title":"统一推理参数","href":"/cn/api/unified-inference"},{"title":"模型映射与回退","href":"/cn/api/Model-Mapping-Fallback"},{"title":"模型智能路由","href":"/cn/api/llm-router"},{"title":"结构化输出修复","href":"/cn/api/structured-output-repair"},{"title":"异步任务","href":"/cn/api/async-tasks"},{"title":"Broadcast","href":"/cn/api/Broadcast"}]},{"group":"模型能力","icon":"microchip","pages":[{"title":"图像理解","href":"/cn/api/vision"},{"title":"视频理解","href":"/cn/api/video-understanding"},{"title":"Gemini 新「智绘」","href":"/cn/api/Multimodal-Interaction-with-Gemini"},{"title":"LLM 联网搜索","href":"/cn/api/LLM-Search"},{"group":"图片生成接口","pages":[{"title":"图片生成","href":"/cn/api/aihubmix-image-generation"},{"title":"图片生成 OpenAI 兼容(遗留)","href":"/cn/api/Image-Gen"},{"title":"GPT Image","href":"/cn/api/GPT-Image-1"},{"title":"Ideogram AI 绘图支持","href":"/cn/api/IdeogramAI"}]},{"group":"视频生成接口","pages":[{"title":"视频生成","href":"/cn/api/aihubmix-video-generation"},{"title":"豆包真人素材使用指南","href":"/cn/api/doubao-real-person-assets"},{"title":"豆包私域虚拟人像素材使用指南","href":"/cn/api/doubao-virtual-portrait-assets"},{"title":"视频生成 OpenAI 兼容(遗留)","href":"/cn/api/Video-Gen"}]},{"title":"3D 生成接口","href":"/cn/api/3D-Gen"},{"title":"TTS 文本转语音","href":"/cn/api/TTS"},{"title":"STT 语音转文本","href":"/cn/api/STT"},{"title":"实时语音转录","href":"/cn/api/realtime-transcription"},{"title":"实时对话","href":"/cn/api/realtime-conversation"},{"title":"向量嵌入","href":"/cn/api/EBD"},{"title":"重排序","href":"/cn/api/Rerank"},{"title":"FIM 补全","href":"/cn/api/FIM"},{"title":"结构化输出","href":"/cn/api/Structured-Output"},{"title":"内容审查接口","href":"/cn/api/moderation"},{"title":"提示词缓存","description":null,"href":"/cn/practices/prompt-caching"}]},{"group":"协议参考","icon":"plug","pages":[{"title":"AIhubMix 一站式集成","href":"/cn/api/Aihubmix-Integration"},{"title":"Anthropic API 兼容(Beta)","description":null,"href":"/cn/api/Anthropic-Compatible"},{"title":"Claude 原生接口调用","href":"/cn/api/Claude-Native"},{"title":"Claude 提示词缓存","href":"/cn/api/Claude-Cache"},{"title":"GPT 提示词缓存","href":"/cn/api/GPT-Cache"},{"title":"Gemini 指南","href":"/cn/api/Gemini-Guides"},{"title":"Gemini 原生 SDK 接入","href":"/cn/api/Gemini-SDK"},{"title":"模型后缀能力说明","href":"/cn/api/Capability-Suffix"},{"title":"Openai Responses API 支持","href":"/cn/api/Responses-API"},{"group":"Responses API","pages":[{"title":"概述","href":"/cn/api/responses/overview"},{"title":"快速使用","href":"/cn/api/responses/Basic-Usage"},{"title":"推理","href":"/cn/api/responses/Reasoning"},{"title":"工具调用","href":"/cn/api/responses/Tool-Calling"}]},{"title":"阿里通义系列","href":"/cn/api/Qwen"},{"title":"Jina AI 集成","href":"/cn/api/Jina-AI"},{"title":"Dify 插件","href":"/cn/api/Dify-plugin"},{"title":"AIHubMix Provider Benchmark Standard v2.0","sidebarTitle":"AIHubMix Provider Benchmark","href":"/cn/guides/aihubmix-score"}]},{"group":"平台管理","icon":"building-shield","pages":[{"title":"管理密钥","href":"/cn/platform/management-keys"},{"title":"AIHubMix CLI(命令行工具)","href":"/cn/api/aihubmix-cli"},{"title":"构建 AI 共赢生态","href":"/cn/api/App-code"},{"title":"OpenAI 与 Grok 模型请求封号说明","href":"/cn/api/ban-notice"}]}]},{"tab":"API 参考","pages":[{"title":"API 参考","href":"/cn/api-reference/openai-compatible/create-a-chat-completion"}]},{"tab":"集成指南","pages":[{"title":"集成指南","href":"/cn/api/Third-PartyIntegrationTechnicalGuide"}]},{"tab":"应用集成","pages":[{"title":"应用集成","href":"/cn/clients/Cherry-Studio"}]},{"tab":"博客","pages":[{"title":"博客","href":"/cn/blogs/kimi-k3-guide"}]},{"tab":"更新日志","pages":[{"title":"更新日志","href":"/cn/update/News"}]}]},{"language":"en","pages":[{"title":"en","href":"/en/api/Aihubmix-Integration"}]},{"language":"ja","pages":[{"title":"ja","href":"/jp/api/Aihubmix-Integration"}]},{"language":"ko","pages":[{"title":"ko","href":"/ko/api/Aihubmix-Integration"}]},{"language":"zh-Hant","pages":[{"title":"zh-Hant","href":"/zh-Hant/api/Aihubmix-Integration"}]},{"language":"fr","pages":[{"title":"fr","href":"/fr/api/Aihubmix-Integration"}]},{"language":"de","pages":[{"title":"de","href":"/de/api/Aihubmix-Integration"}]},{"language":"es","pages":[{"title":"es","href":"/es/api/Aihubmix-Integration"}]},{"language":"pt","pages":[{"title":"pt","href":"/pt/api/Aihubmix-Integration"}]}]},"basePath":"","title":"AIhubMix 一站式集成 - AIHubMix","buildId":"dpl_GRSyrvXT6FFTpZZTGz5iZPp3D2zE","deploymentId":"dpl_GRSyrvXT6FFTpZZTGz5iZPp3D2zE","dynamics":[],"chunks":[]}