What is AiHubMix?
AiHubMix is a unified API gateway that provides access to over 740 AI models through a single API key. It is designed for developers who want to route requests to providers such as OpenAI, Anthropic, and Gemini using existing SDKs by changing the base URL. The service operates on a pay-as-you-go billing model.
What are the features of AiHubMix?
- Unified API endpointRoutes requests to multiple model providers including Moonshot AI, AWS, Alibaba Cloud, Vertex AI, Tencent Cloud, and Azure using one API key.
- SDK compatibilityFunctions as a drop-in replacement for existing client configurations by pointing the
base_urlparameter tohttps://aihubmix.com/v1. - Automatic failoverRedirects traffic across cloud providers when a route encounters an issue.
- Desktop agent connectorA downloadable application for macOS 12 or later and Windows that links local CLI tools like Claude Code, Codex, OpenCode, and Gemini CLI to the gateway.
- Model catalogLists over 740 models with official cloud routes and associated pricing information.
What are the use cases of AiHubMix?
- Migrating existing applicationsDevelopers can redirect an application built on the OpenAI SDK to alternative models by changing only the
base_urlandapi_keyvalues. - Connecting local coding agentsUsers can link installed command-line AI tools on their desktop to the gateway without editing configuration files manually.
How to use AiHubMix?
- Update the SDK clientReplace the default
base_url(such ashttps://api.openai.com/v1) withhttps://aihubmix.com/v1in the client initialization code. - Provide credentialsPass the AiHubMix API key into the
api_keyparameter of the client configuration.
AiHubMix Pricing Information:
- Pay-as-you-goBilled based on usage; the dashboard displays account balance and daily spend figures. Specific per-model rates are listed in the model catalog.









