# OpenLux > OpenLux is an OpenAI-compatible AI API gateway: one base URL for OpenAI, Claude, Gemini, DeepSeek, Qwen, Doubao, Kling, Suno and Flux, with unified billing, pay-as-you-go pricing and global acceleration. ## Essentials - Site: https://openlux.lol - API base URL: https://openlux.lol/v1 (OpenAI compatible) - Billing: pay as you go per token or per request; monthly and yearly plans available - Console: https://openlux.lol/console - Support: support@openlux.lol, 24/7 - Company: COGNIS AI PTE. LTD. (operating OpenLux) ## What OpenLux is - A single OpenAI-compatible endpoint in front of 24 model providers. Text, image, audio, video and embedding models are called with one API key and one invoice. - Migration path: point `base_url` at https://openlux.lol/v1 and replace the API key. The official OpenAI SDKs and existing application code keep working. - Endpoints: `/v1/chat/completions` (chat, tools, vision, streaming), `/v1/images/generations`, `/v1/embeddings` and `/v1/models`. - Billing: pay-as-you-go metering per token or per request at published rates, plus monthly and yearly plans with a token-equivalent credit allowance. - Infrastructure: multi-region edge nodes, smart routing with automatic retries, 99.95% availability over the last 30 days and 24/7 support. ## Models Rates are per model and published in the catalogue; text models are metered per million tokens and image, video, music and speech models per request. - Reasoning and chat: gpt-6-astra, gpt-5.6-sol, Claude Opus 5, Claude Sonnet 4.5, Claude Fable 5.1, Gemini 3.1 Pro (preview), Gemini 3.8 Flash, Gemini 3 Flash (preview), DeepSeek V4, Qwen3 Max - Image: FLUX 2 Pro and other image models - Video: Kling 3.0 - Music and speech: Suno V6, Doubao Voice 2 - Embeddings and reranking: BGE-M3, Jina Reranker v3 - Providers on the platform: OpenAI, Anthropic, Google, DeepSeek, Qwen, Grok, Doubao, Kling, Suno, Midjourney, Vidu, Moonshot, Hunyuan, Spark, Zhipu, ChatGLM, Minimax, PixVerse, Flux, Xiaomi MiMo, Ollama, SiliconFlow and more. ## Questions OpenLux answers - Do I need a separate key per provider? No. Every model is called with the same OpenLux key against the same OpenAI-compatible endpoint; switching providers means changing the `model` field. - How is usage priced? Pay-as-you-go per token or per request at rates that follow official provider pricing, or a monthly/yearly plan with credit included. - How do I migrate existing code? Set `base_url` to https://openlux.lol/v1 and swap the key; request and response shapes are unchanged. - Which languages are supported? Any language that can send an HTTP request, including the official OpenAI SDKs for Python, Node.js and .NET. - What happens on failure? Standard HTTP status codes (401, 402, 429, 5xx) with per-request logs in the console and 24/7 support escalation. - Is data retained? Traffic is encrypted in transit and request/response bodies are not retained by default. ## Model pages - [GPT-6 Astra API](https://openlux.lol/models/gpt-6-astra): flagship reasoning, tools and vision - [GPT-5.6 Sol API](https://openlux.lol/models/gpt-5.6-sol): value-tier GPT-5.6 for volume - [Gemini 3.8 Flash API](https://openlux.lol/models/gemini-3.8-flash): high-throughput multimodal - [Gemini 3 Flash preview API](https://openlux.lol/models/gemini-3-flash-preview): lowest-cost Gemini tier - [Claude Sonnet 4.5 API](https://openlux.lol/models/claude-sonnet-4-5-20250929): coding and agents - [Claude Opus 5 API](https://openlux.lol/models/claude-opus-5): deepest Claude reasoning - [Claude Fable 5.1 API](https://openlux.lol/models/claude-fable-5-1): long-form creation and research - [Gemini 3.1 Pro preview API](https://openlux.lol/models/gemini-3.1-pro-preview): multimodal thinking - [DeepSeek V4 API](https://openlux.lol/models/deepseek-v4): reasoning value and Chinese - [Qwen3 Max API](https://openlux.lol/models/qwen3-max): Chinese and coding ## Pages - [Home](https://openlux.lol/): product overview, performance, security and FAQ - [Models](https://openlux.lol/models): every available model with its published rate - [Pricing](https://openlux.lol/pricing): pay-as-you-go and subscription plans - [Docs](https://openlux.lol/docs): five-minute integration guide with cURL and Python samples - [About](https://openlux.lol/about): company information, partners and contact - [Terms of service](https://openlux.lol/policies/terms) - [Privacy policy](https://openlux.lol/policies/privacy) - [Acceptable use](https://openlux.lol/policies/aup) - [Refund policy](https://openlux.lol/policies/refund) - [Compliance](https://openlux.lol/policies/compliance) - [Sitemap](https://openlux.lol/sitemap.xml) ## Collections - [Cheapest text models](https://openlux.lol/collections/text-cheapest): lowest per-token rates from $0.0368 per 1M tokens - [Biggest discounts](https://openlux.lol/collections/max-discount): up to 96% below official list pricing - [Tool calling & agents](https://openlux.lol/collections/tool-calling): every function-calling model with rates - [Vision & multimodal](https://openlux.lol/collections/vision): models that accept image input - [Image generation & editing](https://openlux.lol/collections/image-generation): text-to-image and editing from $0.00882 per request - [Audio, video & music](https://openlux.lol/collections/audio-video): speech, music and video generation models - [Chinese-optimized models](https://openlux.lol/collections/chinese): DeepSeek, Qwen and Doubao - [Embeddings & RAG](https://openlux.lol/collections/rag-retrieval): embeddings, reranking and cheap generation for retrieval pipelines - [All collections](https://openlux.lol/collections): index of the use-case collections ## Integration guides - [Codex CLI](https://openlux.lol/integrations/codex): run the OpenAI Codex CLI on OpenLux models via config.toml - [Claude Code](https://openlux.lol/integrations/claude-code): point Claude Code at OpenLux through a local LiteLLM bridge - [Cursor](https://openlux.lol/integrations/cursor): use OpenLux models in Cursor with a custom base URL - [LangChain](https://openlux.lol/integrations/langchain): ChatOpenAI, tools and embeddings against the OpenLux endpoint - [OpenClaw](https://openlux.lol/integrations/openclaw): register OpenLux as a custom provider in OpenClaw ## Comparisons Head-to-head comparison pages live under https://openlux.lol/compare// for same-category model pairs at every price tier, for example: - [GPT-6 Astra vs Claude Opus 5](https://openlux.lol/compare/gpt-6-astra/claude-opus-5) - [GPT-6 Astra vs Claude Sonnet 4.5](https://openlux.lol/compare/gpt-6-astra/claude-sonnet-4-5-20250929) - [Gemini 3.8 Flash vs DeepSeek V4](https://openlux.lol/compare/gemini-3.8-flash/deepseek-v4) - [DeepSeek V4 vs Qwen3 Max](https://openlux.lol/compare/deepseek-v4/qwen3-max) - [gpt-image-2-c vs FLUX 2 Pro](https://openlux.lol/compare/gpt-image-2-c/flux-2-pro) Each comparison covers pricing, capability differences, example code and guidance on which model to pick. ## More model pages - [FLUX 2 Pro API](https://openlux.lol/models/flux-2-pro): photoreal image generation, reference images and editing at $0.021 per request - [GPT Image 2 C API](https://openlux.lol/models/gpt-image-2-c): image generation and editing at $0.00882 per request, 93% below list pricing - [Gemini 3 Pro Image API](https://openlux.lol/models/gemini-3-pro-image-preview): high-fidelity image generation at $0.0243 per request, 91% below list - [Gemini 3.1 Flash Image API](https://openlux.lol/models/gemini-3.1-flash-image-preview): batch image generation at $0.0122 per request, 92% below list - [Suno V6 API](https://openlux.lol/models/suno-v6): full songs and instrumentals at $0.052 per request - [Kling 3.0 API](https://openlux.lol/models/kling-3.0): text-to-video and image-to-video with camera control at $0.196 per request - [Doubao Voice 2 API](https://openlux.lol/models/doubao-voice-2): low-latency multilingual text to speech at $0.014 per 1K characters - [BGE-M3 API](https://openlux.lol/models/bge-m3): multilingual embeddings for retrieval and RAG at $0.0035 per 1M tokens - [Jina Reranker V3 API](https://openlux.lol/models/jina-reranker-v3): reranking that lifts RAG accuracy at $0.0042 per 1M tokens ## Model providers - [OpenAI models](https://openlux.lol/providers/openai): GPT-6 Astra, GPT-5.6 Sol and gpt-image-2-c on one key - [Anthropic models](https://openlux.lol/providers/anthropic): Claude Opus 5, Sonnet 4.5 and Fable 5.1 - [Google models](https://openlux.lol/providers/google): Gemini 3.1 Pro, Gemini 3.8 Flash and the image previews - [DeepSeek models](https://openlux.lol/providers/deepseek): DeepSeek V4 reasoning at $0.0613 per 1M tokens - [Qwen models](https://openlux.lol/providers/qwen): Qwen3 Max for Chinese and coding workloads - [Doubao models](https://openlux.lol/providers/doubao): voice synthesis at $0.014 per 1K characters - [Flux models](https://openlux.lol/providers/flux): FLUX 2 Pro photoreal image generation - [Suno models](https://openlux.lol/providers/suno): Suno V6 music generation - [Kling models](https://openlux.lol/providers/kling): Kling 3.0 video generation - [All providers](https://openlux.lol/providers): every model vendor behind one OpenAI-compatible endpoint ## Chinese landing page - [OpenLux 中文站](https://openlux.lol/zh-cn): 一个 API Key 调用 GPT、Claude、Gemini、DeepSeek、Qwen、豆包、FLUX、Suno、Kling 等模型,OpenAI 兼容接口、按量计费、统一账单,价格大幅低于官方定价。 ## More integration guides - [Open WebUI](https://openlux.lol/integrations/open-webui): self-hosted chat UI on OpenLux models - [LobeChat](https://openlux.lol/integrations/lobechat): custom API host setup for LobeChat - [Cherry Studio](https://openlux.lol/integrations/cherry-studio): add OpenLux as a desktop provider - [Cline](https://openlux.lol/integrations/cline): agentic coding in VS Code on OpenLux - [Aider](https://openlux.lol/integrations/aider): terminal pair programming with two environment variables - [Continue](https://openlux.lol/integrations/continue): IDE chat, autocomplete and embeddings through OpenLux - [n8n](https://openlux.lol/integrations/n8n): AI steps inside automation workflows - [Dify](https://openlux.lol/integrations/dify): LLM apps, agents and RAG on OpenLux - [SillyTavern](https://openlux.lol/integrations/sillytavern): custom endpoint setup for character chat - [Chatbox](https://openlux.lol/integrations/chatbox): desktop client on a custom API host ## Integration index - [All integration guides](https://openlux.lol/integrations): coding agents, chat clients, automation platforms and app builders on one key ## 中文页面(Wave 4) - [模型目录与价格(中文)](https://openlux.lol/zh-cn/models): 19 个模型的实时价格、折扣与选型建议 - [厂商总览(中文)](https://openlux.lol/zh-cn/providers): OpenAI、Anthropic、Google、DeepSeek、Qwen、豆包、FLUX、Suno、Kling - [接入教程(中文)](https://openlux.lol/zh-cn/integrations): Claude Code、Codex、Cursor、Cherry Studio 四步接入 - [Claude Code 国内使用教程](https://openlux.lol/zh-cn/integrations/claude-code): LiteLLM 桥接,按量计费 - [Codex CLI 国内使用教程](https://openlux.lol/zh-cn/integrations/codex): 一个 config.toml 配置块接入 - [Cursor 接入教程](https://openlux.lol/zh-cn/integrations/cursor): 自定义 Base URL 与模型 - [Cherry Studio 配置教程](https://openlux.lol/zh-cn/integrations/cherry-studio): 添加 OpenAI 兼容提供商 - [GPT API 国内使用指南](https://openlux.lol/zh-cn/gpt-api): GPT-6 Astra $0.3677/百万 token(-96%) - [Claude API 国内使用指南](https://openlux.lol/zh-cn/claude-api): Opus 5 $0.4412、Sonnet 4.5 $0.2647 - [Gemini API 国内使用指南](https://openlux.lol/zh-cn/gemini-api): 3.1 Pro $0.1471、3.8 Flash $0.0551 - [AI API 中转站指南](https://openlux.lol/zh-cn/api-relay): 是什么、怎么选、如何开始 - [GPT-6 Astra 对比 DeepSeek V4](https://openlux.lol/zh-cn/compare/gpt-6-astra/deepseek-v4): 旗舰与性价比之选 - [Claude Opus 5 对比 GPT-6 Astra](https://openlux.lol/zh-cn/compare/claude-opus-5/gpt-6-astra): 两大旗舰对比 ## Wave 5: gateway comparison & aggregator guides - [OpenRouter alternative](https://openlux.lol/openrouter-alternative): five-point checklist for choosing an LLM gateway, with a two-line migration - [What is an LLM API aggregator?](https://openlux.lol/llm-api-aggregator): the category explained — one key, one bill, 19 models - [API 中转站价格与计费指南](https://openlux.lol/zh-cn/api-relay-pricing): 倍率、计费单位与五步比价法 - [怎么查 API 中转站真假](https://openlux.lol/zh-cn/api-relay-verification): 模型指纹、计量核对与协议完整性四步检测 - [ChatGPT 中转站怎么用](https://openlux.lol/zh-cn/chatgpt-relay): Key 获取与第一个请求 - [Claude Code 中转站怎么选](https://openlux.lol/zh-cn/claude-code-relay): 五条自查与 LiteLLM 桥接要点 - [Gemini 中转站](https://openlux.lol/zh-cn/gemini-relay): 国内调用 Gemini API 与多模态 - [编程工具选型对比](https://openlux.lol/zh-cn/coding-tools-relay): Claude Code / Codex / Cursor 怎么选、怎么接 - [OpenRouter 国内替代](https://openlux.lol/zh-cn/openrouter-alternative): 聚合平台五点评估与迁移路径 - [企业 API 中转怎么选](https://openlux.lol/zh-cn/enterprise-relay): 合规、发票与 SLA 四个审查点 ## Wave 6: 中文模型价格页与指南枢纽 - [中文指南中心](https://openlux.lol/zh-cn/guides): 中转站、模型接入、价格、安全与企业采购的中文指南索引 - [GPT-6 Astra 价格与 API](https://openlux.lol/zh-cn/models/gpt-6-astra): $0.3677/百万 token(-96%),旗舰推理、工具调用与视觉输入 - [GPT-5.6 Sol 价格与 API](https://openlux.lol/zh-cn/models/gpt-5.6-sol): $0.1838/百万 token(-96%),日常默认模型 - [Claude Opus 5 价格与 API](https://openlux.lol/zh-cn/models/claude-opus-5): $0.4412/百万 token(-91%),高难度推理与工具调用 - [Claude Sonnet 4.5 价格与 API](https://openlux.lol/zh-cn/models/claude-sonnet-4-5-20250929): $0.2647/百万 token(-91%),编码与长上下文均衡 - [Gemini 3.1 Pro 价格与 API](https://openlux.lol/zh-cn/models/gemini-3.1-pro-preview): $0.1471/百万 token(-92%),多模态与深度思考 - [Gemini 3.8 Flash 价格与 API](https://openlux.lol/zh-cn/models/gemini-3.8-flash): $0.0551/百万 token(-92%),高吞吐通用负载 - [DeepSeek V4 价格与 API](https://openlux.lol/zh-cn/models/deepseek-v4): $0.0613/百万 token(-90%),中文与推理性价比 - [API 中转站安全吗](https://openlux.lol/zh-cn/api-relay-security): 数据留存、密钥管理、上游账号、跑路风险与合规六项核查 - [API 中转站怎么充值](https://openlux.lol/zh-cn/api-relay-topup): 汇率、起充门槛、发票、退款与余额管理 ## Wave 7: AI API gateway buyer and developer guides - [AI API gateway guide](https://openlux.lol/ai-api-gateway): how hosted gateways, routers, aggregators and self-hosted proxies differ, with a public-docs comparison of OpenLux, OpenRouter, AI/ML API, Portkey and LiteLLM - [AI API gateway pricing](https://openlux.lol/ai-api-gateway-pricing): token, request, speech-character and subscription billing explained, with monthly model-cost examples and a calculator - [Enterprise AI API gateway](https://openlux.lol/enterprise-ai-api-gateway): procurement checklist for contracts, data retention, key governance, SLA, invoicing and production pilots - [OpenAI-compatible API](https://openlux.lol/openai-compatible-api): what compatibility means, how to migrate an OpenAI SDK, supported OpenLux endpoints and the tests to run before cutover - [AI API gateway security](https://openlux.lol/ai-api-gateway-security): prompt retention, key scope, upstream risk, model substitution, retries, compliance and a practical review checklist ## Wave 8: commercial gateway comparisons - [LLM gateway alternatives](https://openlux.lol/llm-gateway-alternatives): OpenRouter, Requesty, LiteLLM, Portkey, AIHubMix and OpenLux compared by hosting, routing, model breadth and operations - [OpenLux vs OpenRouter](https://openlux.lol/openlux-vs-openrouter): marketplace breadth versus a curated managed production catalogue - [OpenLux vs Requesty](https://openlux.lol/openlux-vs-requesty): routing and team controls versus published model-level pricing - [OpenLux vs LiteLLM](https://openlux.lol/openlux-vs-litellm): self-hosted ownership versus a managed OpenAI-compatible service - [OpenLux vs AIHubMix](https://openlux.lol/openlux-vs-aihubmix): multilingual model marketplace breadth versus a focused catalogue - [Cheapest LLM API](https://openlux.lol/cheapest-llm-api): input/output tokens, media requests, retries and plans, with a live cost calculator - [大模型网关替代方案](https://openlux.lol/zh-cn/llm-gateway-alternatives): 托管、自托管和市场型 LLM Gateway 的中文选型对比 - [OpenLux 对比 OpenRouter](https://openlux.lol/zh-cn/openlux-vs-openrouter): 模型覆盖、价格、路由、运维和迁移方式 ## Wave 9: coding-agent cost and budgeting - [LLM API cost calculator](https://openlux.lol/llm-api-cost-calculator): estimate sessions, input/output tokens, retries, team size and monthly cost - [AI cost optimization](https://openlux.lol/ai-cost-optimization): task routing, context reduction, retry control and cost per successful task - [Claude Code cost](https://openlux.lol/claude-code-cost): per-session and monthly estimates for Claude Code through an API endpoint - [Codex CLI cost](https://openlux.lol/codex-cli-cost): task context, tool loops, retries and team budgeting - [Cursor API cost](https://openlux.lol/cursor-api-cost): separate the Cursor plan from routed custom-endpoint usage - [Coding agent cost comparison](https://openlux.lol/coding-agent-cost-comparison): Claude Code, Codex, Cursor, Aider and Cline compared by billing surface - [大模型 API 成本计算器](https://openlux.lol/zh-cn/llm-api-cost-calculator): 按 Token、会话、重试和团队人数估算每月费用 - [Claude Code 成本](https://openlux.lol/zh-cn/claude-code-cost): Claude Code 会话费用、模型比较和团队预算 ## Wave 10: developer tool integrations - [OpenCode + OpenLux](https://openlux.lol/integrations/opencode): configure a custom OpenAI-compatible provider with opencode.json and @ai-sdk/openai-compatible - [Roo Code + OpenLux](https://openlux.lol/integrations/roo-code): use the OpenAI Compatible provider with native tool calling in VS Code - [Kilo Code + OpenLux](https://openlux.lol/integrations/kilo-code): add OpenLux as a custom OpenAI-compatible provider in Kilo Code - [Vercel AI SDK + OpenLux](https://openlux.lol/integrations/vercel-ai-sdk): build TypeScript AI features with createOpenAICompatible and generateText ## Wave 11: gateway selection and prompt caching - [LiteLLM vs OpenRouter](https://openlux.lol/litellm-vs-openrouter): compare self-hosted control, a hosted marketplace and managed OpenLux on ownership, routing, security and total cost - [LLM prompt caching](https://openlux.lol/llm-prompt-caching): how Claude, GPT and Gemini caching differ, prompt caching vs semantic caching, and how to calculate effective cost ## Wave 12: free API access and AI code review - [Free LLM API](https://openlux.lol/free-llm-api): compare limits, expiry, data terms and the point where paid inference is cheaper - [AI code review](https://openlux.lol/ai-code-review): build a bounded pull-request reviewer with Python, GitHub Actions and human approval ## Wave 13: routing, rate limits and the guide hub - [LLM router](https://openlux.lol/llm-router): when model routing improves accepted-task cost, quality, latency or availability - [LLM API rate limits](https://openlux.lol/llm-api-rate-limits): diagnose RPM, TPM, concurrency and 429 responses, then build a bounded retry budget - [Guide library](https://openlux.lol/guides): curated paths through API access, gateway selection, routing, cost and coding agents ## Wave 14: observability - [LLM API observability](https://openlux.lol/llm-api-observability): safe request logs, useful metrics, traces and actionable alerts for model-backed workloads ## Wave 15: fallback and failover - [LLM API fallback](https://openlux.lol/llm-api-fallback): choose retryable failures, preserve model quality, protect side effects and test a deadline-bound fallback chain ## Wave 16: timeout diagnosis - [LLM API timeout](https://openlux.lol/llm-api-timeout): identify the timeout stage, separate connect, first-token, idle and total deadlines, and recover without duplicate work ## Wave 18: structured outputs - [LLM structured outputs](https://openlux.lol/llm-structured-outputs): compare JSON mode, strict JSON Schema and tool calling; validate completion and semantics with bounded recovery and route-specific capability checks ## Wave 17: load balancing - [LLM API load balancing](https://openlux.lol/llm-api-load-balancing): distribute traffic across keys, providers, regions and deployments while respecting quotas, quality and data boundaries