Skip to main content
Inferoute exposes an OpenAI-compatible REST API that lets you send inference requests to multiple LLM providers through a single unified endpoint. Every request goes to https://api.inferoute.ai/v1, accepts JSON, and returns JSON — so any tooling that works with the OpenAI API works with Inferoute as well.

Base URL

Authentication

All requests require a Bearer token in the Authorization header:
See Authentication for full details and code examples.

Available endpoints

Chat completions

Send a messages array and receive an assistant reply. Supports streaming, function calling, and all OpenAI-compatible parameters.

Completions

Legacy text completion endpoint. Accepts a prompt string and returns generated text.

Embeddings

Generate vector representations of text for semantic search, RAG pipelines, and classification.

Models

Retrieve the full list of models available on Inferoute, including provider, context window, and capabilities.

OpenAI SDK compatibility

Because Inferoute implements the OpenAI API spec, you can use any OpenAI SDK by pointing base_url at Inferoute:

Inferoute-specific headers

Inferoute extends the OpenAI request/response contract with a small set of headers for routing control and observability.

Request headers

Response headers