Use OpenAI SDK with Manifest
The OpenAI Python and TypeScript SDKs talk to any OpenAI-compatible endpoint. Point
them at Manifest by setting OPENAI_BASE_URL
and every chat completion, response, tool call, or Agents SDK loop routes through
the right model.
66 models routed through Manifest over the last 30 days.
Why use the OpenAI SDK with Manifest
Chatty workloads (Agents SDK loops, tool retries, chain-of-thought reasoning) burn tokens fast. Manifest intercepts each call, picks the right model, and keeps your code identical. Same SDK, same shapes, lower bill.
- One env var change: OPENAI_BASE_URL
- Slash token spend by 50–70% on chatty agent loops
- Works for the OpenAI SDK and the OpenAI Agents SDK
- Tool calling, structured outputs, and streaming all pass through
- Per-app spend caps and audit logs in the dashboard
- Open source: inspect and self-host the router
Setup in 60 seconds
Set two environment variables and the OpenAI SDK picks them up on the next run, no code changes required.
Point the SDK at Manifest by setting these env vars in your shell or
.env file:
export OPENAI_BASE_URL="https://api.manifest.build/v1"
export OPENAI_API_KEY="mnfst_YOUR_KEY"
Then use the SDK exactly as you would normally. Just point at
"auto" to let Manifest pick the model:
from openai import OpenAI
client = OpenAI()
response = client.chat.completions.create(
model="auto",
messages=[{"role": "user", "content": "Hello"}],
)
import OpenAI from "openai";
const client = new OpenAI();
const response = await client.chat.completions.create({
model: "auto",
messages: [{ role: "user", content: "Hello" }],
});
https://api.manifest.build/v1
mnfst_YOUR_KEY
auto
OpenAI SDK tokens processed on Manifest
Models in use
# Model |
Auth type | Tokens / last 30 days |
|---|---|---|
1.Glm 5.1 | Subscription | 719 M |
2.Claude Sonnet 4 6 | Subscription | 156 M |
3.Minimax M3 | Subscription | 153 M |
4.Claude Opus 4 6 | Subscription | 119 M |
5.Owl Alpha | API Key | 81 M |
6.Gpt 5.3 Codex Spark | Subscription | 76 M |
7.Mimo V2.5 Pro | API Key | 60 M |
8.Gpt 5.4 Mini | Subscription | 51 M |
9.Claude Opus 4 8 | Subscription | 49 M |
10.Glm 5.2 | Subscription | 47 M |
11.Kimi K2.6 | Subscription | 40 M |
12.Claude Opus 4 7 | Subscription | 39 M |
13.Gemma 4 31b It | API Key | 30 M |
14.Glm 4.7 | Subscription | 28 M |
15.Glm 5.2 | Subscription | 17 M |
16.Gpt 5.5 | Subscription | 12 M |
17.Nex N2 Pro | API Key | 11 M |
18.Deepseek V4 Pro | API Key | 10 M |
19.Nemotron 3 Ultra 550b A55b | API Key | 9 M |
20.Qwen3.5:397b | Subscription | 9 M |
21.Mimo V2.5 Free | API Key | 8 M |
22.Gpt 4o Mini | API Key | 8 M |
23.Glm 5 | Subscription | 7 M |
24.Claude Fable 5 | Subscription | 6 M |
25.Claude Haiku 4 5 | Subscription | 5 M |
26.Kimi K2.7 Code | Subscription | 4 M |
27.Gemma 4 26b A4b It | API Key | 3 M |
28.Openrouter Free | API Key | 2 M |
29.Llama 4 Scout 17b 16e Instruct | API Key | 2 M |
30.MiniMax M3 | Subscription | 1 M |
31.Kimi K2.6 | API Key | 1 M |
32.Deepseek V4 Flash | API Key | 1 M |
33.Gpt 5.4 | Subscription | 1 M |
34.Glm 5.1 | API Key | 1 M |
35.Gemini 2.5 Flash | Subscription | 1 M |
36.Deepseek V4 Flash | API Key | 923 K |
37.Step 3.7 Flash | API Key | 625 K |
38.Gpt Oss 20b | API Key | 570 K |
39.Deepseek V4 Flash | Subscription | 531 K |
40.Qwen3.7 Plus | Subscription | 409 K |
41.MiniMax M2.7 | Subscription | 386 K |
42.Gemma4:31b | Subscription | 379 K |
43.Gemini 3.1 Pro Preview | Subscription | 302 K |
44.Gpt 4o | Subscription | 218 K |
45.Gemini Flash Lite Latest | API Key | 181 K |
46.Qwen3 14b | API Key | 143 K |
47.Gpt 5 Mini | Subscription | 132 K |
48.Minimax M2.7 | Subscription | 96 K |
49.Gpt 5.2 | API Key | 84 K |
50.Gemini 3 Flash Preview | Subscription | 76 K |
51.Minimax M3 | Subscription | 68 K |
52.Gpt 5.4 | API Key | 46 K |
53.Gpt 4o Mini | Subscription | 29 K |
54.Deepseek V4 Flash | Subscription | 28 K |
55.Laguna M.1 | API Key | 24 K |
56.Kilo Auto Free | API Key | 23 K |
57.Gpt 5.4 Mini | API Key | 5 K |
58.Gemini Pro Latest | API Key | 3 K |
59.O4 Mini | API Key | 2 K |
60.Deepseek V4 Pro | Subscription | 2 K |
61.Grok 4.3 | Subscription | 828 |
62.Gpt 5.4 Nano | API Key | 707 |
63.MiniMax M2.5 Highspeed | Subscription | 116 |
64.Gpt 4o 2024 08 06 | Subscription | 84 |
65.Claude Haiku 4.5 | Subscription | 82 |
66.Ministral 3b 2512 | API Key | 20 |