Quick setup
Open the kRouter dashboard at http://localhost:20128
Go to Providers → click OpenAI
Paste your API key, click Save
Test the connection
Use in your IDE
Point any OpenAI-compatible client at kRouter using your local API key.
# Endpoint
http://localhost:20128/v1
# API key (from Dashboard → API Keys)
sk-krouter-XXXX
# Model
openai/gpt-5How OpenAI billing works with kRouter
OpenAI is pay-per-token. You bring your own API key and kRouter routes to it, so you keep your own rate limits and billing relationship. kRouter authenticates it via apikey. 32 models are routable as openai/<model>.
Through kRouter, OpenAI serves chat and code completion, embeddings, exposed on /v1/embeddings, text-to-speech, exposed on /v1/audio/speech, speech-to-text, exposed on /v1/audio/transcriptions, image generation, exposed on /v1/images/generations, image understanding (OCR / vision-to-text), web search, exposed on /v1/search so an agent can look things up mid-conversation. Requests reach it through the same local OpenAI-compatible endpoint as every other provider, so switching to or from OpenAI is a one-line model change in your client rather than a rewrite.
OpenAI models & pricing
Prices are USD per 1M tokens, cheapest first. kRouter bills nothing on top; this is the provider's own rate.
| Model | Route as | Input /1M | Output /1M |
|---|---|---|---|
| GPT-4o Mini | openai/gpt-4o-mini | $0.15 | $0.60 |
| GPT-4o Mini TTS | openai/gpt-4o-mini-tts | $0.15 | $0.60 |
| GPT-4o Transcribe | openai/gpt-4o-transcribe | $0.15 | $0.60 |
| GPT-4o Mini Transcribe | openai/gpt-4o-mini-transcribe | $0.15 | $0.60 |
| GPT-5 Mini | openai/gpt-5-mini | $0.75 | $3.00 |
| O4 Mini | openai/o4-mini | $2.00 | $8.00 |
| GPT-4o | openai/gpt-4o | $2.50 | $10.00 |
| GPT-4.1 | openai/gpt-4.1 | $2.50 | $10.00 |
| GPT-4.1 Mini | openai/gpt-4.1-mini | $2.50 | $10.00 |
| GPT-4.1 Nano | openai/gpt-4.1-nano | $2.50 | $10.00 |
| GPT-5.4 | openai/gpt-5.4 | $3.00 | $12.00 |
| GPT-5.4 Mini | openai/gpt-5.4-mini | $3.00 | $12.00 |
| GPT-5.4 Nano | openai/gpt-5.4-nano | $3.00 | $12.00 |
| GPT-5 | openai/gpt-5 | $3.00 | $12.00 |
| GPT-5 Nano | openai/gpt-5-nano | $3.00 | $12.00 |
| O1 Mini | openai/o1-mini | $3.00 | $12.00 |
| GPT-5.1 | openai/gpt-5.1 | $4.00 | $16.00 |
| GPT-5.2 | openai/gpt-5.2 | $5.00 | $20.00 |
| GPT-4 Turbo | openai/gpt-4-turbo | $10.00 | $30.00 |
| O3 Mini | openai/o3-mini | $10.00 | $40.00 |
| O3 Pro | openai/o3-pro | $10.00 | $40.00 |
| O1 | openai/o1 | $15.00 | $60.00 |
| O3 | openai/o3 | — | — |
| Text Embedding 3 Large | openai/text-embedding-3-large | — | — |
| Text Embedding 3 Small | openai/text-embedding-3-small | — | — |
| Text Embedding Ada 002 | openai/text-embedding-ada-002 | — | — |
| TTS-1 | openai/tts-1 | — | — |
| TTS-1 HD | openai/tts-1-hd | — | — |
| Whisper 1 | openai/whisper-1 | — | — |
| GPT Image 1 | openai/gpt-image-1 | — | — |
| DALL-E 3 | openai/dall-e-3 | — | — |
| DALL-E 2 | openai/dall-e-2 | — | — |
OpenAI links
OpenAI FAQ
Is OpenAI free through kRouter?
OpenAI is pay-per-token: you bring your own API key and are billed by OpenAI at their rates. kRouter adds nothing on top and is free and MIT-licensed.
How do I use OpenAI with Claude Code or Cursor?
Connect OpenAI in the kRouter dashboard, then point your tool at kRouter's local endpoint (http://localhost:20128/v1) with a kRouter API key. Any OpenAI-compatible client works, and models are addressed as openai/<model>.
Which OpenAI models can kRouter route to?
32 models, including GPT-5.4, GPT-5.4 Mini, GPT-5.4 Nano. Every one is addressed as openai/<model> from any client.
What happens when OpenAI is rate limited?
kRouter detects the limit, parks that account until its real reset time, and fails over to your next connected account or provider — so the request still completes instead of erroring.