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 cheapest capable model.
70 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 | 677 M |
2.Gpt 5.4 Mini | Subscription | 241 M |
3.Minimax M3 | Subscription | 156 M |
4.Kimi K2.6 | Subscription | 55 M |
5.Claude Opus 4 8 | Subscription | 47 M |
6.Glm 5 | Subscription | 46 M |
7.Gpt 5.4 | Subscription | 42 M |
8.Gpt 5.5 | Subscription | 28 M |
9.Gemma 4 31b It | API Key | 25 M |
10.Glm 4.7 | Subscription | 22 M |
11.Deepseek V4 Pro | Subscription | 16 M |
12.Gpt 5.3 Codex Spark | Subscription | 14 M |
13.Nex N2 Pro | API Key | 11 M |
14.Claude Sonnet 4 6 | Subscription | 10 M |
15.Openrouter Free | API Key | 6 M |
16.Gpt 4o Mini | API Key | 5 M |
17.Kimi K2.7 Code | Subscription | 4 M |
18.Minimax M2.7 | API Key | 4 M |
19.Owl Alpha | API Key | 4 M |
20.Gpt 5.4 Mini | API Key | 3 M |
21.Mistral Large Latest | API Key | 3 M |
22.Gemma 4 26b A4b It | API Key | 2 M |
23.Deepseek V4 Pro | Subscription | 2 M |
24.Qwen3.5 397b A17b | API Key | 2 M |
25.Llama 4 Scout 17b 16e Instruct | API Key | 2 M |
26.Qwen3.5:397b | Subscription | 1 M |
27.Glm 5.1 | API Key | 1 M |
28.Kimi K2.6 | API Key | 1 M |
29.Deepseek V4 Flash | API Key | 923 K |
30.Mistral Medium Latest | API Key | 763 K |
31.Step 3.7 Flash | API Key | 625 K |
32.Qwen3 Coder 480b A35b Instruct | API Key | 454 K |
33.Gemini 3.1 Pro Preview | Subscription | 453 K |
34.Gemma4:31b | Subscription | 358 K |
35.Mimo V2.5 Pro | API Key | 248 K |
36.Gpt 5 Mini | Subscription | 231 K |
37.Gpt 5.3 Codex | Subscription | 219 K |
38.Gpt 4o | Subscription | 218 K |
39.Qwen3.7 Plus | Subscription | 126 K |
40.Seed Oss 36b Instruct | API Key | 83 K |
41.Gpt 5.4 | API Key | 82 K |
42.Gpt 5.2 | Subscription | 14 K |
43.Gemini 3.1 Flash Lite | API Key | 7 K |
44.Gpt 5.4 Nano | API Key | 6 K |
45.Deepseek V4 Flash | API Key | 3 K |
46.Deepseek V4 Pro | API Key | 3 K |
47.Gemini 2.5 Pro | Subscription | 2 K |
48.Llama 3.3 Nemotron Super 49b V1 | API Key | 2 K |
49.MiniMax M2.5 Highspeed | Subscription | 856 |
50.Grok 4.3 | Subscription | 828 |
51.Gpt Oss 120b | API Key | 783 |
52.Glm 4.5 Air | API Key | 777 |
53.Gemini 2.5 Flash | API Key | 603 |
54.Ministral 14b Latest | API Key | 354 |
55.Llama 3.3 70b Versatile | API Key | 314 |
56.Gpt Oss Safeguard 20b | API Key | 226 |
57.Nemotron Mini 4b Instruct | API Key | 135 |
58.Mistral Small Latest | API Key | 132 |
59.Claude Haiku 4.5 | Subscription | 82 |
60.Gpt 4.1 | Subscription | 81 |
61.Devstral 2512 | API Key | 75 |
62.Hermes 3 Llama 3.1 405b | API Key | 71 |
63.Llama 3 70b Instruct | API Key | 64 |
64.Mistral Medium 3 5 | API Key | 60 |
65.Gpt 4o Mini | Subscription | 57 |
66.Mistral Medium 2604 | API Key | 53 |
67.Llama 3.1 8b Instant | API Key | 41 |
68.Ministral 3b 2512 | API Key | 20 |
69.Gemini Flash Lite Latest | API Key | 17 |
70.Gemini 2.5 Flash Lite | API Key | 11 |