Skip to main content
llm.corsair.dev is Corsair’s internal LLM gateway, an OpenAI-compatible API you can use with the Vercel AI SDK, OpenAI SDK, Cursor, or any client that accepts a custom baseURL. Visiting llm.corsair.dev in a browser redirects here.

Quick start

Add these env vars to your app:
Point your client at the gateway and call models by name.

Available models

List models with your key:

Check your budget

Each key has a dollar budget. Check how much you’ve used and how much is left:
Example response:
  • spend: dollars used so far in the current budget window
  • max_budget: your total allowance
  • budget_duration: when spend resets (e.g. 30d = monthly)
Remaining budget: max_budget - spend (e.g. $23.58 left in the example above). When spend reaches max_budget, requests return an error until the budget resets or your limit is increased.

Vercel AI SDK

Streaming works the same way with streamText.

OpenAI SDK

Do not use openai('gpt-4o') with the default OpenAI provider, which calls OpenAI directly. Always use createOpenAI({ baseURL, apiKey }) so requests go through the gateway.

curl

Env var aliases

Some projects use different names. These are equivalent:

Endpoints