Skip to main content
Inferoute is OpenAI-compatible, so you can start routing requests through it using tools you already have. This guide walks you through creating an account, generating an API key, and making your first chat completion request.
1

Sign up for Inferoute

Create a free account at inferoute.ai. After signing up, you’ll land in the Inferoute dashboard where you can manage API keys, view usage, and configure routing.
2

Generate an API key

In the dashboard, go to Settings → API Keys and click New API key. Give it a descriptive name (for example, dev-local) and optionally set an expiry date. Copy the key immediately — it won’t be displayed again.
Store your API key securely. Never commit it to version control or share it in public channels. Use an environment variable instead of hardcoding it in your application.
3

Install the OpenAI SDK (optional)

Inferoute works with the standard OpenAI SDK. If you prefer to use raw HTTP, skip this step.
4

Configure the base URL and API key

Point the SDK or your HTTP client at the Inferoute API endpoint. Replace YOUR_INFEROUTE_API_KEY with the key you generated.
5

Make a chat completion request

Send a chat completion request exactly as you would with the OpenAI API.
A successful response looks like this:
You can use any OpenAI-compatible model name in the model field — including Anthropic, Google, and Mistral models. Inferoute maps the model name to the appropriate provider automatically. See the models reference for the full list of supported model identifiers.
Every request you make appears in the Inferoute dashboard under Usage. From there you can monitor token consumption, estimated costs, and which providers handled each request.