Logo SVG copied to clipboard
Custom development The team behind Manifest can help you develop what your company needs around your LLM gateway. Talk to us

Use OpenAI SDK with Manifest

496M 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.

51 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.Gpt 6 Luna
Subscription202 M
2.Gemini 3.5 Flash
API Key71 M
3.Gemini 3.8 Flash
API Key60 M
4.Gemini 3.6 Flash
API Key50 M
5.Gpt 5.6 Luna
Subscription18 M
6.Claude Haiku 5 5
Subscription17 M
7.Gpt 5.6 Luna Pro
API Key16 M
8.Claude Sonnet 5
Subscription15 M
9.Claude Opus 5 5
Subscription9 M
10.Gpt 5.6 Terra
API Key8 M
11.Gpt 5.6 Luna
API Key7 M
12.Gpt 6 Astra
Subscription5 M
13.Hy3
API Key4 M
14.Gemini 3.1 Flash Lite
API Key2 M
15.Openrouter Free
API Key2 M
16.Nemotron 3 Nano Omni 30b A3b Reasoning
API Key2 M
17.Gpt 6 Luna
API Key2 M
18.Gemma4:31b
Subscription1 M
19.Gpt Oss 20b
API Key871 K
20.Kilo Auto Free
API Key812 K
21.Laguna S 2.1
API Key565 K
22.Gpt 5.6 Sol
Subscription432 K
23.Claude Sonnet 5 5
Subscription338 K
24.Gpt 5.4 Mini
Subscription291 K
25.Gemma 4 31b It
API Key245 K
26.Gpt 5.5
Subscription236 K
27.MiniMax M3
Subscription208 K
28.Gpt Oss:120b
Subscription202 K
29.Gpt 5.6 Terra
Subscription198 K
30.Gpt 5.4
Subscription180 K
31.Nemotron 3 Ultra
Subscription163 K
32.Gpt 6.1 Sol
Subscription156 K
33.Nemotron 3.5 Super Vl 120b A12b
API Key115 K
34.Gemini 3.5 Flash Lite
API Key111 K
35.Nemotron 3.5 Lightning
API Key80 K
36.Claude Fable 5 1
Subscription65 K
37.Gpt 5.4 Nano
API Key30 K
38.Deepseek V4.1 Flash
Subscription27 K
39.Gpt 3.5 Turbo
Subscription27 K
40.Gpt 5 Mini
Subscription21 K
41.Gpt 4o
Subscription6 K
42.Gpt 6 Sol
Subscription3 K
43.Gpt Oss 120b
API Key2 K
44.Claude Haiku 5.5
API Key1 K
45.Gemma 4 31b It
API Key929
46.Minimax M3.1 Flash
API Key205
47.Minimax M3
API Key190
48.Nemotron 3 Nano Omni 30b A3b Reasoning
API Key100
49.Qwen3.8 27b
API Key52
50.Claude Sonnet 5 5
Subscription50
51.Allam 2 7b
API Key33