Logo SVG copied to clipboard
New Introducing paid plans for Manifest Cloud Learn more

Use OpenAI SDK with Manifest

1.8B tokens / 30 days
App AI SDK

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"}],
)
OPENAI_BASE_URL https://api.manifest.build/v1
OPENAI_API_KEY mnfst_YOUR_KEY
model auto

OpenAI SDK tokens processed on Manifest

Models in use

# Model
Auth type Tokens / last 30 days
1.Glm 5.1
Subscription719 M
2.Claude Sonnet 4 6
Subscription156 M
3.Minimax M3
Subscription153 M
4.Claude Opus 4 6
Subscription119 M
5.Owl Alpha
API Key81 M
6.Gpt 5.3 Codex Spark
Subscription76 M
7.Mimo V2.5 Pro
API Key60 M
8.Gpt 5.4 Mini
Subscription51 M
9.Claude Opus 4 8
Subscription49 M
10.Glm 5.2
Subscription47 M
11.Kimi K2.6
Subscription40 M
12.Claude Opus 4 7
Subscription39 M
13.Gemma 4 31b It
API Key30 M
14.Glm 4.7
Subscription28 M
15.Glm 5.2
Subscription17 M
16.Gpt 5.5
Subscription12 M
17.Nex N2 Pro
API Key11 M
18.Deepseek V4 Pro
API Key10 M
19.Nemotron 3 Ultra 550b A55b
API Key9 M
20.Qwen3.5:397b
Subscription9 M
21.Mimo V2.5 Free
API Key8 M
22.Gpt 4o Mini
API Key8 M
23.Glm 5
Subscription7 M
24.Claude Fable 5
Subscription6 M
25.Claude Haiku 4 5
Subscription5 M
26.Kimi K2.7 Code
Subscription4 M
27.Gemma 4 26b A4b It
API Key3 M
28.Openrouter Free
API Key2 M
29.Llama 4 Scout 17b 16e Instruct
API Key2 M
30.MiniMax M3
Subscription1 M
31.Kimi K2.6
API Key1 M
32.Deepseek V4 Flash
API Key1 M
33.Gpt 5.4
Subscription1 M
34.Glm 5.1
API Key1 M
35.Gemini 2.5 Flash
Subscription1 M
36.Deepseek V4 Flash
API Key923 K
37.Step 3.7 Flash
API Key625 K
38.Gpt Oss 20b
API Key570 K
39.Deepseek V4 Flash
Subscription531 K
40.Qwen3.7 Plus
Subscription409 K
41.MiniMax M2.7
Subscription386 K
42.Gemma4:31b
Subscription379 K
43.Gemini 3.1 Pro Preview
Subscription302 K
44.Gpt 4o
Subscription218 K
45.Gemini Flash Lite Latest
API Key181 K
46.Qwen3 14b
API Key143 K
47.Gpt 5 Mini
Subscription132 K
48.Minimax M2.7
Subscription96 K
49.Gpt 5.2
API Key84 K
50.Gemini 3 Flash Preview
Subscription76 K
51.Minimax M3
Subscription68 K
52.Gpt 5.4
API Key46 K
53.Gpt 4o Mini
Subscription29 K
54.Deepseek V4 Flash
Subscription28 K
55.Laguna M.1
API Key24 K
56.Kilo Auto Free
API Key23 K
57.Gpt 5.4 Mini
API Key5 K
58.Gemini Pro Latest
API Key3 K
59.O4 Mini
API Key2 K
60.Deepseek V4 Pro
Subscription2 K
61.Grok 4.3
Subscription828
62.Gpt 5.4 Nano
API Key707
63.MiniMax M2.5 Highspeed
Subscription116
64.Gpt 4o 2024 08 06
Subscription84
65.Claude Haiku 4.5
Subscription82
66.Ministral 3b 2512
API Key20