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

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

55 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 5.6 Luna
Subscription197 M
2.Gpt 5.6 Luna Pro
API Key82 M
3.Gpt 6 Luna
Subscription75 M
4.Gemini 3.5 Flash
API Key71 M
5.Gemini 3.8 Flash
API Key38 M
6.Gemini 3.6 Flash
API Key37 M
7.Gpt 6 Luna Pro
API Key30 M
8.Claude Haiku 5 5
Subscription17 M
9.Claude Sonnet 5
Subscription15 M
10.Gpt 5.6 Luna
API Key10 M
11.Gpt 5.6 Terra
API Key5 M
12.Gemini 3.1 Flash Lite
API Key3 M
13.Gpt 6 Astra
Subscription3 M
14.Nemotron 3 Nano Omni 30b A3b Reasoning
API Key2 M
15.Hy3
API Key2 M
16.Gpt 5.6 Sol
Subscription2 M
17.Claude Sonnet 5
API Key2 M
18.Gpt 6 Luna
API Key2 M
19.Gpt 5.6 Luna
Subscription998 K
20.Deepseek V4 Flash
Subscription937 K
21.Gpt Oss 20b
API Key871 K
22.Gpt 5.4 Mini
Subscription861 K
23.Gemma4:31b
Subscription819 K
24.Kilo Auto Free
API Key814 K
25.Gpt 5.5
Subscription526 K
26.Laguna S 2.1
API Key432 K
27.Ternary Bonsai 27B AWQ 4bit
API Key342 K
28.Claude Sonnet 5 5
Subscription334 K
29.Claude Fable 5
Subscription260 K
30.Gpt 5.4
Subscription210 K
31.Gpt Oss:120b
Subscription199 K
32.Nemotron 3 Ultra
Subscription163 K
33.Gemma 4 31b It
API Key126 K
34.Claude Opus 5 5
Subscription121 K
35.Nemotron 3.5 Super Vl 120b A12b
API Key115 K
36.Gpt 4o
API Key113 K
37.Nemotron 3.5 Lightning
API Key103 K
38.Claude 3 Opus 20240229
Subscription100 K
39.Claude Fable 5 1
Subscription65 K
40.Gpt 5 Mini
Subscription39 K
41.Gpt Oss 120b
API Key35 K
42.Gpt 5.4 Nano
API Key30 K
43.Openrouter Free
API Key29 K
44.Deepseek V4.1 Flash
Subscription27 K
45.Gpt 3.5 Turbo
Subscription27 K
46.Gpt 6.1 Sol
Subscription23 K
47.Gpt 5.6 Terra
Subscription6 K
48.Gpt 4o
Subscription2 K
49.Gemma 4 31b It
API Key929
50.Deepseek Flash
Subscription675
51.Diffusiongemma 26b A4b It
API Key158
52.Nemotron 3 Nano Omni 30b A3b Reasoning
API Key100
53.Gpt 6 Sol
Subscription86
54.Glm 5.3 Flash
Subscription67
55.Allam 2 7b
API Key33