DEV Community

Daniel Dong
Daniel Dong

Posted on

You don't need 4 API accounts to use 4 AI models.

You don't need 4 API accounts to use 4 AI models.

You need one endpoint and a model string.

import openai
client = openai.OpenAI(
api_key="mb-xxx",
base_url="https://aibridge-api.com/v1"
)

DeepSeek

client.chat.completions.create(model="deepseek-chat", ...)

Qwen

client.chat.completions.create(model="qwen-max", ...)

GLM — same code, different model name

client.chat.completions.create(model="glm-4-plus", ...)

One OpenAI-compatible endpoint. 14 Chinese models.
Streaming, function calling, JSON mode.
Free 500K tokens/month. No card required.

aibridge-api.com

1

2

3

4

5

Top comments (0)