Since the explosion of OpenAI ChatGPT-3, the AI field has developed rapidly, with many excellent AI services emerging. Fortunately, most of them are compatible with the OpenAI SDK format, requiring no code changes, and can be seamlessly replaced by directly modifying the API URL, API KEY, and model name.
The following整理了几个常用的 AI service providers and AI model market information to facilitate replacement. Including domestic and foreign, and whether there is a free quota, etc.
API URL refers to the api interface address that needs to be specified during use API KEY refers to the key/SK for calling the interface AI model market generally supports many models, you can open the model details page to view API free quota refers to: whether it is allowed to call through code without paying.
OpenAI (The Best in the World)
VPN required for use, foreign credit card required for payment
Official Website: https://chatgpt.com/auth/login
API KEY Acquisition Address: https://platform.openai.com/api-keys
API URL: https://api.openai.com/v1
Available Models: https://platform.openai.com/docs/models
API Free Quota: Up to 3 requests per minute. Up to 200 requests per day
Gemini (Google Product)
VPN required for use, foreign credit card required for payment
Official Website: https://aistudio.google.com
API KEY Acquisition Address: https://aistudio.google.com/apikey
API URL: https://generativelanguage.googleapis.com/v1beta/openai/
Available Models: gemini-2.0-flash/gemini-1.5-flash/gemini-2.0-pro-exp-02-05/gemini-1.5-pro
API Free Quota: 1500 calls per day
Claude
VPN required for use, foreign credit card required for payment
Official Website: https://claude.ai
API KEY Address: https://console.anthropic.com/settings/keys
API URL: https://api.anthropic.com/v1
Available Models: https://docs.anthropic.com/en/docs/about-claude/models
API Free Quota: No free quota
XAI (Musk's)
VPN required, foreign credit card required for payment
Official Website: https://x.ai
API KEY Address: https://console.x.ai
API URL: https://api.x.ai/v1
Available Models: grok-2-1212, grok-2-vision-1212
API Free Quota: After recharging $5, you can get a $150 quota
groq (ai model market)
VPN required, foreign credit card required for payment
Official Website: https://console.groq.com
API KEY Address: https://console.groq.com/keys
API URL: https://api.groq.com/openai/v1
Available Models: Many https://console.groq.com/docs/models
API Free Quota: Most models have a free quota, ranging from 1000 to 10000 per day
openrouter.ai (ai model market)
Official Website: https://openrouter.ai
API KEY Address: https://openrouter.ai/settings/keys
API URL: https://openrouter.ai/api/v1
Available Models: Many, https://openrouter.ai/models
API Free Quota: There are free models, 200 calls per day
Deepseek
This is Deepseek's official API service, but it has been unstable recently
Official Website: https://www.deepseek.com
API KEY(SK) Acquisition Address: https://platform.deepseek.com/api_keys
API URL: https://api.deepseek.com/v1
Available Models: deepseek-chat : i.e. v3 model, deepseek-reasoner i.e. R1 reasoning model
Zhipu AI
Official Website: https://bigmodel.cn
API KEY(SK) Acquisition Address: https://bigmodel.cn/usercenter/proj-mgmt/apikeys
API URL: https://open.bigmodel.cn/api/paas/v4
Available Models: glm-4-plus, glm-4-air, glm-4-air-0111, glm-4-airx, glm-4-long, glm-4-flashx, glm-4-flash
API Free Quota: glm-4-flash is a free model
Baichuan Intelligence
Official Website: https://www.baichuan-ai.com
API KEY(SK) Acquisition Address: https://platform.baichuan-ai.com/console/apikey
API URL: https://api.baichuan-ai.com/v1
Available Models: Baichuan4-Turbo, Baichuan4-Air, Baichuan4, Baichuan3-Turbo, Baichuan3-Turbo-128k, Baichuan2-Turbo
Moonshot AI Kimi
Official Website: https://www.moonshot.cn
API KEY(SK) Acquisition Address: https://platform.moonshot.cn/console/api-keys
API URL: https://api.moonshot.cn/v1
Available Models: moonshot-v1-8k, moonshot-v1-32k, moonshot-v1-128k
01.AI
Official Website: https://lingyiwanwu.com
API KEY Acquisition Address: https://platform.lingyiwanwu.com/apikeys
API URL: https://api.lingyiwanwu.com/v1
Available Models: yi-lightning
Alibaba Bailian (ai model market)
Alibaba Bailian is an AI model marketplace that provides all Alibaba-based models and other manufacturers' models, including Deepseek-r1
Official Website: https://bailian.console.aliyun.com
API KEY(SK) Acquisition Address: https://bailian.console.aliyun.com/?apiKey=1#/api-key
API URL: https://dashscope.aliyuncs.com/compatible-mode/v1
Available Models: Many, see https://bailian.console.aliyun.com/#/model-market for details
API Free Quota: Most models have a free quota
Silicon Flow (ai model market)
Another AI market similar to Alibaba Bailian, providing domestic mainstream models, including deepseek-r1
Official Website: https://siliconflow.cn
API KEY(SK) Acquisition Address: https://cloud.siliconflow.cn/account/ak
API URL: https://api.siliconflow.cn/v1
Available Models: Many, see https://cloud.siliconflow.cn/models?types=chat for details
API Free Quota: There are free models that can be used directly without spending money
302.AI (ai model market)
Another AI market similar to Alibaba Bailian, providing domestic mainstream models, including deepseek-r1
Official Website: https://302.AI
API KEY(SK) Acquisition Address: https://dash.302.ai/apis/list
API URL: https://api.302.ai/v1
Available Models: Many, see https://302ai.apifox.cn/api-147522039
ByteDance Volcano Engine Ark (ai model market)
Similar to Alibaba Bailian's AI market, in addition to the Doubao series models, there are also some third-party models, including deepseek-r1
Official Website: https://www.volcengine.com/product/ark
API KEY(SK) Acquisition Address: https://console.volcengine.com/ark/region:ark+cn-beijing/apiKey
API URL: https://ark.cn-beijing.volces.com/api/v3
MODELS: Many, see https://console.volcengine.com/ark/region:ark+cn-beijing/model?vendor=Bytedance&view=LIST_VIEW for details API Free Quota: Has a free quota
Note: ByteDance Volcano Engine Ark's compatibility with the OpenAI SDK is a bit strange. You cannot directly fill in the model name. You need to create a reasoning point in the Volcano Engine console in advance, select the model to be used in the reasoning point, and then fill in the reasoning point id in the place where the model is needed, that is, in the software. If you find it troublesome, you can ignore it. Apart from the slightly lower price, there are no other advantages. See how to create a reasoning point https://www.volcengine.com/docs/82379/1099522
Other Methods for Using OpenAI API Compatibility
This article only lists some AI usage methods, other services that are compatible with the OpenAI API can use similar methods, as long as the API interface address and SK and model name are determined.
Note that the API URL generally ends with /v1.