# OpenAI-compatible API for 101 models

> Use the OpenAI SDK or curl with one Outrun key for 101 models. Base URL https://api.outrun.to/v1, setup guides for Cline, OpenCode and more. Prepaid.

Outrun is an OpenAI-compatible API for 101 models. Change your base URL to https://api.outrun.to/v1, use your Outrun key and pick a model ID.

[Get your API key](https://outrun.to/key) [See all models and prices](https://outrun.to/pricing)

## Connect in two lines

Set the base URL and your key. Everything else stays the same as in your current code. It works with the OpenAI SDKs and with tools such as Cline, OpenCode and SillyTavern. You pay per token from prepaid credit, with no subscription.

| Setting | Value |
| --- | --- |
| Base URL | `https://api.outrun.to/v1` |
| API key | Your Outrun key |
| Model ID | For example `deepseek-v4.1-flash`. IDs are case-sensitive and must match the model list exactly. |

If your app adds `/v1` by itself, use `https://api.outrun.to` instead.

## Try it from code

Keep your key in an environment variable. Do not paste it into an AI chat, a screenshot or a repository. Full request and response formats are in the [API reference](https://outrun.to/docs/api).

**Python (OpenAI SDK)**

```
import os
from openai import OpenAI

client = OpenAI(
    base_url="https://api.outrun.to/v1",
    api_key=os.environ["OUTRUN_API_KEY"],
)
reply = client.chat.completions.create(
    model="deepseek-v4.1-flash",
    messages=[{"role": "user", "content": "Hello!"}],
    max_tokens=8192,
)
print(reply.choices[0].message.content)
```

**curl**

```
curl https://api.outrun.to/v1/chat/completions \
  -H "Authorization: Bearer $OUTRUN_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "model": "deepseek-v4.1-flash",
    "messages": [{"role": "user", "content": "Hello!"}],
    "max_tokens": 8192
  }'
```

**List the model IDs your key can use**

```
curl https://api.outrun.to/v1/models \
  -H "Authorization: Bearer $OUTRUN_API_KEY"
```

## Which tools work with it

Each tool below has a setup guide with the exact values to enter.

### OpenAI-compatible (Chat Completions)

- [Cline (VS Code)](https://outrun.to/docs/setup/cline)
- [Roo Code (VS Code)](https://outrun.to/docs/setup/roo-code)
- [OpenCode CLI](https://outrun.to/docs/setup/opencode)
- [SillyTavern](https://outrun.to/docs/setup/sillytavern)
- [Janitor AI](https://outrun.to/docs/setup/janitor-ai)
- [LiteLLM (Python and Proxy)](https://outrun.to/docs/setup/litellm)
- [Grok Build CLI](https://outrun.to/docs/setup/grokbuild)
- [Zo Computer](https://outrun.to/docs/setup/zo)

### OpenAI Responses

- [Codex CLI](https://outrun.to/docs/setup/codex)
- [Codex desktop app](https://outrun.to/docs/setup/codex_app)

### Other request formats on the same key

- [Claude Code](https://outrun.to/docs/setup/claude)
- [Gemini CLI](https://outrun.to/docs/setup/gemini)

Claude Code uses the Anthropic Messages format. Its address is `https://api.outrun.to`, with no `/v1`. Gemini CLI uses the Gemini native format. Not listed? Any client that accepts an OpenAI-compatible base URL and a model ID can use Outrun. Start from the [documentation index](https://outrun.to/docs/).

## Pricing

You pay per token from prepaid USD credit. There is no subscription. Every model has its own rate for input, cached input and output tokens.

- [All 101 models and their prices](https://outrun.to/pricing), with a request cost calculator.
- Each model has its own page with the exact rate and a copy-paste snippet, for example [DeepSeek V4.1 Flash](https://outrun.to/model/deepseek-v4.1-flash).
- The price list is also published as JSON at `https://api.outrun.to/pricing`, with no key needed.

## Questions

Setup guides for each tool are in the [guides hub](https://outrun.to/guides).

### What base URL do I use for an OpenAI-compatible app?

Use https://api.outrun.to/v1. If your app adds /v1 to the address by itself, use https://api.outrun.to instead.

### Which endpoints can I call?

Chat Completions (/v1/chat/completions) works for all text models. The Responses API (/v1/responses) works for GPT models. /v1/models lists your model IDs. Image generation, text to speech and video generation have their own endpoints, listed in the [API reference](https://outrun.to/docs/api). /v1/audio/transcriptions is not available.

### How am I billed, and how do I check my balance?

Requests use prepaid USD credit and are billed per token at the rate for the exact model you name. To see your balance, call GET /v1/account with your key or open your dashboard. Send one small test first, because tests use credit.

### Does Outrun store my prompts?

Outrun does not store your prompts, images or outputs unless you choose to save them.

## Related pages

- [Get an API key](https://outrun.to/key)
- [Every model price](https://outrun.to/pricing)
- [API reference](https://outrun.to/docs/api)
- [Documentation index](https://outrun.to/docs/)
- [DeepSeek V4.1 Flash](https://outrun.to/model/deepseek-v4.1-flash)
- [Get your key](https://outrun.to/key)
