1:"$Sreact.fragment"
2:I[9766,[],""]
3:I[98924,[],""]
6:I[24431,[],"OutletBoundary"]
8:I[15278,[],"AsyncMetadataOutlet"]
a:I[24431,[],"ViewportBoundary"]
c:I[24431,[],"MetadataBoundary"]
d:"$Sreact.suspense"
f:I[57150,[],""]
:HL["/docs/_next/static/css/919b2710aa186ab3.css","style"]
:HL["/docs/_next/static/css/2d82b615fcca1590.css","style"]
0:{"P":null,"b":"rr_SHQDz5iIIw4y08NprU","p":"/docs","c":["","en","api"],"i":false,"f":[[["",{"children":[["locale","en","d"],{"children":[["mdxPath","api","oc"],{"children":["__PAGE__",{}]}]},"$undefined","$undefined",true]}],["",["$","$1","c",{"children":[null,["$","$L2",null,{"parallelRouterKey":"children","error":"$undefined","errorStyles":"$undefined","errorScripts":"$undefined","template":["$","$L3",null,{}],"templateStyles":"$undefined","templateScripts":"$undefined","notFound":[[["$","title",null,{"children":"404: This page could not be found."}],["$","div",null,{"style":{"fontFamily":"system-ui,\"Segoe UI\",Roboto,Helvetica,Arial,sans-serif,\"Apple Color Emoji\",\"Segoe UI Emoji\"","height":"100vh","textAlign":"center","display":"flex","flexDirection":"column","alignItems":"center","justifyContent":"center"},"children":["$","div",null,{"children":[["$","style",null,{"dangerouslySetInnerHTML":{"__html":"body{color:#000;background:#fff;margin:0}.next-error-h1{border-right:1px solid rgba(0,0,0,.3)}@media (prefers-color-scheme:dark){body{color:#fff;background:#000}.next-error-h1{border-right:1px solid rgba(255,255,255,.3)}}"}}],["$","h1",null,{"className":"next-error-h1","style":{"display":"inline-block","margin":"0 20px 0 0","padding":"0 23px 0 0","fontSize":24,"fontWeight":500,"verticalAlign":"top","lineHeight":"49px"},"children":404}],["$","div",null,{"style":{"display":"inline-block"},"children":["$","h2",null,{"style":{"fontSize":14,"fontWeight":400,"lineHeight":"49px","margin":0},"children":"This page could not be found."}]}]]}]}]],[]],"forbidden":"$undefined","unauthorized":"$undefined"}]]}],{"children":[["locale","en","d"],["$","$1","c",{"children":[[["$","link","0",{"rel":"stylesheet","href":"/docs/_next/static/css/919b2710aa186ab3.css","precedence":"next","crossOrigin":"$undefined","nonce":"$undefined"}],["$","link","1",{"rel":"stylesheet","href":"/docs/_next/static/css/2d82b615fcca1590.css","precedence":"next","crossOrigin":"$undefined","nonce":"$undefined"}]],"$L4"]}],{"children":[["mdxPath","api","oc"],["$","$1","c",{"children":[null,["$","$L2",null,{"parallelRouterKey":"children","error":"$undefined","errorStyles":"$undefined","errorScripts":"$undefined","template":["$","$L3",null,{}],"templateStyles":"$undefined","templateScripts":"$undefined","notFound":"$undefined","forbidden":"$undefined","unauthorized":"$undefined"}]]}],{"children":["__PAGE__",["$","$1","c",{"children":["$L5",null,["$","$L6",null,{"children":["$L7",["$","$L8",null,{"promise":"$@9"}]]}]]}],{},null,false]},null,false]},null,false]},null,false],["$","$1","h",{"children":[null,[["$","$La",null,{"children":"$Lb"}],null],["$","$Lc",null,{"children":["$","div",null,{"hidden":true,"children":["$","$d",null,{"fallback":null,"children":"$Le"}]}]}]]}],false]],"m":"$undefined","G":["$f",[]],"s":false,"S":true}
10:I[84511,["545","static/chunks/c16f53c3-586ea805d2f7b835.js","619","static/chunks/619-f072ac750404f9da.js","761","static/chunks/761-63001de2e5aab932.js","70","static/chunks/70-4a3d962982cd364b.js","870","static/chunks/870-fbaf108ffcb8663c.js","450","static/chunks/app/%5Blocale%5D/layout-b3c48a0dab2df1ff.js"],"DocsAnalytics"]
11:I[67057,["545","static/chunks/c16f53c3-586ea805d2f7b835.js","619","static/chunks/619-f072ac750404f9da.js","761","static/chunks/761-63001de2e5aab932.js","70","static/chunks/70-4a3d962982cd364b.js","870","static/chunks/870-fbaf108ffcb8663c.js","450","static/chunks/app/%5Blocale%5D/layout-b3c48a0dab2df1ff.js"],"SidebarScrollGuard"]
12:I[50451,["545","static/chunks/c16f53c3-586ea805d2f7b835.js","619","static/chunks/619-f072ac750404f9da.js","761","static/chunks/761-63001de2e5aab932.js","870","static/chunks/870-fbaf108ffcb8663c.js","344","static/chunks/app/%5Blocale%5D/%5B%5B...mdxPath%5D%5D/page-7673a69a0ef50613.js"],"ThemeConfigProvider"]
13:I[96149,["545","static/chunks/c16f53c3-586ea805d2f7b835.js","619","static/chunks/619-f072ac750404f9da.js","761","static/chunks/761-63001de2e5aab932.js","870","static/chunks/870-fbaf108ffcb8663c.js","344","static/chunks/app/%5Blocale%5D/%5B%5B...mdxPath%5D%5D/page-7673a69a0ef50613.js"],"LastUpdated"]
14:I[33405,["545","static/chunks/c16f53c3-586ea805d2f7b835.js","619","static/chunks/619-f072ac750404f9da.js","761","static/chunks/761-63001de2e5aab932.js","70","static/chunks/70-4a3d962982cd364b.js","870","static/chunks/870-fbaf108ffcb8663c.js","450","static/chunks/app/%5Blocale%5D/layout-b3c48a0dab2df1ff.js"],"Search"]
15:I[5379,["545","static/chunks/c16f53c3-586ea805d2f7b835.js","619","static/chunks/619-f072ac750404f9da.js","761","static/chunks/761-63001de2e5aab932.js","70","static/chunks/70-4a3d962982cd364b.js","870","static/chunks/870-fbaf108ffcb8663c.js","450","static/chunks/app/%5Blocale%5D/layout-b3c48a0dab2df1ff.js"],"ThemeProvider"]
16:I[57272,["545","static/chunks/c16f53c3-586ea805d2f7b835.js","619","static/chunks/619-f072ac750404f9da.js","761","static/chunks/761-63001de2e5aab932.js","870","static/chunks/870-fbaf108ffcb8663c.js","344","static/chunks/app/%5Blocale%5D/%5B%5B...mdxPath%5D%5D/page-7673a69a0ef50613.js"],"SkipNavLink"]
17:I[46810,["545","static/chunks/c16f53c3-586ea805d2f7b835.js","619","static/chunks/619-f072ac750404f9da.js","761","static/chunks/761-63001de2e5aab932.js","870","static/chunks/870-fbaf108ffcb8663c.js","344","static/chunks/app/%5Blocale%5D/%5B%5B...mdxPath%5D%5D/page-7673a69a0ef50613.js"],"ConfigProvider"]
4:["$","html",null,{"lang":"en","dir":"ltr","suppressHydrationWarning":true,"children":[["$","head",null,{"children":["$undefined",["$","style",null,{"children":":root {\n  --nextra-primary-hue: 212deg;\n  --nextra-primary-saturation: 100%;\n  --nextra-primary-lightness: 45%;\n  --nextra-bg: 250,250,250;\n  --nextra-content-width: 90rem;\n}\n.dark {\n  --nextra-primary-hue: 204deg;\n  --nextra-primary-saturation: 100%;\n  --nextra-primary-lightness: 55%;\n  --nextra-bg: 17,17,17;\n}\n::selection {\n  background: hsla(var(--nextra-primary-hue),var(--nextra-primary-saturation),var(--nextra-primary-lightness),.3);\n}\nhtml {\n  background: rgb(var(--nextra-bg));\n}"}],["$","meta",null,{"name":"theme-color","media":"(prefers-color-scheme: light)","content":"rgb(250,250,250)"}],["$","meta",null,{"name":"theme-color","media":"(prefers-color-scheme: dark)","content":"rgb(17,17,17)"}],"$undefined"]}],["$","body",null,{"children":[["$","$L10",null,{}],["$","$L11",null,{"children":["$","$L12",null,{"value":{"copyPageButton":true,"darkMode":true,"docsRepositoryBase":"https://github.com/d0r4emon/pohu-docs/tree/main","editLink":null,"feedback":{"content":null,"labels":"feedback"},"i18n":[],"lastUpdated":["$","$L13",null,{}],"navigation":{"next":true,"prev":true},"search":["$","$L14",null,{}],"sidebar":{"defaultMenuCollapseLevel":2,"defaultOpen":true,"toggleButton":true},"themeSwitch":{"dark":"Dark","light":"Light","system":"System"},"toc":{"backToTop":"Back to top","float":true,"title":"On this page"}},"children":["$","$L15",null,{"attribute":"class","defaultTheme":"system","disableTransitionOnChange":true,"storageKey":"theme","children":[["$","$L16",null,{}],"$undefined",["$","$L17",null,{"pageMap":[{"data":{"index":{"type":"page","title":"Home"},"develop":{"type":"page","title":"Docs"},"api":{"type":"page","title":"API"},"integrations":{"type":"page","title":"Integrations"},"models":{"title":"Models","href":"https://hao.ai/models","type":"page"},"console":{"title":"Console","href":"https://hao.ai/console/overview","type":"page"}}},{"name":"index","route":"/","frontMatter":{"title":"Documentation","description":"HaoAI Gateway docs for OpenAI-compatible, Anthropic, and SpaceXAI APIs. Use one HaoAI API key with protocol-specific Base URLs, quickstarts, and integration guides.","filePath":"content/en/index.mdx"},"title":"Home"},{"name":"develop","route":"/develop","children":[{"data":{"authentication":{"title":"Authentication"},"models":{"title":"Model Catalog"},"guides":{"title":"Guides"},"advanced":{"title":"Advanced Features"},"observability":{"title":"Observability"}}},{"name":"index","route":"/develop","frontMatter":{"title":"Quick Start","description":"Quick start guide for the HaoAI LLM Gateway â€” connect in minutes with OpenAI-compatible, Anthropic, and SpaceXAI protocol examples","filePath":"content/en/develop.mdx"},"title":"Quick Start"},{"name":"authentication","route":"/develop/authentication","frontMatter":{"title":"Authentication","description":"HaoAI API key setup and authentication â€” one unified key works across OpenAI-compatible, Anthropic, and SpaceXAI protocols. Manage keys in the console","filePath":"content/en/develop/authentication.mdx"},"title":"Authentication"},{"name":"models","route":"/develop/models","frontMatter":{"title":"Model Catalog","description":"HaoAI model catalog â€” browse leading global models with pricing, context window, and capability details. Filter by provider and query via the Models API","filePath":"content/en/develop/models.mdx"},"title":"Model Catalog"},{"name":"guides","route":"/develop/guides","children":[{"data":{"streaming":{"title":"Streaming"},"function-calling":{"title":"Function Calling"},"vision":{"title":"Vision"},"structured-output":{"title":"Structured Output"},"error-handling":{"title":"Error Handling"},"rate-limits":{"title":"Rate Limits","display":"hidden"}}},{"name":"streaming","route":"/develop/guides/streaming","frontMatter":{"title":"Streaming","description":"HaoAI SSE streaming guide â€” receive LLM output token-by-token via Server-Sent Events with code examples in Python, Node.js, and cURL","filePath":"content/en/develop/guides/streaming.mdx"},"title":"Streaming"},{"name":"function-calling","route":"/develop/guides/function-calling","frontMatter":{"title":"Function Calling","description":"HaoAI Function Calling guide â€” let LLMs invoke external tools with parallel calls, supported on GPT-6 Astra, Claude, and more models","filePath":"content/en/develop/guides/function-calling.mdx"},"title":"Function Calling"},{"name":"vision","route":"/develop/guides/vision","frontMatter":{"title":"Vision","description":"HaoAI Vision API â€” analyze images, screenshots, and video with multimodal models like GPT-6 Astra and Claude through a unified interface","filePath":"content/en/develop/guides/vision.mdx"},"title":"Vision"},{"name":"structured-output","route":"/develop/guides/structured-output","frontMatter":{"title":"Structured Output","description":"HaoAI Structured Output â€” enforce JSON Mode and JSON Schema constraints on LLM responses for type-safe, validated data extraction","filePath":"content/en/develop/guides/structured-output.mdx"},"title":"Structured Output"},{"name":"error-handling","route":"/develop/guides/error-handling","frontMatter":{"title":"Error Handling","description":"HaoAI API error code reference covering HTTP status codes (400, 401, 429, 5xx), retry strategies, rate limit handling, and debugging tips","filePath":"content/en/develop/guides/error-handling.mdx"},"title":"Error Handling"},{"name":"rate-limits","route":"/develop/guides/rate-limits","frontMatter":{"title":"Rate Limits","description":"HaoAI API rate limits explained â€” default 100 RPM team-aggregated, unlimited TPM, retry-after headers, exponential backoff strategies, and tips to maximize throughput","filePath":"content/en/develop/guides/rate-limits.mdx"},"title":"Rate Limits"}],"title":"Guides"},{"name":"advanced","route":"/develop/advanced","children":[{"data":{"provider-routing":{"title":"Provider Routing"},"fallback":{"title":"Fallback"},"prompt-caching":{"title":"Prompt Caching"},"model-routing":{"title":"Model Routing","display":"hidden"}}},{"name":"provider-routing","route":"/develop/advanced/provider-routing","frontMatter":{"title":"Provider Routing","description":"Configure HaoAI provider routing strategies â€” priority-based failover, load balancing, and latency-optimized distribution across multiple nodes","filePath":"content/en/develop/advanced/provider-routing.mdx"},"title":"Provider Routing"},{"name":"fallback","route":"/develop/advanced/fallback","frontMatter":{"title":"Fallback","description":"HaoAI automatic fallback â€” configure failover chains across models and providers for 99.9% uptime when primary models are unavailable","filePath":"content/en/develop/advanced/fallback.mdx"},"title":"Fallback"},{"name":"prompt-caching","route":"/develop/advanced/prompt-caching","frontMatter":{"title":"Prompt Caching","description":"HaoAI Prompt Caching reduces token costs by up to 90% and cuts latency for repeated prompts on supported Claude and GPT models","filePath":"content/en/develop/advanced/prompt-caching.mdx"},"title":"Prompt Caching"},{"name":"model-routing","route":"/develop/advanced/model-routing","frontMatter":{"title":"Smart Model Routing","description":"HaoAI smart model routing â€” auto mode and model pools for cost optimization, intelligent load balancing, and quality-aware model selection","filePath":"content/en/develop/advanced/model-routing.mdx"},"title":"Model Routing"}],"title":"Advanced Features"},{"name":"observability","route":"/develop/observability","children":[{"data":{"dashboard":{"title":"Dashboard"},"usage-tracking":{"title":"Usage Tracking"},"pricing":{"title":"Pricing"}}},{"name":"dashboard","route":"/develop/observability/dashboard","frontMatter":{"title":"Dashboard","description":"HaoAI Console dashboard for API key management, real-time usage monitoring, cost analytics, and performance metrics across all your LLM requests","filePath":"content/en/develop/observability/dashboard.mdx"},"title":"Dashboard"},{"name":"usage-tracking","route":"/develop/observability/usage-tracking","frontMatter":{"title":"Usage Tracking","description":"HaoAI real-time usage tracking â€” monitor token consumption, API costs, request latency, and per-model performance metrics from the console","filePath":"content/en/develop/observability/usage-tracking.mdx"},"title":"Usage Tracking"},{"name":"pricing","route":"/develop/observability/pricing","frontMatter":{"title":"Pricing","description":"HaoAI pay-as-you-go pricing with no subscriptions or hidden fees. Top up your balance, access leading global models, and pay only for tokens consumed","filePath":"content/en/develop/observability/pricing.mdx"},"title":"Pricing"}],"title":"Observability"}],"title":"Docs"},{"name":"api","route":"/api","children":[{"data":{"openai":{"title":"OpenAI-Compatible"},"anthropic":{"title":"Anthropic Native"},"x-ai":{"title":"SpaceXAI Protocol"},"gemini":{"title":"Gemini Native","display":"hidden"},"openapi":{"title":"HaoAI OpenAPI"}}},{"name":"index","route":"/api","frontMatter":{"title":"API Overview","description":"HaoAI API overview â€” OpenAI-compatible, Anthropic, and SpaceXAI protocols, authentication, error codes, and rate limits","filePath":"content/en/api.mdx"},"title":"API Overview"},{"name":"openai","route":"/api/openai","children":[{"data":{"chat-completions":{"title":"Chat Completions"},"responses":{"title":"Responses (Recommended)"},"embeddings":{"title":"Embeddings","display":"hidden"},"models":{"title":"Models"},"images":{"title":"Images"}}},{"name":"chat-completions","route":"/api/openai/chat-completions","frontMatter":{"title":"Chat Completions","description":"HaoAI Chat Completions API (POST /v1/chat/completions) â€” streaming, function calling, vision, and leading global models via OpenAI-compatible endpoint","filePath":"content/en/api/openai/chat-completions.mdx"},"title":"Chat Completions"},{"name":"responses","route":"/api/openai/responses","frontMatter":{"title":"Responses API (Recommended)","description":"HaoAI Responses API reference, POST /v1/responses to create model responses, native Prompt Caching to reduce costs, supports function calling and streaming output","filePath":"content/en/api/openai/responses.mdx"},"title":"Responses (Recommended)"},{"name":"embeddings","route":"/api/openai/embeddings","frontMatter":{"title":"Embeddings","description":"HaoAI Embeddings API (POST /v1/embeddings) â€” generate text vector embeddings with models like text-embedding-3 for search and clustering","searchable":false,"filePath":"content/en/api/openai/embeddings.mdx"},"title":"Embeddings"},{"name":"models","route":"/api/openai/models","frontMatter":{"title":"Models API","description":"HaoAI Models API (GET /v1/models) â€” list and filter leading global models by provider, view pricing and context windows","filePath":"content/en/api/openai/models.mdx"},"title":"Models"},{"name":"images","route":"/api/openai/images","frontMatter":{"title":"Images API","description":"HaoAI Images API â€” POST /v1/images/generations to generate images from text, POST /v1/images/edits to edit existing images, OpenAI-compatible","filePath":"content/en/api/openai/images.mdx"},"title":"Images"}],"title":"OpenAI-Compatible"},{"name":"anthropic","route":"/api/anthropic","children":[{"data":{"messages":{"title":"Messages"},"models":{"title":"Models"}}},{"name":"messages","route":"/api/anthropic/messages","frontMatter":{"title":"Messages API","description":"HaoAI Anthropic Messages API (POST /anthropic/v1/messages) â€” call Claude models with streaming, tool use, and vision via the native protocol","filePath":"content/en/api/anthropic/messages.mdx"},"title":"Messages"},{"name":"models","route":"/api/anthropic/models","frontMatter":{"title":"Anthropic Models API","description":"HaoAI Anthropic Models API (GET /anthropic/v1/models) â€” list and query all Anthropic-protocol models with native API-compatible response format","filePath":"content/en/api/anthropic/models.mdx"},"title":"Models"}],"title":"Anthropic Native"},{"name":"x-ai","route":"/api/x-ai","children":[{"data":{"chat-completions":{"title":"Chat Completions"},"responses":{"title":"Responses"},"models":{"title":"Models"}}},{"name":"chat-completions","route":"/api/x-ai/chat-completions","frontMatter":{"title":"SpaceXAI Chat Completions","description":"HaoAI SpaceXAI Chat Completions API â€” call Grok models through the SpaceXAI protocol endpoint with xAI OpenAI-compatible JSON and SSE payloads","filePath":"content/en/api/x-ai/chat-completions.mdx"},"title":"Chat Completions"},{"name":"responses","route":"/api/x-ai/responses","frontMatter":{"title":"SpaceXAI Responses","description":"HaoAI SpaceXAI Responses API â€” create Grok responses through the SpaceXAI protocol endpoint using xAI OpenAI-compatible JSON and SSE payloads","filePath":"content/en/api/x-ai/responses.mdx"},"title":"Responses"},{"name":"models","route":"/api/x-ai/models","frontMatter":{"title":"SpaceXAI Models API","description":"HaoAI SpaceXAI Models API â€” list Grok-family models available through the SpaceXAI protocol using an OpenAI-compatible model-list response","filePath":"content/en/api/x-ai/models.mdx"},"title":"Models"}],"title":"SpaceXAI Protocol"},{"name":"gemini","route":"/api/gemini","children":[{"data":{"generate-content":{"title":"Generate Content","display":"hidden"},"models":{"title":"Models","display":"hidden"}}},{"name":"generate-content","route":"/api/gemini/generate-content","frontMatter":{"title":"Generate Content","description":"HaoAI Gemini generateContent API reference, compatible with the Google GenAI SDK, supporting text generation, streaming, and the full Gemini model lineup","searchable":false,"filePath":"content/en/api/gemini/generate-content.mdx"},"title":"Generate Content"},{"name":"models","route":"/api/gemini/models","frontMatter":{"title":"Gemini Models API","description":"HaoAI Gemini Models API (GET /gemini/v1beta/models) â€” list and query all Gemini-protocol models with Google GenAI-compatible response format","searchable":false,"filePath":"content/en/api/gemini/models.mdx"},"title":"Models"}],"title":"Gemini Native"},{"name":"openapi","route":"/api/openapi","children":[{"data":{"balance":{"title":"Balance Query"},"billing-report":{"title":"Billing Report"},"provider-pricing":{"title":"Real-Time Pricing"}}},{"name":"balance","route":"/api/openapi/balance","frontMatter":{"title":"Balance Query","description":"HaoAI OpenAPI balance query endpoint returning available balance, lifetime credits, and lifetime spend for the account that owns the API key.","filePath":"content/en/api/openapi/balance.mdx"},"title":"Balance Query"},{"name":"billing-report","route":"/api/openapi/billing-report","frontMatter":{"title":"Billing Report","description":"HaoAI OpenAPI billing reports: query an API key's actual spend by model, with date and timezone filters for automated daily reconciliation.","filePath":"content/en/api/openapi/billing-report.mdx"},"title":"Billing Report"},{"name":"provider-pricing","route":"/api/openapi/provider-pricing","frontMatter":{"title":"Real-Time Pricing","description":"Get HaoAI's live, hvoy-compatible model pricing snapshot, including input, output, and cache prices grouped by billing channel.","filePath":"content/en/api/openapi/provider-pricing.mdx"},"title":"Real-Time Pricing"}],"title":"HaoAI OpenAPI"}],"title":"API"},{"name":"integrations","route":"/integrations","children":[{"data":{"claude-code":{"title":"$L18"},"claude-coworks":{"title":"$L19"},"codex":{"title":"$L1a"},"gemini-cli":{"title":"$L1b","display":"hidden"},"cc-switch":{"title":"$L1c"},"openclaw":{"title":"$L1d"},"opencode":{"title":"$L1e"},"cherry-studio":{"title":"$L1f"},"cursor":{"title":"$L20"},"copilot":{"title":"$L21"},"zed":{"title":"$L22"},"cline":{"title":"$L23"},"openai-sdk":{"title":"$L24"},"langchain":{"title":"$L25"},"llamaindex":{"title":"$L26"},"botgem":{"title":"$L27"},"chatbox":{"title":"$L28"},"workbuddy":{"title":"$L29"},"lobehub":{"title":"$L2a"},"opencat":{"title":"$L2b"},"nextchat":{"title":"$L2c"},"immersive-translate":{"title":"$L2d"},"others":{"title":"$L2e"}}},{"name":"index","route":"/integrations","frontMatter":{"title":"Integrations","description":"Configure HaoAI as your LLM provider in popular AI coding tools, desktop clients, and SDKs. One API Key, works everywhere.","filePath":"content/en/integrations.mdx"},"title":"Integrations"},{"name":"claude-code","route":"/integrations/claude-code","children":[{"data":{"installation":{"title":"Install Claude Code"},"model-provider":{"title":"Model Provider"},"contextline":{"title":"Context Line"},"skills":{"title":"Claude Skills"}}},{"name":"index","route":"/integrations/claude-code","frontMatter":{"title":"Claude Code Configuration","description":"Configure HaoAI as the API provider in Claude Code CLI for a 100 RPM default quota, 99.9% SLA, and low latency","filePath":"content/en/integrations/claude-code.mdx"},"title":"Claude Code Configuration"},{"name":"installation","route":"/integrations/claude-code/installation","frontMatter":{"title":"Install Claude Code","description":"Claude Code installation guide supporting Terminal CLI, VS Code, desktop app, JetBrains, and browser","filePath":"content/en/integrations/claude-code/installation.mdx"},"title":"Install Claude Code"},{"name":"model-provider","route":"/integrations/claude-code/model-provider","frontMatter":{"title":"Claude Code Model Provider Setup","description":"Connect HaoAI to Claude Code via CC Switch â€” complete setup in 3 minutes with no manual file editing","filePath":"content/en/integrations/claude-code/model-provider.mdx"},"title":"Model Provider"},{"name":"contextline","route":"/integrations/claude-code/contextline","frontMatter":{"title":"CCometixLine Status Bar Plugin","description":"Install CCometixLine with a single command to add real-time Git status, model name, and context usage display to Claude Code","filePath":"content/en/integrations/claude-code/contextline.mdx"},"title":"Context Line"},{"name":"skills","route":"/integrations/claude-code/skills","frontMatter":{"title":"Configure Skills","description":"Extend Claude Code capabilities with Skills â€” install with a single command, ready to use immediately","filePath":"content/en/integrations/claude-code/skills.mdx"},"title":"Claude Skills"}],"title":"$18"},{"name":"claude-coworks","route":"/integrations/claude-coworks","frontMatter":{"title":"Claude Coworks Configuration","description":"Configure HaoAI in Claude Coworks using the Gateway feature with the Anthropic-compatible protocol to access leading global models.","filePath":"content/en/integrations/claude-coworks.mdx"},"title":"$19"},{"name":"codex","route":"/integrations/codex","children":[{"data":{"installation":{"title":"Install Codex CLI"},"model-provider":{"title":"Configure Model Provider"},"websocket":{"title":"Enable WebSocket (Recommended)"}}},{"name":"index","route":"/integrations/codex","frontMatter":{"title":"Codex Local Client Setup","description":"Configure Codex local clients to use HaoAI and enable the recommended WebSocket connection","filePath":"content/en/integrations/codex.mdx"},"title":"Codex Local Client Setup"},{"name":"installation","route":"/integrations/codex/installation","frontMatter":{"title":"Install Codex CLI","description":"Codex CLI installation guide â€” install globally via npm and start AI-powered coding","filePath":"content/en/integrations/codex/installation.mdx"},"title":"Install Codex CLI"},{"name":"model-provider","route":"/integrations/codex/model-provider","frontMatter":{"title":"Codex Model Provider Setup","description":"Configure the HaoAI API key and request URL in CC Switch for Codex local clients","filePath":"content/en/integrations/codex/model-provider.mdx"},"title":"Configure Model Provider"},{"name":"websocket","route":"/integrations/codex/websocket","frontMatter":{"title":"Enable WebSocket","description":"Enable the recommended WebSocket connection for Codex local clients while keeping the HaoAI API key in CC Switch","filePath":"content/en/integrations/codex/websocket.mdx"},"title":"Enable WebSocket (Recommended)"}],"title":"$1a"},{"name":"gemini-cli","route":"/integrations/gemini-cli","frontMatter":{"title":"Gemini CLI Setup","description":"Set up HaoAI in Google Gemini CLI to access Gemini and other leading global models through the native Gemini protocol with a single API key","searchable":false,"filePath":"content/en/integrations/gemini-cli.mdx"},"title":"$1b"},{"name":"cc-switch","route":"/integrations/cc-switch","frontMatter":{"title":"CC-Switch Configuration","description":"Configure CC-Switch to use HaoAI models with real-time usage tracking and monitoring across leading global models in a unified interface.","filePath":"content/en/integrations/cc-switch.mdx"},"title":"$1c"},{"name":"openclaw","route":"/integrations/openclaw","frontMatter":{"title":"OpenClaw","description":"Configure HaoAI in OpenClaw â€” one API key unlocks leading global models for your personal AI assistant on WhatsApp, Telegram, and Slack","filePath":"content/en/integrations/openclaw.mdx"},"title":"$1d"},{"name":"opencode","route":"/integrations/opencode","frontMatter":{"title":"OpenCode Configuration","description":"Configure HaoAI in OpenCode terminal AI coding tool, access leading global models via OpenAI-compatible mode, with complete installation and configuration steps","filePath":"content/en/integrations/opencode.mdx"},"title":"$1e"},{"name":"cherry-studio","route":"/integrations/cherry-studio","frontMatter":{"title":"Cherry Studio Configuration","description":"Configure HaoAI in Cherry Studio cross-platform AI desktop client, supporting OpenAI Chat, OpenAI Response, and Claude protocols to access available models.","filePath":"content/en/integrations/cherry-studio.mdx"},"title":"$1f"},{"name":"cursor","route":"/integrations/cursor","frontMatter":{"title":"Cursor Compatibility Notice","description":"Learn why current Cursor versions restrict third-party API providers and how to use HaoAI through Claude Code or Codex CLI with CC Switch instead.","filePath":"content/en/integrations/cursor.mdx"},"title":"$20"},{"name":"copilot","route":"/integrations/copilot","frontMatter":{"title":"GitHub Copilot Configuration","description":"Configure HaoAI in GitHub Copilot Chat with the OAI Compatible Provider for Copilot VS Code extension, including Base URL, API key, and custom model setup.","filePath":"content/en/integrations/copilot.mdx"},"title":"$21"},{"name":"zed","route":"/integrations/zed","frontMatter":{"title":"Zed Editor Setup Guide","description":"Set up HaoAI in Zed Editor for AI-assisted coding â€” one API key unlocks Claude, GPT, Grok, and other available models with inline completions and chat","filePath":"content/en/integrations/zed.mdx"},"title":"$22"},{"name":"cline","route":"/integrations/cline","frontMatter":{"title":"Cline Configuration","description":"Configure HaoAI in Cline (VS Code AI coding plugin) to access GPT and other leading global models via OpenAI Compatible protocol","filePath":"content/en/integrations/cline.mdx"},"title":"$23"},{"name":"openai-sdk","route":"/integrations/openai-sdk","frontMatter":{"title":"OpenAI SDK Compatible","description":"Migrate from OpenAI to HaoAI in one line â€” just change the base URL to access leading global models with full OpenAI SDK compatibility in Python and Node.js","filePath":"content/en/integrations/openai-sdk.mdx"},"title":"$24"},{"name":"langchain","route":"/integrations/langchain","frontMatter":{"title":"LangChain Configuration","description":"Configure HaoAI in LangChain to access available models including GPT, Claude, Grok, and DeepSeek via the OpenAI-compatible protocol with just one line of code.","filePath":"content/en/integrations/langchain.mdx"},"title":"$25"},{"name":"llamaindex","route":"/integrations/llamaindex","frontMatter":{"title":"LlamaIndex Configuration","description":"Configure HaoAI in LlamaIndex to access available models including GPT, Claude, Grok, and DeepSeek via the OpenAI-compatible protocol.","filePath":"content/en/integrations/llamaindex.mdx"},"title":"$26"},{"name":"botgem","route":"/integrations/botgem","frontMatter":{"title":"BotGem Setup","description":"Configure HaoAI in BotGem AI desktop client with OpenAI Chat and Claude protocols to access available models.","filePath":"content/en/integrations/botgem.mdx"},"title":"$27"},{"name":"chatbox","route":"/integrations/chatbox","frontMatter":{"title":"Chatbox Configuration","description":"Configure HaoAI in Chatbox, a cross-platform AI desktop client. Supports OpenAI, OpenAI Responses, and Claude protocols to access available models.","filePath":"content/en/integrations/chatbox.mdx"},"title":"$28"},{"name":"workbuddy","route":"/integrations/workbuddy","frontMatter":{"title":"WorkBuddy Configuration","description":"Configure HaoAI in WorkBuddy AI Agent to access GPT, Claude, Grok, and other available models via the OpenAI-compatible API.","filePath":"content/en/integrations/workbuddy.mdx"},"title":"$29"},{"name":"lobehub","route":"/integrations/lobehub","frontMatter":{"title":"LobeHub Setup","description":"Configure HaoAI in LobeHub AI desktop client with OpenAI Chat, OpenAI Response, and Claude protocols to access available models.","filePath":"content/en/integrations/lobehub.mdx"},"title":"$2a"},{"name":"opencat","route":"/integrations/opencat","frontMatter":{"title":"OpenCat Setup","description":"Configure HaoAI in OpenCat AI client using the OpenAI-compatible protocol to access GPT, Claude, Grok, DeepSeek, and other available models with one API Key.","filePath":"content/en/integrations/opencat.mdx"},"title":"$2b"},{"name":"nextchat","route":"/integrations/nextchat","frontMatter":{"title":"NextChat Setup","description":"Configure HaoAI in NextChat with OpenAI or Anthropic protocols to access GPT, Claude, and other available models with one API Key.","filePath":"content/en/integrations/nextchat.mdx"},"title":"$2c"},{"name":"immersive-translate","route":"/integrations/immersive-translate","frontMatter":{"title":"Immersive Translate Setup","description":"Configure HaoAI in Immersive Translate with OpenAI Chat, Responses, or Anthropic endpoints for bilingual web, PDF, subtitle, and input translation.","filePath":"content/en/integrations/immersive-translate.mdx"},"title":"$2d"},{"name":"others","route":"/integrations/others","frontMatter":{"title":"Other Integrations","description":"Configure HaoAI in Cursor, Continue, Aider, LangChain, and other AI dev tools â€” universal setup for any OpenAI/Anthropic-compatible client","filePath":"content/en/integrations/others.mdx"},"title":"$2e"}],"title":"Integrations"},{"name":"models","title":"Models","href":"https://hao.ai/models","type":"page"},{"name":"console","title":"Console","href":"https://hao.ai/console/overview","type":"page"}],"navbar":"$L2f","footer":"$L30","children":["$L31","$L32"]}]]}]}]}]]}]]}]
38:I[52619,["545","static/chunks/c16f53c3-586ea805d2f7b835.js","619","static/chunks/619-f072ac750404f9da.js","761","static/chunks/761-63001de2e5aab932.js","870","static/chunks/870-fbaf108ffcb8663c.js","344","static/chunks/app/%5Blocale%5D/%5B%5B...mdxPath%5D%5D/page-7673a69a0ef50613.js"],""]
39:I[17167,["545","static/chunks/c16f53c3-586ea805d2f7b835.js","619","static/chunks/619-f072ac750404f9da.js","761","static/chunks/761-63001de2e5aab932.js","870","static/chunks/870-fbaf108ffcb8663c.js","344","static/chunks/app/%5Blocale%5D/%5B%5B...mdxPath%5D%5D/page-7673a69a0ef50613.js"],"ClientNavbar"]
3a:I[46567,["545","static/chunks/c16f53c3-586ea805d2f7b835.js","619","static/chunks/619-f072ac750404f9da.js","761","static/chunks/761-63001de2e5aab932.js","70","static/chunks/70-4a3d962982cd364b.js","870","static/chunks/870-fbaf108ffcb8663c.js","450","static/chunks/app/%5Blocale%5D/layout-b3c48a0dab2df1ff.js"],"LanguageSwitcher"]
3b:I[92363,["545","static/chunks/c16f53c3-586ea805d2f7b835.js","619","static/chunks/619-f072ac750404f9da.js","761","static/chunks/761-63001de2e5aab932.js","870","static/chunks/870-fbaf108ffcb8663c.js","344","static/chunks/app/%5Blocale%5D/%5B%5B...mdxPath%5D%5D/page-7673a69a0ef50613.js"],"Switchers"]
3c:I[88148,["545","static/chunks/c16f53c3-586ea805d2f7b835.js","619","static/chunks/619-f072ac750404f9da.js","761","static/chunks/761-63001de2e5aab932.js","870","static/chunks/870-fbaf108ffcb8663c.js","344","static/chunks/app/%5Blocale%5D/%5B%5B...mdxPath%5D%5D/page-7673a69a0ef50613.js"],"LocaleSwitch"]
3d:I[61085,["545","static/chunks/c16f53c3-586ea805d2f7b835.js","619","static/chunks/619-f072ac750404f9da.js","761","static/chunks/761-63001de2e5aab932.js","870","static/chunks/870-fbaf108ffcb8663c.js","344","static/chunks/app/%5Blocale%5D/%5B%5B...mdxPath%5D%5D/page-7673a69a0ef50613.js"],"ThemeSwitch"]
3e:I[2857,["545","static/chunks/c16f53c3-586ea805d2f7b835.js","619","static/chunks/619-f072ac750404f9da.js","761","static/chunks/761-63001de2e5aab932.js","870","static/chunks/870-fbaf108ffcb8663c.js","344","static/chunks/app/%5Blocale%5D/%5B%5B...mdxPath%5D%5D/page-7673a69a0ef50613.js"],"MobileNav"]
3f:I[78221,["545","static/chunks/c16f53c3-586ea805d2f7b835.js","619","static/chunks/619-f072ac750404f9da.js","761","static/chunks/761-63001de2e5aab932.js","870","static/chunks/870-fbaf108ffcb8663c.js","344","static/chunks/app/%5Blocale%5D/%5B%5B...mdxPath%5D%5D/page-7673a69a0ef50613.js"],"TOCProvider"]
40:I[2857,["545","static/chunks/c16f53c3-586ea805d2f7b835.js","619","static/chunks/619-f072ac750404f9da.js","761","static/chunks/761-63001de2e5aab932.js","870","static/chunks/870-fbaf108ffcb8663c.js","344","static/chunks/app/%5Blocale%5D/%5B%5B...mdxPath%5D%5D/page-7673a69a0ef50613.js"],"Sidebar"]
41:I[30825,["545","static/chunks/c16f53c3-586ea805d2f7b835.js","619","static/chunks/619-f072ac750404f9da.js","761","static/chunks/761-63001de2e5aab932.js","870","static/chunks/870-fbaf108ffcb8663c.js","344","static/chunks/app/%5Blocale%5D/%5B%5B...mdxPath%5D%5D/page-7673a69a0ef50613.js"],"ClientWrapper"]
18:["$","span",null,{"className":"docs-meta-title","children":[["$","svg",null,{"viewBox":"0 0 24 24","fill":"#d97757","aria-hidden":"true","className":"docs-meta-title-icon","children":["$","path",null,{"fillRule":"evenodd","clipRule":"evenodd","d":"M20.998 10.949H24v3.102h-3v3.028h-1.487V20H18v-2.921h-1.487V20H15v-2.921H9V20H7.488v-2.921H6V20H4.487v-2.921H3V14.05H0V10.95h3V5h17.998v5.949zM6 10.949h1.488V8.102H6v2.847zm10.51 0H18V8.102h-1.49v2.847z"}]}],["$","span",null,{"className":"docs-meta-title-label","children":"Claude Code"}]]}]
33:T5db,M4.709 15.955l4.72-2.647.08-.23-.08-.128H9.2l-.79-.048-2.698-.073-2.339-.097-2.266-.122-.571-.121L0 11.784l.055-.352.48-.321.686.06 1.52.103 2.278.158 1.652.097 2.449.255h.389l.055-.157-.134-.098-.103-.097-2.358-1.596-2.552-1.688-1.336-.972-.724-.491-.364-.462-.158-1.008.656-.722.881.06.225.061.893.686 1.908 1.476 2.491 1.833.365.304.145-.103.019-.073-.164-.274-1.355-2.446-1.446-2.49-.644-1.032-.17-.619a2.97 2.97 0 01-.104-.729L6.283.134 6.696 0l.996.134.42.364.62 1.414 1.002 2.229 1.555 3.03.456.898.243.832.091.255h.158V9.01l.128-1.706.237-2.095.23-2.695.08-.76.376-.91.747-.492.584.28.48.685-.067.444-.286 1.851-.559 2.903-.364 1.942h.212l.243-.242.985-1.306 1.652-2.064.73-.82.85-.904.547-.431h1.033l.76 1.129-.34 1.166-1.064 1.347-.881 1.142-1.264 1.7-.79 1.36.073.11.188-.02 2.856-.606 1.543-.28 1.841-.315.833.388.091.395-.328.807-1.969.486-2.309.462-3.439.813-.042.03.049.061 1.549.146.662.036h1.622l3.02.225.79.522.474.638-.079.485-1.215.62-1.64-.389-3.829-.91-1.312-.329h-.182v.11l1.093 1.068 2.006 1.81 2.509 2.33.127.578-.322.455-.34-.049-2.205-1.657-.851-.747-1.926-1.62h-.128v.17l.444.649 2.345 3.521.122 1.08-.17.353-.608.213-.668-.122-1.374-1.925-1.415-2.167-1.143-1.943-.14.08-.674 7.254-.316.37-.729.28-.607-.461-.322-.747.322-1.476.389-1.924.315-1.53.286-1.9.17-.632-.012-.042-.14.018-1.434 1.967-2.18 2.945-1.726 1.845-.414.164-.717-.37.067-.662.401-.589 2.388-3.036 1.44-1.882.93-1.086-.006-.158h-.055L4.132 18.56l-1.13.146-.487-.456.061-.746.231-.243 1.908-1.312-.006.006z19:["$","span",null,{"className":"docs-meta-title","children":[["$","svg",null,{"viewBox":"0 0 24 24","fill":"#d97757","aria-hidden":"true","className":"docs-meta-title-icon","children":["$","path",null,{"d":"$33"}]}],["$","span",null,{"className":"docs-meta-title-label","children":"Claude Coworks"}]]}]
34:T47b,M8.086.457a6.105 6.105 0 013.046-.415c1.333.153 2.521.72 3.564 1.7a.117.117 0 00.107.029c1.408-.346 2.762-.224 4.061.366l.063.03.154.076c1.357.703 2.33 1.77 2.918 3.198.278.679.418 1.388.421 2.126a5.655 5.655 0 01-.18 1.631.167.167 0 00.04.155 5.982 5.982 0 011.578 2.891c.385 1.901-.01 3.615-1.183 5.14l-.182.22a6.063 6.063 0 01-2.934 1.851.162.162 0 00-.108.102c-.255.736-.511 1.364-.987 1.992-1.199 1.582-2.962 2.462-4.948 2.451-1.583-.008-2.986-.587-4.21-1.736a.145.145 0 00-.14-.032c-.518.167-1.04.191-1.604.185a5.924 5.924 0 01-2.595-.622 6.058 6.058 0 01-2.146-1.781c-.203-.269-.404-.522-.551-.821a7.74 7.74 0 01-.495-1.283 6.11 6.11 0 01-.017-3.064.166.166 0 00.008-.074.115.115 0 00-.037-.064 5.958 5.958 0 01-1.38-2.202 5.196 5.196 0 01-.333-1.589 6.915 6.915 0 01.188-2.132c.45-1.484 1.309-2.648 2.577-3.493.282-.188.55-.334.802-.438.286-.12.573-.22.861-.304a.129.129 0 00.087-.087A6.016 6.016 0 015.635 2.31C6.315 1.464 7.132.846 8.086.457zm-.804 7.85a.848.848 0 00-1.473.842l1.694 2.965-1.688 2.848a.849.849 0 001.46.864l1.94-3.272a.849.849 0 00.007-.854l-1.94-3.393zm5.446 6.24a.849.849 0 000 1.695h4.848a.849.849 0 000-1.696h-4.848z1a:["$","span",null,{"className":"docs-meta-title","children":[["$","svg",null,{"viewBox":"0 0 24 24","fill":"#7c8cff","aria-hidden":"true","className":"docs-meta-title-icon","children":["$","path",null,{"fillRule":"evenodd","clipRule":"evenodd","d":"$34"}]}],["$","span",null,{"className":"docs-meta-title-label","children":"Codex"}]]}]
1b:["$","span",null,{"className":"docs-meta-title","children":[["$","svg",null,{"viewBox":"0 0 24 24","fill":"#4285f4","aria-hidden":"true","className":"docs-meta-title-icon","children":[["$","path",null,{"d":"M16.793 10.358v3.867L7.236 18.82v-2.8l7.751-3.728-7.75-3.728V5.763l9.556 4.595z"}],["$","path",null,{"d":"M19.608 0A4.392 4.392 0 0124 4.392v15.216A4.392 4.392 0 0119.608 24H4.392A4.392 4.392 0 010 19.608V4.392A4.392 4.392 0 014.392 0h15.216zM4.26 1.444A2.816 2.816 0 001.444 4.26v15.48a2.816 2.816 0 002.816 2.816h15.48a2.816 2.816 0 002.816-2.816V4.26a2.816 2.816 0 00-2.816-2.816H4.26z"}]]}],["$","span",null,{"className":"docs-meta-title-label","children":"Gemini CLI"}]]}]
1c:["$","span",null,{"className":"docs-meta-title","children":[["$","svg",null,{"viewBox":"0 0 24 24","fill":"none","stroke":"#7c8cff","strokeWidth":1.8,"strokeLinecap":"round","strokeLinejoin":"round","aria-hidden":true,"className":"docs-meta-title-icon","children":[["$","path",null,{"d":"M7 7h11"}],["$","path",null,{"d":"m15 4 3 3-3 3"}],["$","path",null,{"d":"M17 17H6"}],["$","path",null,{"d":"m9 14-3 3 3 3"}]]}],["$","span",null,{"className":"docs-meta-title-label","children":"CC-Switch"}]]}]
1d:["$","span",null,{"className":"docs-meta-title","children":[["$","svg",null,{"viewBox":"0 0 24 24","aria-hidden":"true","className":"docs-meta-title-icon","children":[["$","path",null,{"d":"M12 2.568c-6.33 0-9.495 5.275-9.495 9.495 0 4.22 3.165 8.44 6.33 9.494v2.11h2.11v-2.11s1.055.422 2.11 0v2.11h2.11v-2.11c3.165-1.055 6.33-5.274 6.33-9.494S18.33 2.568 12 2.568z","fill":"#ff4d4d"}],["$","path",null,{"d":"M3.56 9.953C.396 8.898-.66 11.008.396 13.118c1.055 2.11 3.164 1.055 4.22-1.055.632-1.477 0-2.11-1.056-2.11z","fill":"#d63d3d"}],["$","path",null,{"d":"M20.44 9.953c3.164-1.055 4.22 1.055 3.164 3.165-1.055 2.11-3.164 1.055-4.22-1.055-.632-1.477 0-2.11 1.056-2.11z","fill":"#d63d3d"}],["$","path",null,{"d":"M5.507 1.875c.476-.285 1.036-.233 1.615.037.577.27 1.223.774 1.937 1.488a.316.316 0 01-.447.447c-.693-.693-1.279-1.138-1.757-1.361-.475-.222-.795-.205-1.022-.069a.317.317 0 01-.326-.542zM16.877 1.913c.58-.27 1.14-.323 1.616-.038a.317.317 0 01-.326.542c-.227-.136-.547-.153-1.022.069-.478.223-1.064.668-1.756 1.361a.316.316 0 11-.448-.447c.714-.714 1.36-1.218 1.936-1.487z","fill":"#ff4d4d"}],["$","path",null,{"d":"M8.835 9.109a1.266 1.266 0 100-2.532 1.266 1.266 0 000 2.532zM15.165 9.109a1.266 1.266 0 100-2.532 1.266 1.266 0 000 2.532z","fill":"#050810"}],["$","path",null,{"d":"M9.046 8.16a.527.527 0 100-1.056.527.527 0 000 1.055zM15.376 8.16a.527.527 0 100-1.055.527.527 0 000 1.054z","fill":"#00e5cc"}]]}],["$","span",null,{"className":"docs-meta-title-label","children":"OpenClaw"}]]}]
1e:["$","span",null,{"className":"docs-meta-title","children":[["$","svg",null,{"viewBox":"0 0 24 24","fill":"#bfbfbf","aria-hidden":"true","className":"docs-meta-title-icon","children":["$","path",null,{"d":"M16 6H8v12h8V6zm4 16H4V2h16v20z"}]}],["$","span",null,{"className":"docs-meta-title-label","children":"OpenCode"}]]}]
1f:["$","span",null,{"className":"docs-meta-title","children":[["$","svg",null,{"viewBox":"0 0 24 24","fill":"#ef5b79","aria-hidden":"true","className":"docs-meta-title-icon","children":[["$","path",null,{"d":"M6.513 18.419c-1.6 0-3.107-.64-4.247-1.802A6.146 6.146 0 01.5 12.287c0-1.63.626-3.168 1.766-4.33 1.14-1.162 2.647-1.802 4.247-1.802s3.132.655 4.25 1.795c.835.849.835 2.23 0 3.078a2.11 2.11 0 01-3.02 0 1.737 1.737 0 00-1.234-.521c-.945 0-1.744.813-1.744 1.776 0 .964.799 1.777 1.744 1.777.46 0 .907-.19 1.234-.522a2.11 2.11 0 013.02 0c.835.85.835 2.23 0 3.079a5.997 5.997 0 01-4.25 1.794v.008z"}],["$","path",null,{"d":"M12.026 24c-1.6 0-3.107-.64-4.247-1.802a6.146 6.146 0 01-1.766-4.33c0-1.63.644-3.193 1.762-4.337a2.11 2.11 0 013.021 0c.834.849.834 2.23 0 3.078-.324.331-.51.788-.51 1.255 0 .964.798 1.777 1.744 1.777.945 0 1.744-.813 1.744-1.777 0-.341-.083-.83-.475-1.233a6.255 6.255 0 01-1.77-4.348c0-1.615.627-3.168 1.767-4.33s2.646-1.802 4.247-1.802c1.6 0 3.107.64 4.247 1.802a6.146 6.146 0 011.766 4.33c0 1.63-.644 3.194-1.762 4.337a2.11 2.11 0 01-3.021 0 2.206 2.206 0 010-3.078c.323-.331.51-.788.51-1.255 0-.964-.798-1.777-1.744-1.777s-1.744.813-1.744 1.777c0 .47.19.935.521 1.27 1.115 1.136 1.727 2.667 1.727 4.311a6.122 6.122 0 01-1.766 4.33C15.137 23.36 13.63 24 12.03 24h-.004z"}],["$","path",null,{"d":"M12.026 6.867L8.53 3.587a1.336 1.336 0 111.827-1.949l1.4 1.313L13.744.495a1.336 1.336 0 012.075 1.68l-3.798 4.692h.004z"}]]}],["$","span",null,{"className":"docs-meta-title-label","children":"Cherry Studio"}]]}]
20:["$","span",null,{"className":"docs-meta-title","children":[["$","svg",null,{"viewBox":"0 0 24 24","fill":"#bfbfbf","aria-hidden":"true","className":"docs-meta-title-icon","children":["$","path",null,{"d":"M22.106 5.68L12.5.135a.998.998 0 00-.998 0L1.893 5.68a.84.84 0 00-.419.726v11.186c0 .3.16.577.42.727l9.607 5.547a.999.999 0 00.998 0l9.608-5.547a.84.84 0 00.42-.727V6.407a.84.84 0 00-.42-.726zm-.603 1.176L12.228 22.92c-.063.108-.228.064-.228-.061V12.34a.59.59 0 00-.295-.51l-9.11-5.26c-.107-.062-.063-.228.062-.228h18.55c.264 0 .428.286.296.514z"}]}],["$","span",null,{"className":"docs-meta-title-label","children":"Cursor"}]]}]
35:T712,M19.245 5.364c1.322 1.36 1.877 3.216 2.11 5.817.622 0 1.2.135 1.592.654l.73.964c.21.278.323.61.323.955v2.62c0 .339-.173.669-.453.868C20.239 19.602 16.157 21.5 12 21.5c-4.6 0-9.205-2.583-11.547-4.258-.28-.2-.452-.53-.453-.868v-2.62c0-.345.113-.679.321-.956l.73-.963c.392-.517.974-.654 1.593-.654l.029-.297c.25-2.446.81-4.213 2.082-5.52 2.461-2.54 5.71-2.851 7.146-2.864h.198c1.436.013 4.685.323 7.146 2.864zm-7.244 4.328c-.284 0-.613.016-.962.05-.123.447-.305.85-.57 1.108-1.05 1.023-2.316 1.18-2.994 1.18-.638 0-1.306-.13-1.851-.464-.516.165-1.012.403-1.044.996a65.882 65.882 0 00-.063 2.884l-.002.48c-.002.563-.005 1.126-.013 1.69.002.326.204.63.51.765 2.482 1.102 4.83 1.657 6.99 1.657 2.156 0 4.504-.555 6.985-1.657a.854.854 0 00.51-.766c.03-1.682.006-3.372-.076-5.053-.031-.596-.528-.83-1.046-.996-.546.333-1.212.464-1.85.464-.677 0-1.942-.157-2.993-1.18-.266-.258-.447-.661-.57-1.108-.32-.032-.64-.049-.96-.05zm-2.525 4.013c.539 0 .976.426.976.95v1.753c0 .525-.437.95-.976.95a.964.964 0 01-.976-.95v-1.752c0-.525.437-.951.976-.951zm5 0c.539 0 .976.426.976.95v1.753c0 .525-.437.95-.976.95a.964.964 0 01-.976-.95v-1.752c0-.525.437-.951.976-.951zM7.635 5.087c-1.05.102-1.935.438-2.385.906-.975 1.037-.765 3.668-.21 4.224.405.394 1.17.657 1.995.657h.09c.649-.013 1.785-.176 2.73-1.11.435-.41.705-1.433.675-2.47-.03-.834-.27-1.52-.63-1.813-.39-.336-1.275-.482-2.265-.394zm6.465.394c-.36.292-.6.98-.63 1.813-.03 1.037.24 2.06.675 2.47.968.957 2.136 1.104 2.776 1.11h.044c.825 0 1.59-.263 1.995-.657.555-.556.765-3.187-.21-4.224-.45-.468-1.335-.804-2.385-.906-.99-.088-1.875.058-2.265.394zM12 7.615c-.24 0-.525.015-.84.044.03.16.045.336.06.526l-.001.159a2.94 2.94 0 01-.014.25c.225-.022.425-.027.612-.028h.366c.187 0 .387.006.612.028-.015-.146-.015-.277-.015-.409.015-.19.03-.365.06-.526a9.29 9.29 0 00-.84-.044z21:["$","span",null,{"className":"docs-meta-title","children":[["$","svg",null,{"viewBox":"0 0 24 24","fill":"#40c463","aria-hidden":"true","className":"docs-meta-title-icon","children":["$","path",null,{"d":"$35"}]}],["$","span",null,{"className":"docs-meta-title-label","children":"GitHub Copilot"}]]}]
22:["$","span",null,{"className":"docs-meta-title","children":[["$","svg",null,{"viewBox":"0 0 24 24","fill":"none","stroke":"#facc15","strokeWidth":1.8,"strokeLinecap":"round","strokeLinejoin":"round","aria-hidden":true,"className":"docs-meta-title-icon","children":["$","path",null,{"d":"M6 6h12l-9 12h9"}]}],["$","span",null,{"className":"docs-meta-title-label","children":"Zed Editor"}]]}]
23:["$","span",null,{"className":"docs-meta-title","children":[["$","svg",null,{"viewBox":"0 0 24 24","fill":"#7c8cff","fillRule":"evenodd","aria-hidden":"true","className":"docs-meta-title-icon","children":[["$","path",null,{"d":"M17.035 3.991c2.75 0 4.98 2.24 4.98 5.003v1.667l1.45 2.896a1.01 1.01 0 01-.002.909l-1.448 2.864v1.668c0 2.762-2.23 5.002-4.98 5.002H7.074c-2.751 0-4.98-2.24-4.98-5.002V17.33l-1.48-2.855a1.01 1.01 0 01-.003-.927l1.482-2.887V8.994c0-2.763 2.23-5.003 4.98-5.003h9.962zM8.265 9.6a2.274 2.274 0 00-2.274 2.274v4.042a2.274 2.274 0 004.547 0v-4.042A2.274 2.274 0 008.265 9.6zm7.326 0a2.274 2.274 0 00-2.274 2.274v4.042a2.274 2.274 0 104.548 0v-4.042A2.274 2.274 0 0015.59 9.6z"}],["$","path",null,{"d":"M12.054 5.558a2.779 2.779 0 100-5.558 2.779 2.779 0 000 5.558z"}]]}],["$","span",null,{"className":"docs-meta-title-label","children":"Cline"}]]}]
36:T5cd,M9.205 8.658v-2.26c0-.19.072-.333.238-.428l4.543-2.616c.619-.357 1.356-.523 2.117-.523 2.854 0 4.662 2.212 4.662 4.566 0 .167 0 .357-.024.547l-4.71-2.759a.797.797 0 00-.856 0l-5.97 3.473zm10.609 8.8V12.06c0-.333-.143-.57-.429-.737l-5.97-3.473 1.95-1.118a.433.433 0 01.476 0l4.543 2.617c1.309.76 2.189 2.378 2.189 3.948 0 1.808-1.07 3.473-2.76 4.163zM7.802 12.703l-1.95-1.142c-.167-.095-.239-.238-.239-.428V5.899c0-2.545 1.95-4.472 4.591-4.472 1 0 1.927.333 2.712.928L8.23 5.067c-.285.166-.428.404-.428.737v6.898zM12 15.128l-2.795-1.57v-3.33L12 8.658l2.795 1.57v3.33L12 15.128zm1.796 7.23c-1 0-1.927-.332-2.712-.927l4.686-2.712c.285-.166.428-.404.428-.737v-6.898l1.974 1.142c.167.095.238.238.238.428v5.233c0 2.545-1.974 4.472-4.614 4.472zm-5.637-5.303l-4.544-2.617c-1.308-.761-2.188-2.378-2.188-3.948A4.482 4.482 0 014.21 6.327v5.423c0 .333.143.571.428.738l5.947 3.449-1.95 1.118a.432.432 0 01-.476 0zm-.262 3.9c-2.688 0-4.662-2.021-4.662-4.519 0-.19.024-.38.047-.57l4.686 2.71c.286.167.571.167.856 0l5.97-3.448v2.26c0 .19-.07.333-.237.428l-4.543 2.616c-.619.357-1.356.523-2.117.523zm5.899 2.83a5.947 5.947 0 005.827-4.756C22.287 18.339 24 15.84 24 13.296c0-1.665-.713-3.282-1.998-4.448.119-.5.19-.999.19-1.498 0-3.401-2.759-5.947-5.946-5.947-.642 0-1.26.095-1.88.31A5.962 5.962 0 0010.205 0a5.947 5.947 0 00-5.827 4.757C1.713 5.447 0 7.945 0 10.49c0 1.666.713 3.283 1.998 4.448-.119.5-.19 1-.19 1.499 0 3.401 2.759 5.946 5.946 5.946.642 0 1.26-.095 1.88-.309a5.96 5.96 0 004.162 1.713z24:["$","span",null,{"className":"docs-meta-title","children":[["$","svg",null,{"viewBox":"0 0 24 24","fill":"#bfbfbf","aria-hidden":"true","className":"docs-meta-title-icon","children":["$","path",null,{"d":"$36"}]}],["$","span",null,{"className":"docs-meta-title-label","children":"OpenAI SDK"}]]}]
25:["$","span",null,{"className":"docs-meta-title","children":[["$","svg",null,{"viewBox":"0 0 24 24","fill":"#2f7d73","aria-hidden":"true","className":"docs-meta-title-icon","children":["$","path",null,{"d":"M7.531 15.976a7.534 7.534 0 000-10.651L2.206 0A7.537 7.537 0 000 5.326c0 1.996.794 3.913 2.206 5.325l5.325 5.325zM18.674 16.469a7.535 7.535 0 00-10.65 0l5.325 5.325a7.536 7.536 0 0010.651 0l-5.326-5.325zM2.218 21.782a7.536 7.536 0 005.326 2.206v-7.531H.012c0 1.996.795 3.914 2.206 5.325zM20.73 8.595a7.534 7.534 0 00-10.651.001l5.325 5.326 5.326-5.327z"}]}],["$","span",null,{"className":"docs-meta-title-label","children":"LangChain"}]]}]
37:T53e,M15.855 17.122c-2.092.924-4.358.545-5.23.24 0 .21-.01.857-.048 1.78-.038.924-.332 1.507-.475 1.684.016.577.029 1.837-.047 2.26a1.93 1.93 0 01-.476.914H8.295c.114-.577.555-.946.761-1.058.114-1.193-.11-2.229-.238-2.597-.126.449-.437 1.49-.665 2.068a6.418 6.418 0 01-.713 1.299h-.951c-.048-.578.27-.77.475-.77.095-.177.323-.731.476-1.54.152-.807-.064-2.324-.19-2.981v-2.068c-1.522-.818-2.092-1.636-2.473-2.55-.304-.73-.222-1.843-.142-2.308-.096-.176-.373-.625-.476-1.25-.142-.866-.063-1.491 0-1.828-.095-.096-.285-.587-.285-1.78 0-1.192.349-1.811.523-1.972v-.529c-.666-.048-1.331-.336-1.712-.721-.38-.385-.095-.962.143-1.154.238-.193.475-.049.808-.145.333-.096.618-.192.76-.48C4.512 1.403 4.287.448 4.16 0c.57.077.935.577 1.046.818V0c.713.337 1.997 1.154 2.425 2.934.342 1.424.586 4.409.665 5.723 1.823.016 4.137-.26 6.229.193 1.901.412 2.757 1.25 3.755 1.25.999 0 1.57-.577 2.282-.096.714.481 1.094 1.828.999 2.838-.076.808-.697 1.074-.998 1.106-.38 1.27 0 2.485.237 2.934v1.827c.111.16.333.655.333 1.347 0 .693-.222 1.154-.333 1.299.19 1.077-.08 2.18-.238 2.597h-1.283c.152-.385.412-.481.523-.481.228-1.193.063-2.293-.048-2.693-.722-.424-1.188-1.17-1.331-1.491.016.272-.029 1.029-.333 1.875-.304.847-.76 1.347-.95 1.491v1.01h-1.284c0-.615.348-.737.523-.721.222-.4.76-1.01.76-2.212 0-1.015-.713-1.492-1.236-2.405-.248-.434-.127-.978-.047-1.203z26:["$","span",null,{"className":"docs-meta-title","children":[["$","svg",null,{"viewBox":"0 0 24 24","aria-hidden":"true","className":"docs-meta-title-icon","children":["$","path",null,{"fill":"#bc8deb","d":"$37"}]}],["$","span",null,{"className":"docs-meta-title-label","children":"LlamaIndex"}]]}]
27:["$","span",null,{"className":"docs-meta-title","children":[["$","svg",null,{"viewBox":"0 0 24 24","fill":"none","stroke":"#a78bfa","strokeWidth":1.8,"strokeLinecap":"round","strokeLinejoin":"round","aria-hidden":true,"className":"docs-meta-title-icon","children":[["$","path",null,{"d":"m12 3 7 4v10l-7 4-7-4V7l7-4Z"}],["$","path",null,{"d":"M9 12h6"}],["$","path",null,{"d":"M10 9h.01"}],["$","path",null,{"d":"M14 9h.01"}]]}],["$","span",null,{"className":"docs-meta-title-label","children":"BotGem"}]]}]
28:["$","span",null,{"className":"docs-meta-title","children":[["$","svg",null,{"viewBox":"0 0 24 24","fill":"none","stroke":"#22c55e","strokeWidth":1.8,"strokeLinecap":"round","strokeLinejoin":"round","aria-hidden":true,"className":"docs-meta-title-icon","children":["$","path",null,{"d":"M5 6.5h14a2 2 0 0 1 2 2v5.8a2 2 0 0 1-2 2H9l-4 3v-3H5a2 2 0 0 1-2-2V8.5a2 2 0 0 1 2-2Z"}]}],["$","span",null,{"className":"docs-meta-title-label","children":"Chatbox"}]]}]
29:["$","span",null,{"className":"docs-meta-title","children":[["$","svg",null,{"viewBox":"0 0 24 24","fill":"none","stroke":"#f59e0b","strokeWidth":1.8,"strokeLinecap":"round","strokeLinejoin":"round","aria-hidden":true,"className":"docs-meta-title-icon","children":[["$","path",null,{"d":"M9 6V5a2 2 0 0 1 2-2h2a2 2 0 0 1 2 2v1"}],["$","rect",null,{"x":"4","y":"6","width":"16","height":"14","rx":"2"}],["$","path",null,{"d":"M4 11h16"}]]}],["$","span",null,{"className":"docs-meta-title-label","children":"WorkBuddy"}]]}]
2a:["$","span",null,{"className":"docs-meta-title","children":[["$","svg",null,{"viewBox":"0 0 320 320","aria-hidden":"true","className":"docs-meta-title-icon","children":[["$","path",null,{"fill":"#f0866d","d":"M294 172.52c0 75.654-59.442 128.5-134 128.5-74.558 0-134-53.846-134-129.5 0-22.501 5-32.142 31.5-35.672 47.5-6.329 72.542-3.828 102.5-3.828 29.959-.001 72.556-1.271 102.5 3.828 24.5 4.171 30 8.671 31.5 36.672z"}],["$","path",null,{"fill":"#972021","d":"M159.75 242.51c-28.25 0-35.75 3.5-35.75 3.5s3.5 27 35.75 27 35.75-27 35.75-27-7.5-3.5-35.75-3.5z"}],["$","path",null,{"fill":"#f24f3a","d":"M135.503 160.013c.633-14.972-.483-22.788-5.5-36.443 0 0 9.5-12.056 27-12.056s30 3.064 30 3.064c-3.028 16.793-3.182 26.921-2.5 45.435h-49z"}],["$","path",null,{"fill":"#fff","d":"M119.191 234.294c14.742-7.076 24.811-21.51 24.811-39.273 0-25.406-20.595-48-46-48s-47 19.594-47 45c0 13.983 6.542 26.812 16.662 35.521 5.893-2.245 12.652-3.521 19.838-3.521 12.705 0 24.077 3.989 31.689 10.273zM200.813 234.294c-14.742-7.076-24.811-21.51-24.811-39.273 0-25.406 20.595-48 46-48s47 19.594 47 45c0 13.983-6.543 26.812-16.662 35.521-5.893-2.245-12.652-3.521-19.838-3.521-12.705 0-24.077 3.989-31.689 10.273z"}],["$","path",null,{"fill":"#1a1a1a","d":"M219 221.012c-15.464 0-28-12.536-28-28s12.536-28 28-28 28 12.536 28 28-12.536 28-28 28zM101 221.012c15.464 0 28-12.536 28-28s-12.536-28-28-28-28 12.536-28 28 12.536 28 28 28z"}],["$","path",null,{"fill":"#fd82ab","d":"M172.997 19.016c-14.027 0-19.5-11.5-41-11-23.394 0-34 13-45.5 23-1.958 1.702-11.5 7-16 9-19.683 8.748-34.5 21.5-34.5 40.5 0 20.711 17.461 37.5 39 37.5 3.537 0 6.963-.453 10.22-1.301 8.7 10.539 22.179 16.658 37.28 17.301 23.5 1 31-15.25 44.5-8.5 9.259 4.629 13.83 8.5 28.5 8.5 17.108 0 25.057-5.233 30-11 9-10.5 22.879-4 31.5-4 18.778 0 34-14.551 34-32.5 0-17.95-15.222-32.5-34-32.5-5.15 0-14.856 1.27-17-7-3.5-13.5-20.148-29-44-29-9.318 0-17.691 1-23 1z"}],["$","path",null,{"fill":"#fff","d":"M132.232 244.111c5.483-.823 14.191-1.601 27.515-1.601 12.212 0 20.546.654 26.073 1.396-1.542 5.861-12.963 8.104-26.823 8.104-13.698 0-25.013-2.191-26.765-7.899z"}],["$","path",null,{"fill":"#d93318","d":"M160.006 290.016c20.099 0 23.305-20.488 23.927-25.61.478-4.146-1.675-6.244-4.02-7.659-2.345-1.414-9.379-2.731-19.907-2.731-10.527 0-17.514 1.317-19.906 2.731-2.393 1.415-4.546 3.513-4.02 7.659.622 5.122 3.828 25.61 23.926 25.61z"}],["$","path",null,{"fill":"#ffc1a3","d":"M171.694 129.744c-5.721-3.89-13.954-4.248-19.786-.526-7.724 4.929-16.971 7.798-26.91 7.798-27.062 0-49-21.267-49-47.5 0-26.234 21.938-47.5 49-47.5 13.628 0 25.956 5.392 34.838 14.097 4.948 4.85 13.088 6.24 19.498 3.609a42.502 42.502 0 0116.164-3.166c22.92 0 41.5 18.012 41.5 40.23 0 22.218-18.58 40.23-41.5 40.23-8.856 0-17.065-2.69-23.804-7.272z"}],["$","path",null,{"fill":"#4f4f4f","d":"M55.002 124.021c8.837 0 16-7.164 16-16 0-8.837-7.163-16-16-16s-16 7.163-16 16c0 8.836 7.163 16 16 16zM205.502 120.021c7.456 0 13.5-6.045 13.5-13.5 0-7.456-6.044-13.5-13.5-13.5s-13.5 6.044-13.5 13.5c0 7.455 6.044 13.5 13.5 13.5z"}]]}],["$","span",null,{"className":"docs-meta-title-label","children":"LobeHub"}]]}]
2b:["$","span",null,{"className":"docs-meta-title","children":[["$","svg",null,{"viewBox":"0 0 24 24","fill":"none","stroke":"#ec4899","strokeWidth":1.8,"strokeLinecap":"round","strokeLinejoin":"round","aria-hidden":true,"className":"docs-meta-title-icon","children":[["$","path",null,{"d":"M5 9 7.5 5 10 8h4l2.5-3L19 9v5.5A5.5 5.5 0 0 1 13.5 20h-3A5.5 5.5 0 0 1 5 14.5V9Z"}],["$","path",null,{"d":"M9 13h.01"}],["$","path",null,{"d":"M15 13h.01"}]]}],["$","span",null,{"className":"docs-meta-title-label","children":"OpenCat"}]]}]
2c:["$","span",null,{"className":"docs-meta-title","children":[["$","svg",null,{"viewBox":"0 0 24 24","fill":"none","stroke":"#10b981","strokeWidth":1.8,"strokeLinecap":"round","strokeLinejoin":"round","aria-hidden":true,"className":"docs-meta-title-icon","children":["$","path",null,{"d":"M5 6.5h14a2 2 0 0 1 2 2v5.8a2 2 0 0 1-2 2H9l-4 3v-3H5a2 2 0 0 1-2-2V8.5a2 2 0 0 1 2-2Z"}]}],["$","span",null,{"className":"docs-meta-title-label","children":"NextChat"}]]}]
2d:["$","span",null,{"className":"docs-meta-title","children":[["$","svg",null,{"viewBox":"0 0 24 24","fill":"none","stroke":"#3b82f6","strokeWidth":1.8,"strokeLinecap":"round","strokeLinejoin":"round","aria-hidden":true,"className":"docs-meta-title-icon","children":[["$","circle",null,{"cx":"12","cy":"12","r":"9"}],["$","path",null,{"d":"M3 12h18"}],["$","path",null,{"d":"M12 3a14 14 0 0 1 0 18"}],["$","path",null,{"d":"M12 3a14 14 0 0 0 0 18"}]]}],["$","span",null,{"className":"docs-meta-title-label","children":"Immersive Translate"}]]}]
2e:["$","span",null,{"className":"docs-meta-title","children":[["$","svg",null,{"viewBox":"0 0 24 24","fill":"none","stroke":"#9ca3af","strokeWidth":1.8,"strokeLinecap":"round","strokeLinejoin":"round","aria-hidden":true,"className":"docs-meta-title-icon","children":[["$","circle",null,{"cx":"6","cy":"6","r":"1.5"}],["$","circle",null,{"cx":"18","cy":"6","r":"1.5"}],["$","circle",null,{"cx":"6","cy":"18","r":"1.5"}],["$","circle",null,{"cx":"18","cy":"18","r":"1.5"}]]}],["$","span",null,{"className":"docs-meta-title-label","children":"Other clients"}]]}]
2f:["$","header",null,{"className":"nextra-navbar x:sticky x:top-0 x:z-30 x:w-full x:bg-transparent x:print:hidden x:max-md:[.nextra-banner:not([class$=hidden])~&]:top-(--nextra-banner-height)","children":[["$","div",null,{"className":"nextra-navbar-blur x:absolute x:-z-1 x:size-full nextra-border x:border-b x:backdrop-blur-md x:bg-nextra-bg/70"}],["$","nav",null,{"style":{"height":"var(--nextra-navbar-height)"},"className":"x:mx-auto x:flex x:max-w-(--nextra-content-width) x:items-center x:gap-4 x:pl-[max(env(safe-area-inset-left),1.5rem)] x:pr-[max(env(safe-area-inset-right),1.5rem)] x:justify-end","children":[["$","$L38",null,{"href":"https://hao.ai","className":"x:flex x:items-center x:me-auto x:transition-opacity x:focus-visible:nextra-focus x:hover:opacity-75","aria-label":"Home page","children":["$","span",null,{"className":"pohu-docs-logo","aria-label":"Hao.ai","children":[["$","svg",null,{"aria-hidden":"true","className":"pohu-docs-logo-mark","viewBox":"0 0 160 160","xmlns":"http://www.w3.org/2000/svg","children":["$","path",null,{"className":"pohu-docs-brand-mark","d":"M49 30C42.3726 30 37 35.3726 37 42V118C37 124.627 42.3726 130 49 130C55.6274 130 61 124.627 61 118V42C61 35.3726 55.6274 30 49 30ZM111 30C104.373 30 99 35.3726 99 42V118C99 124.627 104.373 130 111 130C117.627 130 123 124.627 123 118V42C123 35.3726 117.627 30 111 30ZM80 92.5C86.9036 92.5 92.5 86.9036 92.5 80C92.5 73.0964 86.9036 67.5 80 67.5C73.0964 67.5 67.5 73.0964 67.5 80C67.5 86.9036 73.0964 92.5 80 92.5Z","fill":"currentColor","fillRule":"evenodd","clipRule":"evenodd"}]}],["$","span",null,{"className":"pohu-docs-logo-text","children":[["$","span",null,{"children":"Hao"}],["$","span",null,{"className":"pohu-docs-logo-dot","children":"."}],["$","span",null,{"children":"ai"}]]}]]}]}],["$","$L39",null,{"className":"","children":["$undefined","$undefined",["$","$L3a",null,{"locale":"en"}]]}]]}]]}]
30:["$","div",null,{"className":"x:bg-gray-100 x:pb-[env(safe-area-inset-bottom)] x:dark:bg-neutral-900 x:print:bg-transparent","children":[["$","$L3b",null,{"children":["$","div",null,{"className":"x:mx-auto x:flex x:max-w-(--nextra-content-width) x:gap-2 x:py-2 x:px-4","children":[["$","$L3c",null,{}],["$","$L3d",null,{}]]}]}],["$","hr",null,{"className":"nextra-border"}],["$","footer",null,{"className":"x:mx-auto x:flex x:max-w-(--nextra-content-width) x:justify-center x:py-12 x:text-gray-600 x:dark:text-gray-400 x:md:justify-start x:pl-[max(env(safe-area-inset-left),1.5rem)] x:pr-[max(env(safe-area-inset-right),1.5rem)]","children":["$","div",null,{"className":"pohu-docs-footer","children":[["$","span",null,{"children":["Â© ",2026," HaoAI"]}],["$","span",null,{"children":[["$","a",null,{"href":"https://hao.ai/privacy","children":"Privacy"}],["$","a",null,{"href":"https://hao.ai/terms-of-service","children":"Terms"}],["$","a",null,{"href":"https://hao.ai","children":"Back to HaoAI"}]]}]]}]}]]}]
31:["$","$L3e",null,{}]
32:["$","$L2",null,{"parallelRouterKey":"children","error":"$undefined","errorStyles":"$undefined","errorScripts":"$undefined","template":["$","$L3",null,{}],"templateStyles":"$undefined","templateScripts":"$undefined","notFound":[["$","main",null,{"className":"nextra-content","children":[["$","h1",null,{"children":"404"}],["$","p",null,{"children":"This documentation page is unavailable."}],["$","$L38",null,{"href":"/","children":"Back to documentation"}]]}],[]],"forbidden":"$undefined","unauthorized":"$undefined"}]
42:T11f7,---
title: "API Overview"
description: "HaoAI API overview â€” OpenAI-compatible, Anthropic, and SpaceXAI protocols, authentication, error codes, and rate limits"
---

import { Callout } from 'nextra/components'

# API Overview


HaoAI offers three API protocol families: OpenAI-compatible, Anthropic native, and SpaceXAI.


## Base URL


| Protocol | Base URL | Description |
| --- | --- | --- |
| **OpenAI Compatible** | `https://api.hao.ai/v1` | Compatible with OpenAI SDK, supports all models |
| **Anthropic Native** | `https://api.hao.ai/anthropic` | Compatible with Anthropic SDK, native Claude experience |
| **SpaceXAI Protocol** | `https://api.hao.ai/x-ai` | SpaceXAI route with an xAI OpenAI-compatible text JSON/SSE shape |


## Authentication


All protocols use a unified HaoAI API Key, but the header format varies by protocol:


| Protocol | Header | Format |
| --- | --- | --- |
| OpenAI | `Authorization` | `Bearer sk-xxx` |
| Anthropic | `x-api-key` | `sk-xxx` |
| SpaceXAI | `Authorization` | `Bearer sk-xxx` |


See the [Authentication guide](/en/develop/authentication) for details.


## Available Endpoints


### OpenAI Compatible Protocol


| Endpoint | Method | Description |
| --- | --- | --- |
| `/v1/chat/completions` | POST | Create chat completion |
| `/v1/models` | GET | List available models |
| `/v1/models/{model_id}` | GET | Get model details |
| `/v1/images/generations` | POST | Generate images |


### Anthropic Native Protocol


| Endpoint | Method | Description |
| --- | --- | --- |
| `/anthropic/v1/messages` | POST | Create Messages |

### SpaceXAI Protocol

| Endpoint | Method | Description |
| --- | --- | --- |
| `/x-ai/v1/chat/completions` | POST | Create a Grok chat completion. See [Chat Completions](/en/api/x-ai/chat-completions) |
| `/x-ai/v1/responses` | POST | Create a SpaceXAI Responses API response. See [Responses](/en/api/x-ai/responses) |
| `/x-ai/v1/models` | GET | List available Grok models. See [Models](/en/api/x-ai/models) |
| `/x-ai/v1/models/{model_id}` | GET | Get a Grok model detail |


### HaoAI OpenAPI (Platform)


Protocol-agnostic platform endpoints; see each endpoint's documentation for its authentication method.


| Endpoint | Method | Description |
| --- | --- | --- |
| `/v1/user/balance` | GET | [Balance query](/en/api/openapi/balance), compatible with cc-switch, authenticated with the HaoAI API Key |
| `hao.ai/api/v1/usage/billing-report` | GET | [Billing report](/en/api/openapi/billing-report), actual spend by model for the authenticated API key |
| `hao.ai/api/provider/pricing` | GET | [Real-time pricing](/en/api/openapi/provider-pricing), hvoy-compatible, HMAC-signed or public access |


## Rate Limits


HaoAI uses pay-as-you-go pricing with a unified rate policy for all users:


| Limit | Quota |
| --- | --- |
| RPM (requests/minute) | 100 (team-aggregated) |
| TPM (tokens/minute) | Unlimited |


<Callout type="info">

RPM is aggregated at the team level â€” multiple API Keys under the same team share a single quota. If you need a higher RPM quota, contact [support@hao.ai](mailto:support@hao.ai) to request an adjustment.

</Callout>


When rate-limited, the API returns `429 Too Many Requests` with the following response headers:


```http
x-ratelimit-limit-requests: 100
x-ratelimit-remaining-requests: 0
x-ratelimit-reset-requests: 1s
```


## Error Codes


All protocols return unified HTTP status codes:


| Status Code | Description | Common Causes |
| --- | --- | --- |
| `200` | Success | â€” |
| `400` | Bad Request | Invalid parameters, missing required fields |
| `401` | Unauthorized | Invalid or expired API Key |
| `403` | Forbidden | Account lacks access to the model |
| `404` | Not Found | Incorrect model ID |
| `429` | Rate Limited | Exceeded rate limit |
| `500` | Server Error | Internal error, please retry |
| `502` | Upstream Error | Model provider service issue |
| `503` | Service Unavailable | Under maintenance |


### Error Response Format


```json
{
  "error": {
    "code": "invalid_api_key",
    "message": "The provided API Key is invalid. Please check and try again.",
    "type": "authentication_error"
  }
}
```


## HaoAI Extension Parameters


HaoAI provides extension parameters on top of standard protocols for advanced routing and fallback control:


```json
{
  "model": "openai/gpt-6-astra",
  "messages": [...],
  "provider": {
    "routing": "cost",
    "fallback": ["anthropic/claude-fable-5-1", "x-ai/grok-4.6"]
  }
}
```


See [Provider Routing](/en/develop/advanced/provider-routing) and [Fallback](/en/develop/advanced/fallback) for details.5:[["$","script",null,{"type":"application/ld+json","dangerouslySetInnerHTML":{"__html":"[{\"@context\":\"https://schema.org\",\"@type\":\"TechArticle\",\"@id\":\"https://hao.ai/docs/api#techarticle\",\"headline\":\"API Overview\",\"description\":\"Use HaoAI APIs for GPT, Claude, and Grok. Choose the Base URL for your protocol and review authentication, endpoints, errors, and rate limits.\",\"url\":\"https://hao.ai/docs/api\",\"inLanguage\":\"en\",\"mainEntityOfPage\":{\"@id\":\"https://hao.ai/docs/api\"},\"publisher\":{\"@type\":\"Organization\",\"name\":\"HaoAI\",\"url\":\"https://hao.ai\"}},{\"@context\":\"https://schema.org\",\"@type\":\"BreadcrumbList\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"HaoAI\",\"item\":\"https://hao.ai\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"HaoAI Docs\",\"item\":\"https://hao.ai/docs\"},{\"@type\":\"ListItem\",\"name\":\"API Overview\",\"item\":\"https://hao.ai/docs/api\",\"position\":3}]}]"}}],["$","div",null,{"className":"x:mx-auto x:flex x:max-w-(--nextra-content-width)","children":["$","$L3f",null,{"value":[{"value":"Base URL","id":"base-url","depth":2},{"value":"Authentication","id":"authentication","depth":2},{"value":"Available Endpoints","id":"available-endpoints","depth":2},{"value":"OpenAI Compatible Protocol","id":"openai-compatible-protocol","depth":3},{"value":"Anthropic Native Protocol","id":"anthropic-native-protocol","depth":3},{"value":"SpaceXAI Protocol","id":"spacexai-protocol","depth":3},{"value":"HaoAI OpenAPI (Platform)","id":"haoai-openapi-platform","depth":3},{"value":"Rate Limits","id":"rate-limits","depth":2},{"value":"Error Codes","id":"error-codes","depth":2},{"value":"Error Response Format","id":"error-response-format","depth":3},{"value":"HaoAI Extension Parameters","id":"haoai-extension-parameters","depth":2}],"children":[["$","$L40",null,{}],["$","$L41",null,{"metadata":{"title":"API Overview","description":"HaoAI API overview â€” OpenAI-compatible, Anthropic, and SpaceXAI protocols, authentication, error codes, and rate limits","filePath":"content/en/api.mdx"},"bottomContent":"$undefined","sourceCode":"$42","children":["$L43","$L44"]}]]}]}]]
45:I[99114,["545","static/chunks/c16f53c3-586ea805d2f7b835.js","619","static/chunks/619-f072ac750404f9da.js","761","static/chunks/761-63001de2e5aab932.js","870","static/chunks/870-fbaf108ffcb8663c.js","344","static/chunks/app/%5Blocale%5D/%5B%5B...mdxPath%5D%5D/page-7673a69a0ef50613.js"],"HeadingAnchor"]
43:["$","div",null,{"id":"nextra-skip-nav"}]
44:["$","main",null,{"data-pagefind-body":true,"children":[null,[["$","h1",null,{"id":"$undefined","className":"x:tracking-tight x:text-slate-900 x:dark:text-slate-100 x:font-bold x:mt-2 x:text-4xl","children":["API Overview","$undefined"]}],"\n",["$","p",null,{"className":"x:not-first:mt-[1.25em] x:leading-7","children":"HaoAI offers three API protocol families: OpenAI-compatible, Anthropic native, and SpaceXAI."}],"\n",["$","h2",null,{"id":"base-url","className":"x:tracking-tight x:text-slate-900 x:dark:text-slate-100 x:font-semibold x:target:animate-[fade-in_1.5s] x:mt-10 x:border-b x:pb-1 x:text-3xl nextra-border","children":["Base URL",["$","$L45",null,{"id":"base-url"}]]}],"\n",["$","table",null,{"className":"x:block x:overflow-x-auto nextra-scrollbar x:not-first:mt-[1.25em] x:p-0","children":[["$","thead",null,{"children":["$","tr",null,{"children":[["$","th",null,{"children":"Protocol","className":"x:m-0 x:border x:border-gray-300 x:px-4 x:py-2 x:font-semibold x:dark:border-gray-600"}],["$","th",null,{"children":"Base URL","className":"x:m-0 x:border x:border-gray-300 x:px-4 x:py-2 x:font-semibold x:dark:border-gray-600"}],["$","th",null,{"children":"Description","className":"x:m-0 x:border x:border-gray-300 x:px-4 x:py-2 x:font-semibold x:dark:border-gray-600"}]],"className":"x:m-0 x:border-t x:border-gray-300 x:p-0 x:dark:border-gray-600 x:even:bg-gray-100 x:even:dark:bg-gray-600/20"}]}],["$","tbody",null,{"children":[["$","tr",null,{"children":[["$","td",null,{"children":["$","strong",null,{"children":"OpenAI Compatible"}],"className":"x:m-0 x:border x:border-gray-300 x:px-4 x:py-2 x:dark:border-gray-600"}],["$","td",null,{"children":["$","code",null,{"className":"nextra-code","dir":"ltr","children":"https://api.hao.ai/v1"}],"className":"x:m-0 x:border x:border-gray-300 x:px-4 x:py-2 x:dark:border-gray-600"}],["$","td",null,{"children":"Compatible with OpenAI SDK, supports all models","className":"x:m-0 x:border x:border-gray-300 x:px-4 x:py-2 x:dark:border-gray-600"}]],"className":"x:m-0 x:border-t x:border-gray-300 x:p-0 x:dark:border-gray-600 x:even:bg-gray-100 x:even:dark:bg-gray-600/20"}],["$","tr",null,{"children":[["$","td",null,{"children":["$","strong",null,{"children":"Anthropic Native"}],"className":"x:m-0 x:border x:border-gray-300 x:px-4 x:py-2 x:dark:border-gray-600"}],["$","td",null,{"children":["$","code",null,{"className":"nextra-code","dir":"ltr","children":"https://api.hao.ai/anthropic"}],"className":"x:m-0 x:border x:border-gray-300 x:px-4 x:py-2 x:dark:border-gray-600"}],["$","td",null,{"children":"Compatible with Anthropic SDK, native Claude experience","className":"x:m-0 x:border x:border-gray-300 x:px-4 x:py-2 x:dark:border-gray-600"}]],"className":"x:m-0 x:border-t x:border-gray-300 x:p-0 x:dark:border-gray-600 x:even:bg-gray-100 x:even:dark:bg-gray-600/20"}],["$","tr",null,{"children":[["$","td",null,{"children":["$","strong",null,{"children":"SpaceXAI Protocol"}],"className":"x:m-0 x:border x:border-gray-300 x:px-4 x:py-2 x:dark:border-gray-600"}],["$","td",null,{"children":["$","code",null,{"className":"nextra-code","dir":"ltr","children":"https://api.hao.ai/x-ai"}],"className":"x:m-0 x:border x:border-gray-300 x:px-4 x:py-2 x:dark:border-gray-600"}],["$","td",null,{"children":"SpaceXAI route with an xAI OpenAI-compatible text JSON/SSE shape","className":"x:m-0 x:border x:border-gray-300 x:px-4 x:py-2 x:dark:border-gray-600"}]],"className":"x:m-0 x:border-t x:border-gray-300 x:p-0 x:dark:border-gray-600 x:even:bg-gray-100 x:even:dark:bg-gray-600/20"}]]}]]}],"\n",["$","h2",null,{"id":"authentication","className":"x:tracking-tight x:text-slate-900 x:dark:text-slate-100 x:font-semibold x:target:animate-[fade-in_1.5s] x:mt-10 x:border-b x:pb-1 x:text-3xl nextra-border","children":["Authentication",["$","$L45",null,{"id":"authentication"}]]}],"\n",["$","p",null,{"className":"x:not-first:mt-[1.25em] x:leading-7","children":"All protocols use a unified HaoAI API Key, but the header format varies by protocol:"}],"\n","$L46","\n","$L47","\n","$L48","\n","$L49","\n","$L4a","\n","$L4b","\n","$L4c","\n","$L4d","\n","$L4e","\n","$L4f","\n","$L50","\n","$L51","\n","$L52","\n","$L53","\n","$L54","\n","$L55","\n","$L56","\n","$L57","\n","$L58","\n","$L59","\n","$L5a","\n","$L5b","\n","$L5c","\n","$L5d","\n","$L5e","\n","$L5f","\n","$L60"]]}]
61:I[63692,["545","static/chunks/c16f53c3-586ea805d2f7b835.js","619","static/chunks/619-f072ac750404f9da.js","761","static/chunks/761-63001de2e5aab932.js","870","static/chunks/870-fbaf108ffcb8663c.js","344","static/chunks/app/%5Blocale%5D/%5B%5B...mdxPath%5D%5D/page-7673a69a0ef50613.js"],"ToggleWordWrapButton"]
62:I[22780,["545","static/chunks/c16f53c3-586ea805d2f7b835.js","619","static/chunks/619-f072ac750404f9da.js","761","static/chunks/761-63001de2e5aab932.js","870","static/chunks/870-fbaf108ffcb8663c.js","344","static/chunks/app/%5Blocale%5D/%5B%5B...mdxPath%5D%5D/page-7673a69a0ef50613.js"],"CopyToClipboard"]
46:["$","table",null,{"className":"x:block x:overflow-x-auto nextra-scrollbar x:not-first:mt-[1.25em] x:p-0","children":[["$","thead",null,{"children":["$","tr",null,{"children":[["$","th",null,{"children":"Protocol","className":"x:m-0 x:border x:border-gray-300 x:px-4 x:py-2 x:font-semibold x:dark:border-gray-600"}],["$","th",null,{"children":"Header","className":"x:m-0 x:border x:border-gray-300 x:px-4 x:py-2 x:font-semibold x:dark:border-gray-600"}],["$","th",null,{"children":"Format","className":"x:m-0 x:border x:border-gray-300 x:px-4 x:py-2 x:font-semibold x:dark:border-gray-600"}]],"className":"x:m-0 x:border-t x:border-gray-300 x:p-0 x:dark:border-gray-600 x:even:bg-gray-100 x:even:dark:bg-gray-600/20"}]}],["$","tbody",null,{"children":[["$","tr",null,{"children":[["$","td",null,{"children":"OpenAI","className":"x:m-0 x:border x:border-gray-300 x:px-4 x:py-2 x:dark:border-gray-600"}],["$","td",null,{"children":["$","code",null,{"className":"nextra-code","dir":"ltr","children":"Authorization"}],"className":"x:m-0 x:border x:border-gray-300 x:px-4 x:py-2 x:dark:border-gray-600"}],["$","td",null,{"children":["$","code",null,{"className":"nextra-code","dir":"ltr","children":"Bearer sk-xxx"}],"className":"x:m-0 x:border x:border-gray-300 x:px-4 x:py-2 x:dark:border-gray-600"}]],"className":"x:m-0 x:border-t x:border-gray-300 x:p-0 x:dark:border-gray-600 x:even:bg-gray-100 x:even:dark:bg-gray-600/20"}],["$","tr",null,{"children":[["$","td",null,{"children":"Anthropic","className":"x:m-0 x:border x:border-gray-300 x:px-4 x:py-2 x:dark:border-gray-600"}],["$","td",null,{"children":["$","code",null,{"className":"nextra-code","dir":"ltr","children":"x-api-key"}],"className":"x:m-0 x:border x:border-gray-300 x:px-4 x:py-2 x:dark:border-gray-600"}],["$","td",null,{"children":["$","code",null,{"className":"nextra-code","dir":"ltr","children":"sk-xxx"}],"className":"x:m-0 x:border x:border-gray-300 x:px-4 x:py-2 x:dark:border-gray-600"}]],"className":"x:m-0 x:border-t x:border-gray-300 x:p-0 x:dark:border-gray-600 x:even:bg-gray-100 x:even:dark:bg-gray-600/20"}],["$","tr",null,{"children":[["$","td",null,{"children":"SpaceXAI","className":"x:m-0 x:border x:border-gray-300 x:px-4 x:py-2 x:dark:border-gray-600"}],["$","td",null,{"children":["$","code",null,{"className":"nextra-code","dir":"ltr","children":"Authorization"}],"className":"x:m-0 x:border x:border-gray-300 x:px-4 x:py-2 x:dark:border-gray-600"}],["$","td",null,{"children":["$","code",null,{"className":"nextra-code","dir":"ltr","children":"Bearer sk-xxx"}],"className":"x:m-0 x:border x:border-gray-300 x:px-4 x:py-2 x:dark:border-gray-600"}]],"className":"x:m-0 x:border-t x:border-gray-300 x:p-0 x:dark:border-gray-600 x:even:bg-gray-100 x:even:dark:bg-gray-600/20"}]]}]]}]
47:["$","p",null,{"className":"x:not-first:mt-[1.25em] x:leading-7","children":["See the ",["$","$L38",null,{"href":"/develop/authentication","prefetch":"$undefined","className":"x:focus-visible:nextra-focus x:text-primary-600 x:underline x:hover:no-underline x:decoration-from-font x:[text-underline-position:from-font]","children":"Authentication guide"}]," for details."]}]
48:["$","h2",null,{"id":"available-endpoints","className":"x:tracking-tight x:text-slate-900 x:dark:text-slate-100 x:font-semibold x:target:animate-[fade-in_1.5s] x:mt-10 x:border-b x:pb-1 x:text-3xl nextra-border","children":["Available Endpoints",["$","$L45",null,{"id":"available-endpoints"}]]}]
49:["$","h3",null,{"id":"openai-compatible-protocol","className":"x:tracking-tight x:text-slate-900 x:dark:text-slate-100 x:font-semibold x:target:animate-[fade-in_1.5s] x:mt-8 x:text-2xl","children":["OpenAI Compatible Protocol",["$","$L45",null,{"id":"openai-compatible-protocol"}]]}]
4a:["$","table",null,{"className":"x:block x:overflow-x-auto nextra-scrollbar x:not-first:mt-[1.25em] x:p-0","children":[["$","thead",null,{"children":["$","tr",null,{"children":[["$","th",null,{"children":"Endpoint","className":"x:m-0 x:border x:border-gray-300 x:px-4 x:py-2 x:font-semibold x:dark:border-gray-600"}],["$","th",null,{"children":"Method","className":"x:m-0 x:border x:border-gray-300 x:px-4 x:py-2 x:font-semibold x:dark:border-gray-600"}],["$","th",null,{"children":"Description","className":"x:m-0 x:border x:border-gray-300 x:px-4 x:py-2 x:font-semibold x:dark:border-gray-600"}]],"className":"x:m-0 x:border-t x:border-gray-300 x:p-0 x:dark:border-gray-600 x:even:bg-gray-100 x:even:dark:bg-gray-600/20"}]}],["$","tbody",null,{"children":[["$","tr",null,{"children":[["$","td",null,{"children":["$","code",null,{"className":"nextra-code","dir":"ltr","children":"/v1/chat/completions"}],"className":"x:m-0 x:border x:border-gray-300 x:px-4 x:py-2 x:dark:border-gray-600"}],["$","td",null,{"children":"POST","className":"x:m-0 x:border x:border-gray-300 x:px-4 x:py-2 x:dark:border-gray-600"}],["$","td",null,{"children":"Create chat completion","className":"x:m-0 x:border x:border-gray-300 x:px-4 x:py-2 x:dark:border-gray-600"}]],"className":"x:m-0 x:border-t x:border-gray-300 x:p-0 x:dark:border-gray-600 x:even:bg-gray-100 x:even:dark:bg-gray-600/20"}],["$","tr",null,{"children":[["$","td",null,{"children":["$","code",null,{"className":"nextra-code","dir":"ltr","children":"/v1/models"}],"className":"x:m-0 x:border x:border-gray-300 x:px-4 x:py-2 x:dark:border-gray-600"}],["$","td",null,{"children":"GET","className":"x:m-0 x:border x:border-gray-300 x:px-4 x:py-2 x:dark:border-gray-600"}],["$","td",null,{"children":"List available models","className":"x:m-0 x:border x:border-gray-300 x:px-4 x:py-2 x:dark:border-gray-600"}]],"className":"x:m-0 x:border-t x:border-gray-300 x:p-0 x:dark:border-gray-600 x:even:bg-gray-100 x:even:dark:bg-gray-600/20"}],["$","tr",null,{"children":[["$","td",null,{"children":["$","code",null,{"className":"nextra-code","dir":"ltr","children":"/v1/models/{model_id}"}],"className":"x:m-0 x:border x:border-gray-300 x:px-4 x:py-2 x:dark:border-gray-600"}],["$","td",null,{"children":"GET","className":"x:m-0 x:border x:border-gray-300 x:px-4 x:py-2 x:dark:border-gray-600"}],["$","td",null,{"children":"Get model details","className":"x:m-0 x:border x:border-gray-300 x:px-4 x:py-2 x:dark:border-gray-600"}]],"className":"x:m-0 x:border-t x:border-gray-300 x:p-0 x:dark:border-gray-600 x:even:bg-gray-100 x:even:dark:bg-gray-600/20"}],["$","tr",null,{"children":[["$","td",null,{"children":["$","code",null,{"className":"nextra-code","dir":"ltr","children":"/v1/images/generations"}],"className":"x:m-0 x:border x:border-gray-300 x:px-4 x:py-2 x:dark:border-gray-600"}],["$","td",null,{"children":"POST","className":"x:m-0 x:border x:border-gray-300 x:px-4 x:py-2 x:dark:border-gray-600"}],["$","td",null,{"children":"Generate images","className":"x:m-0 x:border x:border-gray-300 x:px-4 x:py-2 x:dark:border-gray-600"}]],"className":"x:m-0 x:border-t x:border-gray-300 x:p-0 x:dark:border-gray-600 x:even:bg-gray-100 x:even:dark:bg-gray-600/20"}]]}]]}]
4b:["$","h3",null,{"id":"anthropic-native-protocol","className":"x:tracking-tight x:text-slate-900 x:dark:text-slate-100 x:font-semibold x:target:animate-[fade-in_1.5s] x:mt-8 x:text-2xl","children":["Anthropic Native Protocol",["$","$L45",null,{"id":"anthropic-native-protocol"}]]}]
4c:["$","table",null,{"className":"x:block x:overflow-x-auto nextra-scrollbar x:not-first:mt-[1.25em] x:p-0","children":[["$","thead",null,{"children":["$","tr",null,{"children":[["$","th",null,{"children":"Endpoint","className":"x:m-0 x:border x:border-gray-300 x:px-4 x:py-2 x:font-semibold x:dark:border-gray-600"}],["$","th",null,{"children":"Method","className":"x:m-0 x:border x:border-gray-300 x:px-4 x:py-2 x:font-semibold x:dark:border-gray-600"}],["$","th",null,{"children":"Description","className":"x:m-0 x:border x:border-gray-300 x:px-4 x:py-2 x:font-semibold x:dark:border-gray-600"}]],"className":"x:m-0 x:border-t x:border-gray-300 x:p-0 x:dark:border-gray-600 x:even:bg-gray-100 x:even:dark:bg-gray-600/20"}]}],["$","tbody",null,{"children":["$","tr",null,{"children":[["$","td",null,{"children":["$","code",null,{"className":"nextra-code","dir":"ltr","children":"/anthropic/v1/messages"}],"className":"x:m-0 x:border x:border-gray-300 x:px-4 x:py-2 x:dark:border-gray-600"}],["$","td",null,{"children":"POST","className":"x:m-0 x:border x:border-gray-300 x:px-4 x:py-2 x:dark:border-gray-600"}],["$","td",null,{"children":"Create Messages","className":"x:m-0 x:border x:border-gray-300 x:px-4 x:py-2 x:dark:border-gray-600"}]],"className":"x:m-0 x:border-t x:border-gray-300 x:p-0 x:dark:border-gray-600 x:even:bg-gray-100 x:even:dark:bg-gray-600/20"}]}]]}]
4d:["$","h3",null,{"id":"spacexai-protocol","className":"x:tracking-tight x:text-slate-900 x:dark:text-slate-100 x:font-semibold x:target:animate-[fade-in_1.5s] x:mt-8 x:text-2xl","children":["SpaceXAI Protocol",["$","$L45",null,{"id":"spacexai-protocol"}]]}]
4e:["$","table",null,{"className":"x:block x:overflow-x-auto nextra-scrollbar x:not-first:mt-[1.25em] x:p-0","children":[["$","thead",null,{"children":["$","tr",null,{"children":[["$","th",null,{"children":"Endpoint","className":"x:m-0 x:border x:border-gray-300 x:px-4 x:py-2 x:font-semibold x:dark:border-gray-600"}],["$","th",null,{"children":"Method","className":"x:m-0 x:border x:border-gray-300 x:px-4 x:py-2 x:font-semibold x:dark:border-gray-600"}],["$","th",null,{"children":"Description","className":"x:m-0 x:border x:border-gray-300 x:px-4 x:py-2 x:font-semibold x:dark:border-gray-600"}]],"className":"x:m-0 x:border-t x:border-gray-300 x:p-0 x:dark:border-gray-600 x:even:bg-gray-100 x:even:dark:bg-gray-600/20"}]}],["$","tbody",null,{"children":[["$","tr",null,{"children":[["$","td",null,{"children":["$","code",null,{"className":"nextra-code","dir":"ltr","children":"/x-ai/v1/chat/completions"}],"className":"x:m-0 x:border x:border-gray-300 x:px-4 x:py-2 x:dark:border-gray-600"}],["$","td",null,{"children":"POST","className":"x:m-0 x:border x:border-gray-300 x:px-4 x:py-2 x:dark:border-gray-600"}],["$","td",null,{"children":["Create a Grok chat completion. See ",["$","$L38",null,{"href":"/api/x-ai/chat-completions","prefetch":"$undefined","className":"x:focus-visible:nextra-focus x:text-primary-600 x:underline x:hover:no-underline x:decoration-from-font x:[text-underline-position:from-font]","children":"Chat Completions"}]],"className":"x:m-0 x:border x:border-gray-300 x:px-4 x:py-2 x:dark:border-gray-600"}]],"className":"x:m-0 x:border-t x:border-gray-300 x:p-0 x:dark:border-gray-600 x:even:bg-gray-100 x:even:dark:bg-gray-600/20"}],["$","tr",null,{"children":[["$","td",null,{"children":["$","code",null,{"className":"nextra-code","dir":"ltr","children":"/x-ai/v1/responses"}],"className":"x:m-0 x:border x:border-gray-300 x:px-4 x:py-2 x:dark:border-gray-600"}],["$","td",null,{"children":"POST","className":"x:m-0 x:border x:border-gray-300 x:px-4 x:py-2 x:dark:border-gray-600"}],["$","td",null,{"children":["Create a SpaceXAI Responses API response. See ",["$","$L38",null,{"href":"/api/x-ai/responses","prefetch":"$undefined","className":"x:focus-visible:nextra-focus x:text-primary-600 x:underline x:hover:no-underline x:decoration-from-font x:[text-underline-position:from-font]","children":"Responses"}]],"className":"x:m-0 x:border x:border-gray-300 x:px-4 x:py-2 x:dark:border-gray-600"}]],"className":"x:m-0 x:border-t x:border-gray-300 x:p-0 x:dark:border-gray-600 x:even:bg-gray-100 x:even:dark:bg-gray-600/20"}],["$","tr",null,{"children":[["$","td",null,{"children":["$","code",null,{"className":"nextra-code","dir":"ltr","children":"/x-ai/v1/models"}],"className":"x:m-0 x:border x:border-gray-300 x:px-4 x:py-2 x:dark:border-gray-600"}],["$","td",null,{"children":"GET","className":"x:m-0 x:border x:border-gray-300 x:px-4 x:py-2 x:dark:border-gray-600"}],["$","td",null,{"children":["List available Grok models. See ",["$","$L38",null,{"href":"/api/x-ai/models","prefetch":"$undefined","className":"x:focus-visible:nextra-focus x:text-primary-600 x:underline x:hover:no-underline x:decoration-from-font x:[text-underline-position:from-font]","children":"Models"}]],"className":"x:m-0 x:border x:border-gray-300 x:px-4 x:py-2 x:dark:border-gray-600"}]],"className":"x:m-0 x:border-t x:border-gray-300 x:p-0 x:dark:border-gray-600 x:even:bg-gray-100 x:even:dark:bg-gray-600/20"}],["$","tr",null,{"children":[["$","td",null,{"children":["$","code",null,{"className":"nextra-code","dir":"ltr","children":"/x-ai/v1/models/{model_id}"}],"className":"x:m-0 x:border x:border-gray-300 x:px-4 x:py-2 x:dark:border-gray-600"}],["$","td",null,{"children":"GET","className":"x:m-0 x:border x:border-gray-300 x:px-4 x:py-2 x:dark:border-gray-600"}],["$","td",null,{"children":"Get a Grok model detail","className":"x:m-0 x:border x:border-gray-300 x:px-4 x:py-2 x:dark:border-gray-600"}]],"className":"x:m-0 x:border-t x:border-gray-300 x:p-0 x:dark:border-gray-600 x:even:bg-gray-100 x:even:dark:bg-gray-600/20"}]]}]]}]
4f:["$","h3",null,{"id":"haoai-openapi-platform","className":"x:tracking-tight x:text-slate-900 x:dark:text-slate-100 x:font-semibold x:target:animate-[fade-in_1.5s] x:mt-8 x:text-2xl","children":["HaoAI OpenAPI (Platform)",["$","$L45",null,{"id":"haoai-openapi-platform"}]]}]
50:["$","p",null,{"className":"x:not-first:mt-[1.25em] x:leading-7","children":"Protocol-agnostic platform endpoints; see each endpointâ€™s documentation for its authentication method."}]
51:["$","table",null,{"className":"x:block x:overflow-x-auto nextra-scrollbar x:not-first:mt-[1.25em] x:p-0","children":[["$","thead",null,{"children":["$","tr",null,{"children":[["$","th",null,{"children":"Endpoint","className":"x:m-0 x:border x:border-gray-300 x:px-4 x:py-2 x:font-semibold x:dark:border-gray-600"}],["$","th",null,{"children":"Method","className":"x:m-0 x:border x:border-gray-300 x:px-4 x:py-2 x:font-semibold x:dark:border-gray-600"}],["$","th",null,{"children":"Description","className":"x:m-0 x:border x:border-gray-300 x:px-4 x:py-2 x:font-semibold x:dark:border-gray-600"}]],"className":"x:m-0 x:border-t x:border-gray-300 x:p-0 x:dark:border-gray-600 x:even:bg-gray-100 x:even:dark:bg-gray-600/20"}]}],["$","tbody",null,{"children":[["$","tr",null,{"children":[["$","td",null,{"children":["$","code",null,{"className":"nextra-code","dir":"ltr","children":"/v1/user/balance"}],"className":"x:m-0 x:border x:border-gray-300 x:px-4 x:py-2 x:dark:border-gray-600"}],["$","td",null,{"children":"GET","className":"x:m-0 x:border x:border-gray-300 x:px-4 x:py-2 x:dark:border-gray-600"}],["$","td",null,{"children":[["$","$L38",null,{"href":"/api/openapi/balance","prefetch":"$undefined","className":"x:focus-visible:nextra-focus x:text-primary-600 x:underline x:hover:no-underline x:decoration-from-font x:[text-underline-position:from-font]","children":"Balance query"}],", compatible with cc-switch, authenticated with the HaoAI API Key"],"className":"x:m-0 x:border x:border-gray-300 x:px-4 x:py-2 x:dark:border-gray-600"}]],"className":"x:m-0 x:border-t x:border-gray-300 x:p-0 x:dark:border-gray-600 x:even:bg-gray-100 x:even:dark:bg-gray-600/20"}],["$","tr",null,{"children":[["$","td",null,{"children":["$","code",null,{"className":"nextra-code","dir":"ltr","children":"hao.ai/api/v1/usage/billing-report"}],"className":"x:m-0 x:border x:border-gray-300 x:px-4 x:py-2 x:dark:border-gray-600"}],["$","td",null,{"children":"GET","className":"x:m-0 x:border x:border-gray-300 x:px-4 x:py-2 x:dark:border-gray-600"}],["$","td",null,{"children":[["$","$L38",null,{"href":"/api/openapi/billing-report","prefetch":"$undefined","className":"x:focus-visible:nextra-focus x:text-primary-600 x:underline x:hover:no-underline x:decoration-from-font x:[text-underline-position:from-font]","children":"Billing report"}],", actual spend by model for the authenticated API key"],"className":"x:m-0 x:border x:border-gray-300 x:px-4 x:py-2 x:dark:border-gray-600"}]],"className":"x:m-0 x:border-t x:border-gray-300 x:p-0 x:dark:border-gray-600 x:even:bg-gray-100 x:even:dark:bg-gray-600/20"}],["$","tr",null,{"children":[["$","td",null,{"children":["$","code",null,{"className":"nextra-code","dir":"ltr","children":"hao.ai/api/provider/pricing"}],"className":"x:m-0 x:border x:border-gray-300 x:px-4 x:py-2 x:dark:border-gray-600"}],["$","td",null,{"children":"GET","className":"x:m-0 x:border x:border-gray-300 x:px-4 x:py-2 x:dark:border-gray-600"}],["$","td",null,{"children":[["$","$L38",null,{"href":"/api/openapi/provider-pricing","prefetch":"$undefined","className":"x:focus-visible:nextra-focus x:text-primary-600 x:underline x:hover:no-underline x:decoration-from-font x:[text-underline-position:from-font]","children":"Real-time pricing"}],", hvoy-compatible, HMAC-signed or public access"],"className":"x:m-0 x:border x:border-gray-300 x:px-4 x:py-2 x:dark:border-gray-600"}]],"className":"x:m-0 x:border-t x:border-gray-300 x:p-0 x:dark:border-gray-600 x:even:bg-gray-100 x:even:dark:bg-gray-600/20"}]]}]]}]
52:["$","h2",null,{"id":"rate-limits","className":"x:tracking-tight x:text-slate-900 x:dark:text-slate-100 x:font-semibold x:target:animate-[fade-in_1.5s] x:mt-10 x:border-b x:pb-1 x:text-3xl nextra-border","children":["Rate Limits",["$","$L45",null,{"id":"rate-limits"}]]}]
53:["$","p",null,{"className":"x:not-first:mt-[1.25em] x:leading-7","children":"HaoAI uses pay-as-you-go pricing with a unified rate policy for all users:"}]
54:["$","table",null,{"className":"x:block x:overflow-x-auto nextra-scrollbar x:not-first:mt-[1.25em] x:p-0","children":[["$","thead",null,{"children":["$","tr",null,{"children":[["$","th",null,{"children":"Limit","className":"x:m-0 x:border x:border-gray-300 x:px-4 x:py-2 x:font-semibold x:dark:border-gray-600"}],["$","th",null,{"children":"Quota","className":"x:m-0 x:border x:border-gray-300 x:px-4 x:py-2 x:font-semibold x:dark:border-gray-600"}]],"className":"x:m-0 x:border-t x:border-gray-300 x:p-0 x:dark:border-gray-600 x:even:bg-gray-100 x:even:dark:bg-gray-600/20"}]}],["$","tbody",null,{"children":[["$","tr",null,{"children":[["$","td",null,{"children":"RPM (requests/minute)","className":"x:m-0 x:border x:border-gray-300 x:px-4 x:py-2 x:dark:border-gray-600"}],["$","td",null,{"children":"100 (team-aggregated)","className":"x:m-0 x:border x:border-gray-300 x:px-4 x:py-2 x:dark:border-gray-600"}]],"className":"x:m-0 x:border-t x:border-gray-300 x:p-0 x:dark:border-gray-600 x:even:bg-gray-100 x:even:dark:bg-gray-600/20"}],["$","tr",null,{"children":[["$","td",null,{"children":"TPM (tokens/minute)","className":"x:m-0 x:border x:border-gray-300 x:px-4 x:py-2 x:dark:border-gray-600"}],["$","td",null,{"children":"Unlimited","className":"x:m-0 x:border x:border-gray-300 x:px-4 x:py-2 x:dark:border-gray-600"}]],"className":"x:m-0 x:border-t x:border-gray-300 x:p-0 x:dark:border-gray-600 x:even:bg-gray-100 x:even:dark:bg-gray-600/20"}]]}]]}]
55:["$","div",null,{"className":"nextra-callout x:overflow-x-auto x:not-first:mt-[1.25em] x:flex x:rounded-lg x:border x:py-[.5em] x:pe-[1em] x:contrast-more:border-current! x:bg-blue-100 x:dark:bg-blue-900/30 x:text-blue-700 x:dark:text-blue-400 x:border-blue-700 x:dark:border-blue-600","children":[["$","div",null,{"className":"x:select-none x:text-[1.25em] x:ps-[.6em] x:pe-[.4em]","style":{"fontFamily":"\"Apple Color Emoji\", \"Segoe UI Emoji\", \"Segoe UI Symbol\""},"data-pagefind-ignore":"all","children":["$","svg",null,{"viewBox":"0 0 16 16","fill":"currentColor","height":".8em","className":"x:mt-[.3em]","children":["$","path",null,{"d":"M0 8a8 8 0 1 1 16 0A8 8 0 0 1 0 8Zm8-6.5a6.5 6.5 0 1 0 0 13 6.5 6.5 0 0 0 0-13ZM6.5 7.75A.75.75 0 0 1 7.25 7h1a.75.75 0 0 1 .75.75v2.75h.25a.75.75 0 0 1 0 1.5h-2a.75.75 0 0 1 0-1.5h.25v-2h-.25a.75.75 0 0 1-.75-.75ZM8 6a1 1 0 1 1 0-2 1 1 0 0 1 0 2Z"}]}]}],["$","div",null,{"className":"x:w-full x:min-w-0","children":["$","p",null,{"className":"x:not-first:mt-[1.25em] x:leading-7","children":["RPM is aggregated at the team level â€” multiple API Keys under the same team share a single quota. If you need a higher RPM quota, contact ",["$","$L38",null,{"href":"mailto:support@hao.ai","prefetch":"$undefined","className":"x:focus-visible:nextra-focus x:text-primary-600 x:underline x:hover:no-underline x:decoration-from-font x:[text-underline-position:from-font]","children":"support@hao.ai"}]," to request an adjustment."]}]}]]}]
56:["$","p",null,{"className":"x:not-first:mt-[1.25em] x:leading-7","children":["When rate-limited, the API returns ",["$","code",null,{"className":"nextra-code","dir":"ltr","children":"429 Too Many Requests"}]," with the following response headers:"]}]
57:["$","div",null,{"data-pagefind-ignore":"all","className":"nextra-code x:relative x:not-first:mt-[1.25em]","children":["$undefined",["$","pre",null,{"className":"x:group x:focus-visible:nextra-focus x:overflow-x-auto x:subpixel-antialiased x:text-[.9em] x:bg-white x:dark:bg-black x:py-4 x:ring-1 x:ring-inset x:ring-gray-300 x:dark:ring-neutral-700 x:contrast-more:ring-gray-900 x:contrast-more:dark:ring-gray-50 x:contrast-more:contrast-150 x:rounded-md not-prose","tabIndex":"0","children":[["$","div",null,{"className":"x:group-hover:opacity-100 x:group-focus:opacity-100 x:opacity-0 x:transition x:focus-within:opacity-100 x:flex x:gap-1 x:absolute x:right-4 x:top-2","children":[["$","$L61",null,{"children":["$","svg",null,{"viewBox":"0 0 24 24","fill":"currentColor","height":"1em","children":["$","path",null,{"d":"M4 19h6v-2H4v2zM20 5H4v2h16V5zm-3 6H4v2h13.25c1.1 0 2 .9 2 2s-.9 2-2 2H15v-2l-3 3l3 3v-2h2c2.21 0 4-1.79 4-4s-1.79-4-4-4z"}]}]}],["$","$L62",null,{"className":""}]]}],["$","code",null,{"className":"nextra-code","dir":"ltr","children":[["$","span",null,{"children":[["$","span",null,{"style":{"--shiki-light":"#22863A","--shiki-dark":"#85E89D"},"children":"x-ratelimit-limit-requests"}],["$","span",null,{"style":{"--shiki-light":"#D73A49","--shiki-dark":"#F97583"},"children":":"}],["$","span",null,{"style":{"--shiki-light":"#032F62","--shiki-dark":"#9ECBFF"},"children":" 100"}]]}],"\n",["$","span",null,{"children":[["$","span",null,{"style":{"--shiki-light":"#22863A","--shiki-dark":"#85E89D"},"children":"x-ratelimit-remaining-requests"}],["$","span",null,{"style":{"--shiki-light":"#D73A49","--shiki-dark":"#F97583"},"children":":"}],["$","span",null,{"style":{"--shiki-light":"#032F62","--shiki-dark":"#9ECBFF"},"children":" 0"}]]}],"\n",["$","span",null,{"children":[["$","span",null,{"style":{"--shiki-light":"#22863A","--shiki-dark":"#85E89D"},"children":"x-ratelimit-reset-requests"}],["$","span",null,{"style":{"--shiki-light":"#D73A49","--shiki-dark":"#F97583"},"children":":"}],["$","span",null,{"style":{"--shiki-light":"#032F62","--shiki-dark":"#9ECBFF"},"children":" 1s"}]]}]]}]]}]]}]
58:["$","h2",null,{"id":"error-codes","className":"x:tracking-tight x:text-slate-900 x:dark:text-slate-100 x:font-semibold x:target:animate-[fade-in_1.5s] x:mt-10 x:border-b x:pb-1 x:text-3xl nextra-border","children":["Error Codes",["$","$L45",null,{"id":"error-codes"}]]}]
59:["$","p",null,{"className":"x:not-first:mt-[1.25em] x:leading-7","children":"All protocols return unified HTTP status codes:"}]
5a:["$","table",null,{"className":"x:block x:overflow-x-auto nextra-scrollbar x:not-first:mt-[1.25em] x:p-0","children":[["$","thead",null,{"children":["$","tr",null,{"children":[["$","th",null,{"children":"Status Code","className":"x:m-0 x:border x:border-gray-300 x:px-4 x:py-2 x:font-semibold x:dark:border-gray-600"}],["$","th",null,{"children":"Description","className":"x:m-0 x:border x:border-gray-300 x:px-4 x:py-2 x:font-semibold x:dark:border-gray-600"}],["$","th",null,{"children":"Common Causes","className":"x:m-0 x:border x:border-gray-300 x:px-4 x:py-2 x:font-semibold x:dark:border-gray-600"}]],"className":"x:m-0 x:border-t x:border-gray-300 x:p-0 x:dark:border-gray-600 x:even:bg-gray-100 x:even:dark:bg-gray-600/20"}]}],["$","tbody",null,{"children":[["$","tr",null,{"children":[["$","td",null,{"children":["$","code",null,{"className":"nextra-code","dir":"ltr","children":"200"}],"className":"x:m-0 x:border x:border-gray-300 x:px-4 x:py-2 x:dark:border-gray-600"}],["$","td",null,{"children":"Success","className":"x:m-0 x:border x:border-gray-300 x:px-4 x:py-2 x:dark:border-gray-600"}],["$","td",null,{"children":"â€”","className":"x:m-0 x:border x:border-gray-300 x:px-4 x:py-2 x:dark:border-gray-600"}]],"className":"x:m-0 x:border-t x:border-gray-300 x:p-0 x:dark:border-gray-600 x:even:bg-gray-100 x:even:dark:bg-gray-600/20"}],["$","tr",null,{"children":[["$","td",null,{"children":["$","code",null,{"className":"nextra-code","dir":"ltr","children":"400"}],"className":"x:m-0 x:border x:border-gray-300 x:px-4 x:py-2 x:dark:border-gray-600"}],["$","td",null,{"children":"Bad Request","className":"x:m-0 x:border x:border-gray-300 x:px-4 x:py-2 x:dark:border-gray-600"}],["$","td",null,{"children":"Invalid parameters, missing required fields","className":"x:m-0 x:border x:border-gray-300 x:px-4 x:py-2 x:dark:border-gray-600"}]],"className":"x:m-0 x:border-t x:border-gray-300 x:p-0 x:dark:border-gray-600 x:even:bg-gray-100 x:even:dark:bg-gray-600/20"}],["$","tr",null,{"children":[["$","td",null,{"children":["$","code",null,{"className":"nextra-code","dir":"ltr","children":"401"}],"className":"x:m-0 x:border x:border-gray-300 x:px-4 x:py-2 x:dark:border-gray-600"}],["$","td",null,{"children":"Unauthorized","className":"x:m-0 x:border x:border-gray-300 x:px-4 x:py-2 x:dark:border-gray-600"}],["$","td",null,{"children":"Invalid or expired API Key","className":"x:m-0 x:border x:border-gray-300 x:px-4 x:py-2 x:dark:border-gray-600"}]],"className":"x:m-0 x:border-t x:border-gray-300 x:p-0 x:dark:border-gray-600 x:even:bg-gray-100 x:even:dark:bg-gray-600/20"}],["$","tr",null,{"children":[["$","td",null,{"children":["$","code",null,{"className":"nextra-code","dir":"ltr","children":"403"}],"className":"x:m-0 x:border x:border-gray-300 x:px-4 x:py-2 x:dark:border-gray-600"}],["$","td",null,{"children":"Forbidden","className":"x:m-0 x:border x:border-gray-300 x:px-4 x:py-2 x:dark:border-gray-600"}],["$","td",null,{"children":"Account lacks access to the model","className":"x:m-0 x:border x:border-gray-300 x:px-4 x:py-2 x:dark:border-gray-600"}]],"className":"x:m-0 x:border-t x:border-gray-300 x:p-0 x:dark:border-gray-600 x:even:bg-gray-100 x:even:dark:bg-gray-600/20"}],["$","tr",null,{"children":[["$","td",null,{"children":["$","code",null,{"className":"nextra-code","dir":"ltr","children":"404"}],"className":"x:m-0 x:border x:border-gray-300 x:px-4 x:py-2 x:dark:border-gray-600"}],["$","td",null,{"children":"Not Found","className":"x:m-0 x:border x:border-gray-300 x:px-4 x:py-2 x:dark:border-gray-600"}],["$","td",null,{"children":"Incorrect model ID","className":"x:m-0 x:border x:border-gray-300 x:px-4 x:py-2 x:dark:border-gray-600"}]],"className":"x:m-0 x:border-t x:border-gray-300 x:p-0 x:dark:border-gray-600 x:even:bg-gray-100 x:even:dark:bg-gray-600/20"}],["$","tr",null,{"children":[["$","td",null,{"children":["$","code",null,{"className":"nextra-code","dir":"ltr","children":"429"}],"className":"x:m-0 x:border x:border-gray-300 x:px-4 x:py-2 x:dark:border-gray-600"}],"$L63","$L64"],"className":"x:m-0 x:border-t x:border-gray-300 x:p-0 x:dark:border-gray-600 x:even:bg-gray-100 x:even:dark:bg-gray-600/20"}],"$L65","$L66","$L67"]}]]}]
5b:["$","h3",null,{"id":"error-response-format","className":"x:tracking-tight x:text-slate-900 x:dark:text-slate-100 x:font-semibold x:target:animate-[fade-in_1.5s] x:mt-8 x:text-2xl","children":["Error Response Format",["$","$L45",null,{"id":"error-response-format"}]]}]
5c:["$","div",null,{"data-pagefind-ignore":"all","className":"nextra-code x:relative x:not-first:mt-[1.25em]","children":["$undefined",["$","pre",null,{"className":"x:group x:focus-visible:nextra-focus x:overflow-x-auto x:subpixel-antialiased x:text-[.9em] x:bg-white x:dark:bg-black x:py-4 x:ring-1 x:ring-inset x:ring-gray-300 x:dark:ring-neutral-700 x:contrast-more:ring-gray-900 x:contrast-more:dark:ring-gray-50 x:contrast-more:contrast-150 x:rounded-md not-prose","tabIndex":"0","children":[["$","div",null,{"className":"x:group-hover:opacity-100 x:group-focus:opacity-100 x:opacity-0 x:transition x:focus-within:opacity-100 x:flex x:gap-1 x:absolute x:right-4 x:top-2","children":[["$","$L61",null,{"children":["$","svg",null,{"viewBox":"0 0 24 24","fill":"currentColor","height":"1em","children":["$","path",null,{"d":"M4 19h6v-2H4v2zM20 5H4v2h16V5zm-3 6H4v2h13.25c1.1 0 2 .9 2 2s-.9 2-2 2H15v-2l-3 3l3 3v-2h2c2.21 0 4-1.79 4-4s-1.79-4-4-4z"}]}]}],["$","$L62",null,{"className":""}]]}],["$","code",null,{"className":"nextra-code","dir":"ltr","children":[["$","span",null,{"children":["$","span",null,{"style":{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"},"children":"{"}]}],"\n",["$","span",null,{"children":[["$","span",null,{"style":{"--shiki-light":"#005CC5","--shiki-dark":"#79B8FF"},"children":"  \"error\""}],["$","span",null,{"style":{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"},"children":": {"}]]}],"\n",["$","span",null,{"children":[["$","span",null,{"style":{"--shiki-light":"#005CC5","--shiki-dark":"#79B8FF"},"children":"    \"code\""}],["$","span",null,{"style":{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"},"children":": "}],["$","span",null,{"style":{"--shiki-light":"#032F62","--shiki-dark":"#9ECBFF"},"children":"\"invalid_api_key\""}],["$","span",null,{"style":{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"},"children":","}]]}],"\n",["$","span",null,{"children":[["$","span",null,{"style":{"--shiki-light":"#005CC5","--shiki-dark":"#79B8FF"},"children":"    \"message\""}],["$","span",null,{"style":{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"},"children":": "}],["$","span",null,{"style":{"--shiki-light":"#032F62","--shiki-dark":"#9ECBFF"},"children":"\"The provided API Key is invalid. Please check and try again.\""}],["$","span",null,{"style":{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"},"children":","}]]}],"\n",["$","span",null,{"children":[["$","span",null,{"style":{"--shiki-light":"#005CC5","--shiki-dark":"#79B8FF"},"children":"    \"type\""}],["$","span",null,{"style":{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"},"children":": "}],["$","span",null,{"style":{"--shiki-light":"#032F62","--shiki-dark":"#9ECBFF"},"children":"\"authentication_error\""}]]}],"\n",["$","span",null,{"children":["$","span",null,{"style":{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"},"children":"  }"}]}],"\n",["$","span",null,{"children":["$","span",null,{"style":{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"},"children":"}"}]}]]}]]}]]}]
5d:["$","h2",null,{"id":"haoai-extension-parameters","className":"x:tracking-tight x:text-slate-900 x:dark:text-slate-100 x:font-semibold x:target:animate-[fade-in_1.5s] x:mt-10 x:border-b x:pb-1 x:text-3xl nextra-border","children":["HaoAI Extension Parameters",["$","$L45",null,{"id":"haoai-extension-parameters"}]]}]
5e:["$","p",null,{"className":"x:not-first:mt-[1.25em] x:leading-7","children":"HaoAI provides extension parameters on top of standard protocols for advanced routing and fallback control:"}]
5f:["$","div",null,{"data-pagefind-ignore":"all","className":"nextra-code x:relative x:not-first:mt-[1.25em]","children":["$undefined",["$","pre",null,{"className":"x:group x:focus-visible:nextra-focus x:overflow-x-auto x:subpixel-antialiased x:text-[.9em] x:bg-white x:dark:bg-black x:py-4 x:ring-1 x:ring-inset x:ring-gray-300 x:dark:ring-neutral-700 x:contrast-more:ring-gray-900 x:contrast-more:dark:ring-gray-50 x:contrast-more:contrast-150 x:rounded-md not-prose","tabIndex":"0","children":[["$","div",null,{"className":"x:group-hover:opacity-100 x:group-focus:opacity-100 x:opacity-0 x:transition x:focus-within:opacity-100 x:flex x:gap-1 x:absolute x:right-4 x:top-2","children":[["$","$L61",null,{"children":["$","svg",null,{"viewBox":"0 0 24 24","fill":"currentColor","height":"1em","children":["$","path",null,{"d":"M4 19h6v-2H4v2zM20 5H4v2h16V5zm-3 6H4v2h13.25c1.1 0 2 .9 2 2s-.9 2-2 2H15v-2l-3 3l3 3v-2h2c2.21 0 4-1.79 4-4s-1.79-4-4-4z"}]}]}],["$","$L62",null,{"className":""}]]}],["$","code",null,{"className":"nextra-code","dir":"ltr","children":[["$","span",null,{"children":["$","span",null,{"style":{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"},"children":"{"}]}],"\n",["$","span",null,{"children":[["$","span",null,{"style":{"--shiki-light":"#005CC5","--shiki-dark":"#79B8FF"},"children":"  \"model\""}],["$","span",null,{"style":{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"},"children":": "}],["$","span",null,{"style":{"--shiki-light":"#032F62","--shiki-dark":"#9ECBFF"},"children":"\"openai/gpt-6-astra\""}],["$","span",null,{"style":{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"},"children":","}]]}],"\n",["$","span",null,{"children":[["$","span",null,{"style":{"--shiki-light":"#005CC5","--shiki-dark":"#79B8FF"},"children":"  \"messages\""}],["$","span",null,{"style":{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"},"children":": ["}],["$","span",null,{"style":{"--shiki-light":"#B31D28","--shiki-light-font-style":"italic","--shiki-dark":"#FDAEB7","--shiki-dark-font-style":"italic"},"children":"..."}],["$","span",null,{"style":{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"},"children":"],"}]]}],"\n",["$","span",null,{"children":[["$","span",null,{"style":{"--shiki-light":"#005CC5","--shiki-dark":"#79B8FF"},"children":"  \"provider\""}],["$","span",null,{"style":{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"},"children":": {"}]]}],"\n",["$","span",null,{"children":[["$","span",null,{"style":{"--shiki-light":"#005CC5","--shiki-dark":"#79B8FF"},"children":"    \"routing\""}],["$","span",null,{"style":{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"},"children":": "}],["$","span",null,{"style":{"--shiki-light":"#032F62","--shiki-dark":"#9ECBFF"},"children":"\"cost\""}],["$","span",null,{"style":{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"},"children":","}]]}],"\n",["$","span",null,{"children":[["$","span",null,{"style":{"--shiki-light":"#005CC5","--shiki-dark":"#79B8FF"},"children":"    \"fallback\""}],["$","span",null,{"style":{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"},"children":": ["}],["$","span",null,{"style":{"--shiki-light":"#032F62","--shiki-dark":"#9ECBFF"},"children":"\"anthropic/claude-fable-5-1\""}],["$","span",null,{"style":{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"},"children":", "}],["$","span",null,{"style":{"--shiki-light":"#032F62","--shiki-dark":"#9ECBFF"},"children":"\"x-ai/grok-4.6\""}],["$","span",null,{"style":{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"},"children":"]"}]]}],"\n",["$","span",null,{"children":["$","span",null,{"style":{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"},"children":"  }"}]}],"\n",["$","span",null,{"children":["$","span",null,{"style":{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"},"children":"}"}]}]]}]]}]]}]
60:["$","p",null,{"className":"x:not-first:mt-[1.25em] x:leading-7","children":["See ",["$","$L38",null,{"href":"/develop/advanced/provider-routing","prefetch":"$undefined","className":"x:focus-visible:nextra-focus x:text-primary-600 x:underline x:hover:no-underline x:decoration-from-font x:[text-underline-position:from-font]","children":"Provider Routing"}]," and ",["$","$L38",null,{"href":"/develop/advanced/fallback","prefetch":"$undefined","className":"x:focus-visible:nextra-focus x:text-primary-600 x:underline x:hover:no-underline x:decoration-from-font x:[text-underline-position:from-font]","children":"Fallback"}]," for details."]}]
63:["$","td",null,{"children":"Rate Limited","className":"x:m-0 x:border x:border-gray-300 x:px-4 x:py-2 x:dark:border-gray-600"}]
64:["$","td",null,{"children":"Exceeded rate limit","className":"x:m-0 x:border x:border-gray-300 x:px-4 x:py-2 x:dark:border-gray-600"}]
65:["$","tr",null,{"children":[["$","td",null,{"children":["$","code",null,{"className":"nextra-code","dir":"ltr","children":"500"}],"className":"x:m-0 x:border x:border-gray-300 x:px-4 x:py-2 x:dark:border-gray-600"}],["$","td",null,{"children":"Server Error","className":"x:m-0 x:border x:border-gray-300 x:px-4 x:py-2 x:dark:border-gray-600"}],["$","td",null,{"children":"Internal error, please retry","className":"x:m-0 x:border x:border-gray-300 x:px-4 x:py-2 x:dark:border-gray-600"}]],"className":"x:m-0 x:border-t x:border-gray-300 x:p-0 x:dark:border-gray-600 x:even:bg-gray-100 x:even:dark:bg-gray-600/20"}]
66:["$","tr",null,{"children":[["$","td",null,{"children":["$","code",null,{"className":"nextra-code","dir":"ltr","children":"502"}],"className":"x:m-0 x:border x:border-gray-300 x:px-4 x:py-2 x:dark:border-gray-600"}],["$","td",null,{"children":"Upstream Error","className":"x:m-0 x:border x:border-gray-300 x:px-4 x:py-2 x:dark:border-gray-600"}],["$","td",null,{"children":"Model provider service issue","className":"x:m-0 x:border x:border-gray-300 x:px-4 x:py-2 x:dark:border-gray-600"}]],"className":"x:m-0 x:border-t x:border-gray-300 x:p-0 x:dark:border-gray-600 x:even:bg-gray-100 x:even:dark:bg-gray-600/20"}]
67:["$","tr",null,{"children":[["$","td",null,{"children":["$","code",null,{"className":"nextra-code","dir":"ltr","children":"503"}],"className":"x:m-0 x:border x:border-gray-300 x:px-4 x:py-2 x:dark:border-gray-600"}],["$","td",null,{"children":"Service Unavailable","className":"x:m-0 x:border x:border-gray-300 x:px-4 x:py-2 x:dark:border-gray-600"}],["$","td",null,{"children":"Under maintenance","className":"x:m-0 x:border x:border-gray-300 x:px-4 x:py-2 x:dark:border-gray-600"}]],"className":"x:m-0 x:border-t x:border-gray-300 x:p-0 x:dark:border-gray-600 x:even:bg-gray-100 x:even:dark:bg-gray-600/20"}]
b:[["$","meta","0",{"charSet":"utf-8"}],["$","meta","1",{"name":"viewport","content":"width=device-width, initial-scale=1"}],["$","meta","2",{"name":"theme-color","media":"(prefers-color-scheme: light)","content":"#f8f8f6"}],["$","meta","3",{"name":"theme-color","media":"(prefers-color-scheme: dark)","content":"#1f1f1e"}]]
7:null
68:I[80622,[],"IconMark"]
9:{"metadata":[["$","title","0",{"children":"HaoAI API Docs - GPT, Claude & Grok Integration - hao.ai"}],["$","meta","1",{"name":"description","content":"Use HaoAI APIs for GPT, Claude, and Grok. Choose the Base URL for your protocol and review authentication, endpoints, errors, and rate limits."}],["$","meta","2",{"name":"application-name","content":"HaoAI Docs"}],["$","meta","3",{"name":"author","content":"HaoAI"}],["$","meta","4",{"name":"referrer","content":"origin-when-cross-origin"}],["$","link","5",{"rel":"canonical","href":"https://hao.ai/docs/api"}],["$","link","6",{"rel":"alternate","hrefLang":"en","href":"https://hao.ai/docs/api"}],["$","link","7",{"rel":"alternate","hrefLang":"zh-Hans","href":"https://hao.ai/docs/zh/api"}],["$","link","8",{"rel":"alternate","hrefLang":"x-default","href":"https://hao.ai/docs/api"}],["$","meta","9",{"property":"og:title","content":"HaoAI API Docs - GPT, Claude & Grok Integration - hao.ai"}],["$","meta","10",{"property":"og:description","content":"Use HaoAI APIs for GPT, Claude, and Grok. Choose the Base URL for your protocol and review authentication, endpoints, errors, and rate limits."}],["$","meta","11",{"property":"og:url","content":"https://hao.ai/docs/api"}],["$","meta","12",{"property":"og:site_name","content":"HaoAI Docs"}],["$","meta","13",{"property":"og:locale","content":"en_US"}],["$","meta","14",{"property":"og:image","content":"https://hao.ai/opengraph-image"}],["$","meta","15",{"property":"og:image:width","content":"1200"}],["$","meta","16",{"property":"og:image:height","content":"630"}],["$","meta","17",{"property":"og:image:alt","content":"HaoAI API Docs - GPT, Claude & Grok Integration - hao.ai | HaoAI Docs"}],["$","meta","18",{"property":"og:type","content":"article"}],["$","meta","19",{"name":"twitter:card","content":"summary_large_image"}],["$","meta","20",{"name":"twitter:title","content":"HaoAI API Docs - GPT, Claude & Grok Integration - hao.ai"}],["$","meta","21",{"name":"twitter:description","content":"Use HaoAI APIs for GPT, Claude, and Grok. Choose the Base URL for your protocol and review authentication, endpoints, errors, and rate limits."}],["$","meta","22",{"name":"twitter:image","content":"https://hao.ai/opengraph-image"}],["$","link","23",{"rel":"icon","href":"/docs/icon?299f8257ffae3253","alt":"$undefined","type":"image/png","sizes":"192x192"}],["$","link","24",{"rel":"apple-touch-icon","href":"/docs/apple-icon?5f715990f37b1df6","alt":"$undefined","type":"image/png","sizes":"180x180"}],["$","$L68","25",{}]],"error":null,"digest":"$undefined"}
e:"$9:metadata"
