DEV Community

Daniel Dong
Daniel Dong

Posted on

15 models is the headline. The features are why you stay.

15 models is the headline. The features are why you stay.

Here's everything that works out of the box — OpenAI-compatible, all of it.

Streaming

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

stream = client.chat.completions.create(
    model="deepseek-chat",
    messages=[{"role":"user","content":"Write a haiku"}],
    stream=True,
)
for chunk in stream:
    print(chunk.choices[0].delta.content or "", end="")
Enter fullscreen mode Exit fullscreen mode

Tokens arrive as they're generated. First byte in milliseconds.
Works on all 15 models.

Function calling

tools = [{
    "type": "function",
    "function": {
        "name": "get_weather",
        "parameters": {"type": "object", "properties": {"city": {"type": "string"}}},
    },
}]
client.chat.completions.create(
    model="qwen-max",
    messages=[{"role":"user","content":"What's the weather in Tokyo?"}],
    tools=tools,
)
Enter fullscreen mode Exit fullscreen mode

Your model calls your functions. Structured arguments. No parsing
hacks.

JSON mode

client.chat.completions.create(
    model="glm-4-plus",
    messages=[{"role":"user","content":"Return a list of 5 cities as JSON"}],
    response_format={"type": "json_object"},
)
Enter fullscreen mode Exit fullscreen mode

Valid JSON, guaranteed. Drop it straight into your pipeline.

Caching

Add one header. Same prompt within the TTL returns from cache —
zero tokens, ~200ms latency.

X-Cache-TTL: 3600
Enter fullscreen mode Exit fullscreen mode

The rest

  • Kimi K3 with 1M context and always-on reasoning
  • Free playground, no signup, all 15 models
  • GitHub OAuth login in one click
  • 24-prompt library with one-click playground fill
  • Smart dashboard that tells you when to upgrade

Free tier: 500K tokens/month. No credit card.

aibridge-api.com/playground.html
aibridge-api.com/prompts.html

1

2

3

4

Top comments (0)