Switch from the OpenAI API
Found this helpful? Share it:
Found this helpful? Share it:
Already built on the OpenAI API? Point your code at idapt's base URL and keep everything else. Same SDK, same request shapes, 200+ models 🔁
Create an API key under Settings → Developer and pick its scopes. Workspace Gateway keys can also carry a lifetime USD spend cap: see API keys and scopes.
Set your client's base URL to https://idapt.app/api/openai/v1 and send the key as Authorization: Bearer uk_...
from openai import OpenAI
client = OpenAI(
base_url="https://idapt.app/api/openai/v1",
api_key="uk_your_key_here",
)The full walkthrough with per-framework snippets lives in the OpenAI API migration guide.
chat/completions, with streaming and tools
responses, as a non-streaming bridge
embeddings
images/generations
audio/speech and audio/transcriptions
models, listing the full catalog
responses with stream: true returns a 501;
use chat/completions for streaming.
A few OpenAI features have no idapt equivalent: the auto model and n > 1. Requests that use them are rejected
with a clear error, never silently ignored, so your app can't
misbehave without you knowing.
LLM tokens bill at the prices shown in the app: no separate API pricing, what you see is what you pay.
Related articles
Was this helpful?