# Thalam > Thalam is the OpenAI-compatible API for every leading AI model — GPT, Claude, Gemini, DeepSeek, Qwen, Kling, Sora and more — through one endpoint, one API key, and one bill. Pay per token, no subscription, no minimums, no lock-in. Thalam is an AI gateway headquartered in Dubai, United Arab Emirates. It gives developers and engineering teams a single OpenAI-compatible endpoint (`https://api.thalam.ai/v1`) for text, image, video, and audio models across every major provider. Migration is two lines of code: change the `base_url` and the `api_key` — every OpenAI SDK, LangChain, LlamaIndex, and standard REST client works unchanged. New accounts get $1 of free starter credit. Governance features include per-key spend caps and audit logs. ## How it works - [Quickstart](https://thalam.ai/docs/quickstart): Two-line migration from the OpenAI SDK — change base_url to https://api.thalam.ai/v1 and swap your key. - [Authentication](https://thalam.ai/docs/authentication): Create an API key and authenticate requests. - [Chat Completions](https://thalam.ai/docs/chat-completions): The core OpenAI-compatible /v1/chat/completions endpoint. - [Streaming](https://thalam.ai/docs/streaming): Server-sent-events streaming, identical to the OpenAI streaming interface. - [Structured Outputs](https://thalam.ai/docs/structured-outputs): JSON-schema-constrained responses. - [Function Calling](https://thalam.ai/docs/function-calling): Tool/function calling with the standard tool_calls schema. - [Image Generation](https://thalam.ai/docs/image-generation): Generate images via FLUX, Imagen and other models. - [Video Generation](https://thalam.ai/docs/video-generation): Generate video via Kling, Sora, Veo and others. - [Audio & Speech](https://thalam.ai/docs/audio-speech): Text-to-speech and transcription. ## Models & pricing - [Model catalog](https://thalam.ai/models): Every available model across text, image, video, coding, and retrieval. - [Pricing](https://thalam.ai/pricing): Per-token pricing. No platform fee, no subscription, no seats. Credits never expire. - [Machine-readable pricing](https://thalam.ai/pricing.md): Structured pricing for AI agents. ## Coding-agent & tool integrations - [OpenClaw setup](https://thalam.ai/docs/integrations/openclaw): Add Thalam as an OpenClaw model provider — three fields in openclaw.json. - [OpenClaw + OpenAI-compatible backends](https://thalam.ai/docs/integrations/openclaw/openai-compatible): How OpenClaw's OpenAI-compatible provider mechanism works. - [OpenClaw getting started](https://thalam.ai/docs/integrations/openclaw/getting-started): Complete beginner walkthrough for first-time OpenClaw users. - [Cursor setup](https://thalam.ai/docs/integrations/cursor): Route Cursor through Thalam via the OpenAI base-URL override. - [Cline setup](https://thalam.ai/docs/integrations/cline): Connect Cline (VS Code / JetBrains) to every leading model. - [Continue.dev setup](https://thalam.ai/docs/integrations/continue): Add Thalam to Continue.dev's config.yaml. - [Aider setup](https://thalam.ai/docs/integrations/aider): Point Aider at Thalam with two env vars. - [OpenCode setup](https://thalam.ai/docs/integrations/opencode): Add Thalam as a custom provider in OpenCode (sst). - [Zed setup](https://thalam.ai/docs/integrations/zed): Add Thalam to Zed's settings.json as an OpenAI-compatible provider. - [JetBrains AI setup](https://thalam.ai/docs/integrations/jetbrains): Add Thalam as a third-party provider in JetBrains AI Assistant. - [Roo Code setup](https://thalam.ai/docs/integrations/roo-code): Connect Roo Code's agent loop to Thalam. - [All integrations](https://thalam.ai/docs/integrations): Every coding agent and editor that speaks the OpenAI-compatible API. ## Comparisons - [AI model alternatives](https://thalam.ai/alternatives): Drop-in alternative models accessible through one gateway. - [OpenAI alternatives](https://thalam.ai/alternatives/openai): OpenAI-compatible access to GPT and many other models. - [Anthropic / Claude alternatives](https://thalam.ai/alternatives/anthropic): Reach Claude and comparable models through one key. - [Compare models](https://thalam.ai/compare): Side-by-side model comparison. ## About - Headquarters: Dubai, United Arab Emirates - Base URL: https://api.thalam.ai/v1 - Interface: OpenAI-compatible (Chat Completions, streaming, tool calls, structured outputs) - Billing: Pay per token, self-serve top-ups in USD; AED or USD invoicing on Enterprise contracts - Free starter credit: $1 on signup, no card required