# Quotaflow API documentation > OpenAI-compatible APIs. Use https://api.quotaflow.ai/openai/v1 and check /models for your key. Read [full context](https://docs.quotaflow.ai/llms-full.txt) and [OpenAPI](https://docs.quotaflow.ai/openapi.yaml) for endpoint details. ## Quotaflow API (en) - [Introduction](https://docs.quotaflow.ai/): What Quotaflow is and when to use these docs. - [Quickstart](https://docs.quotaflow.ai/quickstart/): Send your first OpenAI-compatible request through Quotaflow. - [Authentication](https://docs.quotaflow.ai/authentication/): How to authenticate requests to Quotaflow. - [Get an API key](https://docs.quotaflow.ai/get-an-api-key/): How customers receive and use a Quotaflow API key. - [BYOK credential management](https://docs.quotaflow.ai/byok-management/): Store personal or team-owned provider credentials without adding them to Quotaflow runtime capacity. - [Partner API](https://docs.quotaflow.ai/partner/): Automate partner-funded customer organizations, allocations, API keys, funding checks, and usage reporting. - [Base URL](https://docs.quotaflow.ai/openai-compatible/base-url/): Configure OpenAI-compatible SDKs to use Quotaflow. - [Switch from OpenRouter](https://docs.quotaflow.ai/migrate/openrouter/): Point an existing OpenRouter (or any OpenAI-compatible) integration at Quotaflow by changing the base URL and key — model ids follow the same author/model convention. - [Codex overview](https://docs.quotaflow.ai/codex/overview/): How Quotaflow supports Codex-style coding agents. - [Models](https://docs.quotaflow.ai/openai-compatible/models/): List, choose, and validate Quotaflow models from the OpenAI-compatible API. ## OpenAI-compatible (en) - [Responses API](https://docs.quotaflow.ai/openai-compatible/responses/): Use Quotaflow with the OpenAI-compatible Responses API. - [Chat Completions](https://docs.quotaflow.ai/openai-compatible/chat-completions/): Use legacy OpenAI-compatible chat completions through Quotaflow. - [Embeddings](https://docs.quotaflow.ai/openai-compatible/embeddings/): Create embeddings through the OpenAI-compatible Quotaflow API. - [Images](https://docs.quotaflow.ai/openai-compatible/images/): Generate images through the OpenAI-compatible Quotaflow API. - [Videos](https://docs.quotaflow.ai/openai-compatible/videos/): Create Seedance video generation tasks through the OpenAI-compatible Quotaflow API. - [Legacy Video API](https://docs.quotaflow.ai/openai-compatible/video/): OpenAI-compatible asynchronous video jobs. ## Model Library (en) - [Quotaflow Model Library](https://docs.quotaflow.ai/models/overview/): Choose supported Quotaflow models by task, protocol, endpoint, latency profile, and production use case. - [GPT Image 2 — Image generation API](https://docs.quotaflow.ai/models/reference-gpt-image-2/): Generate images with gpt-image-2 through Quotaflow's V3 OpenAI-compatible Images endpoint. - [GPT Image 2.5 — Flare and Sunburst](https://docs.quotaflow.ai/models/reference-gpt-image-2-5/): Compare gpt-image-2.5-flare and gpt-image-2.5-sunburst, their Images API parameters, and standard token prices. - [GPT Image 2.6 — Flare and Sunburst](https://docs.quotaflow.ai/models/reference-gpt-image-2-6/): Compare gpt-image-2.6-flare and gpt-image-2.6-sunburst, their Images API parameters, and standard token prices. - [Gemini 3.1 Flash Image — fast image generation](https://docs.quotaflow.ai/models/reference-gemini-3-1-flash-image-preview/): Generate images quickly with gemini-3.1-flash-image-preview through the Quotaflow OpenAI-compatible Images endpoint or the native Gemini generateContent endpoint. - [Seedance 2.0 Fast — Quotaflow video API](https://docs.quotaflow.ai/models/reference-seedance-2-0-fast/): Create async Seedance 2.0 Fast video tasks from text, a first frame, first and last frames, or reference videos through Quotaflow's OpenAI-compatible video API. - [Veo model availability](https://docs.quotaflow.ai/models/reference-veo-3-1-fast-generate-001/): Availability notice for Veo model IDs. ## Protocol Surfaces (en) - [Anthropic-compatible Messages](https://docs.quotaflow.ai/anthropic-compatible/messages/): Use Claude-style messages through Quotaflow. - [Fast mode routing](https://docs.quotaflow.ai/routing/fast-mode/): Ask Quotaflow to open a new conversation on its fastest capacity with the X-QuotaFlow-Routing header, without changing the model, parameters, or price. - [Gemini-compatible generateContent](https://docs.quotaflow.ai/gemini-compatible/generate-content/): Use Gemini-style generateContent through Quotaflow. ## Serverless & Agents (en) - [Local Connector](https://docs.quotaflow.ai/codex/local-connector/): Run Codex, Claude Code, Cursor, or any local agent with Quotaflow workspace context. - [Personal vs Team usage](https://docs.quotaflow.ai/codex/personal-and-team-usage/): Choose the right Quotaflow workspace for personal work, company work, routing, billing, and audits. - [Routing policy](https://docs.quotaflow.ai/codex/routing/): Understand how Quotaflow decides Personal, team, project, and fallback routing for local agents. - [Codex CLI](https://docs.quotaflow.ai/codex/cli/): Configure a local Codex-style CLI to use Quotaflow. - [Codex Desktop](https://docs.quotaflow.ai/codex/desktop/): Install Quotaflow for Codex Desktop without replacing ChatGPT sign-in. - [Capacity and retries](https://docs.quotaflow.ai/codex/capacity-and-retries/): How Quotaflow handles capacity protection and retry-safe errors. ## Billing & offers (en) - [New customer offers](https://docs.quotaflow.ai/billing/new-customer-offers/): Understand introductory pricing offers, recurring billing, and cancellation in the Quotaflow dashboard. - [How billing works](https://docs.quotaflow.ai/billing/how-billing-works/): How Quotaflow charges for requests — token pricing, interrupted streams, long-context surcharges, and caching. ## Examples (en) - [Curl examples](https://docs.quotaflow.ai/examples/curl/): Minimal curl examples for Quotaflow. - [Node.js examples](https://docs.quotaflow.ai/examples/node/): Use the OpenAI JavaScript SDK with Quotaflow. - [Python examples](https://docs.quotaflow.ai/examples/python/): Use the OpenAI Python SDK with Quotaflow. ## Reference (en) - [Errors](https://docs.quotaflow.ai/reference/errors/): Common Quotaflow error responses and what to do. - [Rate limits](https://docs.quotaflow.ai/reference/rate-limits/): How Quotaflow capacity limits and queues work. - [Public capability status](https://docs.quotaflow.ai/reference/status/): Read Quotaflow's unauthenticated, capability-scoped service status. - [Billing status endpoint](https://docs.quotaflow.ai/reference/balance/): Returns the authenticated key's organization balance, subscription status, or explicit non-wallet billing context. - [Organization billing API](https://docs.quotaflow.ai/reference/organization-billing/): Read an organization's balance and daily usage from your own server with a read-only organization billing token. - [Common issues](https://docs.quotaflow.ai/troubleshooting/common-issues/): Troubleshoot setup, authentication, and request failures. - [Notes for AI agents](https://docs.quotaflow.ai/troubleshooting/agent-notes/): A concise implementation guide for AI coding agents reading these docs. ## Quotaflow API (zh) - [Quotaflow 中文文档](https://docs.quotaflow.ai/zh/): Quotaflow 中文文档入口,覆盖 API、模型、Codex、示例和参考文档。 - [快速开始](https://docs.quotaflow.ai/zh/quickstart/): 通过 Quotaflow 发送第一个 OpenAI 兼容请求。 - [鉴权](https://docs.quotaflow.ai/zh/authentication/): 如何对 Quotaflow 请求进行鉴权。 - [获取 API key](https://docs.quotaflow.ai/zh/get-an-api-key/): 客户如何获得和使用 Quotaflow API key。 - [BYOK 凭证管理](https://docs.quotaflow.ai/zh/byok-management/): 安全保存个人或团队自有 provider 凭证,不把它加入 Quotaflow runtime 容量。 - [Partner API](https://docs.quotaflow.ai/zh/partner/): 自动创建 partner 代付客户组织、分配额度、创建 API key、检查资金和读取用量。 - [Base URL](https://docs.quotaflow.ai/zh/openai-compatible/base-url/): 配置 OpenAI 兼容 SDK 使用 Quotaflow。 - [从 OpenRouter 切换](https://docs.quotaflow.ai/zh/migrate/openrouter/): 只需改 base URL 和 key,就能把现有 OpenRouter(或任何 OpenAI 兼容)集成切到 Quotaflow——模型 id 遵循同样的 author/model 约定。 - [Codex 概览](https://docs.quotaflow.ai/zh/codex/overview/): Quotaflow 如何支持 Codex 风格 coding agents。 - [模型](https://docs.quotaflow.ai/zh/openai-compatible/models/): 通过 OpenAI 兼容 API 列出、选择并验证 Quotaflow 模型。 ## OpenAI 兼容接口 (zh) - [Responses API](https://docs.quotaflow.ai/zh/openai-compatible/responses/): 通过 Quotaflow 使用 OpenAI 兼容 Responses API。 - [Chat Completions](https://docs.quotaflow.ai/zh/openai-compatible/chat-completions/): 通过 Quotaflow 使用旧版 OpenAI 兼容 chat completions。 - [Embeddings](https://docs.quotaflow.ai/zh/openai-compatible/embeddings/): 通过 OpenAI 兼容 Quotaflow API 创建 embeddings。 - [图片生成](https://docs.quotaflow.ai/zh/openai-compatible/images/): 通过 Quotaflow 的 OpenAI 兼容接口生成图片。 - [视频](https://docs.quotaflow.ai/zh/openai-compatible/videos/): 通过 OpenAI 兼容 Quotaflow API 创建 Seedance 视频生成任务。 - [Legacy Video API](https://docs.quotaflow.ai/zh/openai-compatible/video/): OpenAI 兼容的异步视频任务。 ## 模型库 (zh) - [Quotaflow 模型库](https://docs.quotaflow.ai/zh/models/overview/): 按任务、协议、endpoint、延迟特征和生产场景选择 Quotaflow 支持模型。 - [GPT Image 2 — 图片生成 API](https://docs.quotaflow.ai/zh/models/reference-gpt-image-2/): 通过 Quotaflow V3 OpenAI-compatible Images endpoint 使用 gpt-image-2 生成图片。 - [GPT Image 2.5 — Flare 与 Sunburst](https://docs.quotaflow.ai/zh/models/reference-gpt-image-2-5/): 比较 gpt-image-2.5-flare 与 gpt-image-2.5-sunburst、Images API 参数和标准 token 价格。 - [GPT Image 2.6 — Flare 与 Sunburst](https://docs.quotaflow.ai/zh/models/reference-gpt-image-2-6/): 比较 gpt-image-2.6-flare 与 gpt-image-2.6-sunburst、Images API 参数和标准 token 价格。 - [Gemini 3.1 Flash Image — 快速图片生成](https://docs.quotaflow.ai/zh/models/reference-gemini-3-1-flash-image-preview/): 通过 Quotaflow OpenAI 兼容 Images endpoint 或原生 Gemini generateContent endpoint 使用 gemini-3.1-flash-image-preview 快速生成图片。 - [Seedance 2.0 Fast — Quotaflow 视频 API](https://docs.quotaflow.ai/zh/models/reference-seedance-2-0-fast/): 通过 Quotaflow OpenAI 兼容视频 API 创建 Seedance 2.0 Fast 异步视频任务,支持文本、首帧、首尾帧和参考视频输入。 - [Veo 模型可用性](https://docs.quotaflow.ai/zh/models/reference-veo-3-1-fast-generate-001/): Veo 模型 ID 的可用性说明。 ## 协议接口 (zh) - [Anthropic 兼容 Messages](https://docs.quotaflow.ai/zh/anthropic-compatible/messages/): 通过 Quotaflow 使用 Claude 风格 messages。 - [快速模式路由](https://docs.quotaflow.ai/zh/routing/fast-mode/): 用 X-QuotaFlow-Routing 请求头让 Quotaflow 把新会话放到最快的容量上开始,不改模型、参数和价格。 - [Gemini 兼容 generateContent](https://docs.quotaflow.ai/zh/gemini-compatible/generate-content/): 通过 Quotaflow 使用 Gemini 风格 generateContent。 ## Serverless 与 Agents (zh) - [Local Connector](https://docs.quotaflow.ai/zh/codex/local-connector/): 让 Codex、Claude Code、Cursor 或任意本地 agent 带着 Quotaflow workspace 上下文运行。 - [Personal vs Team usage](https://docs.quotaflow.ai/zh/codex/personal-and-team-usage/): 为个人工作、公司工作、routing、billing 和 audit 选择正确的 Quotaflow workspace。 - [Routing policy](https://docs.quotaflow.ai/zh/codex/routing/): 理解 Quotaflow 如何为本地 agent 决定 Personal、team、project 和 fallback routing。 - [Codex CLI](https://docs.quotaflow.ai/zh/codex/cli/): 配置本地 Codex 风格 CLI 使用 Quotaflow。 - [Codex Desktop](https://docs.quotaflow.ai/zh/codex/desktop/): 在不替换 ChatGPT 登录的情况下为 Codex Desktop 安装 Quotaflow。 - [容量与重试](https://docs.quotaflow.ai/zh/codex/capacity-and-retries/): Quotaflow 如何处理容量保护和可安全重试错误。 ## 计费与优惠 (zh) - [新客优惠](https://docs.quotaflow.ai/zh/billing/new-customer-offers/): 在 Quotaflow Dashboard 中了解新客优惠、周期计费与取消规则。 - [计费说明](https://docs.quotaflow.ai/zh/billing/how-billing-works/): Quotaflow 如何对请求计费 —— 按 token 定价、中断的流式请求、长上下文加价与缓存。 ## 示例 (zh) - [Curl 示例](https://docs.quotaflow.ai/zh/examples/curl/): Quotaflow 最小 curl 示例。 - [Node.js 示例](https://docs.quotaflow.ai/zh/examples/node/): 使用 OpenAI JavaScript SDK 调用 Quotaflow。 - [Python 示例](https://docs.quotaflow.ai/zh/examples/python/): 使用 OpenAI Python SDK 调用 Quotaflow。 ## 参考 (zh) - [错误](https://docs.quotaflow.ai/zh/reference/errors/): 常见 Quotaflow 错误响应和处理方式。 - [速率限制](https://docs.quotaflow.ai/zh/reference/rate-limits/): Quotaflow 容量限制和队列如何工作。 - [公开能力状态](https://docs.quotaflow.ai/zh/reference/status/): 查看 Quotaflow 无需登录的能力级服务状态。 - [账务状态接口](https://docs.quotaflow.ai/zh/reference/balance/): 返回当前 key 的组织余额、订阅状态或显式非钱包账务上下文。 - [组织账务 API](https://docs.quotaflow.ai/zh/reference/organization-billing/): 在你自己的服务端用只读的组织账务 token 读取组织余额和按日用量。 - [常见问题](https://docs.quotaflow.ai/zh/troubleshooting/common-issues/): 排查设置、鉴权和请求失败。 - [AI agents 备注](https://docs.quotaflow.ai/zh/troubleshooting/agent-notes/): 给阅读这些文档的 AI coding agents 的简明实施指南。