Base URL
When to use this page
Use this page when replacing direct OpenAI calls with QuotaFlow while keeping OpenAI-compatible SDK code.
Base URL
https://api.quotaflow.ai/openai/v1
JavaScript SDK pattern
import OpenAI from "openai";
const client = new OpenAI({
apiKey: process.env.QUOTAFLOW_API_KEY,
baseURL: "https://api.quotaflow.ai/openai/v1"
});
Python SDK pattern
from openai import OpenAI
import os
client = OpenAI(
api_key=os.environ["QUOTAFLOW_API_KEY"],
base_url="https://api.quotaflow.ai/openai/v1",
)
Endpoint mapping
| OpenAI-compatible path | QuotaFlow URL |
|---|---|
/models | https://api.quotaflow.ai/openai/v1/models |
/responses | https://api.quotaflow.ai/openai/v1/responses |
/chat/completions | https://api.quotaflow.ai/openai/v1/chat/completions |
Sticky sessions
For coding agents and long conversations, pass one of these values consistently:
x-session-idheadersession_idheadersession_idbody fieldconversation_idbody fieldprompt_cache_keybody field
QuotaFlow uses this to prefer the same upstream account and improve cache locality.
AI agents: start at
/llms.txt, fetch /llms-full.txt for full context, and parse /openapi.yaml for endpoint schemas.