---
title: "Providers"
subtitle: "Every provider the gateway calls, and how to pick one."
---

## Change the provider

A model name such as `gpt-5.5` can be served by any provider that has it. Put a provider's prefix in front, such as `azure/gpt-5.5`, to keep the call on that provider. To pick among providers by price, speed, or data retention instead, see [Routing](/docs/ai-gateway/routing/provider-routing).

<Tabs>
<Tab title="cURL">
```bash
curl https://gateway.respan.ai/v1/chat/completions \
  -H "Authorization: Bearer $RESPAN_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"model": "azure/gpt-5.5", "messages": [{"role": "user", "content": "Hello!"}]}'
```
</Tab>
<Tab title="Python">
```python
import os
from openai import OpenAI

client = OpenAI(base_url="https://gateway.respan.ai", api_key=os.environ["RESPAN_API_KEY"])

# Any provider that serves gpt-5.5
client.chat.completions.create(model="gpt-5.5", messages=[{"role": "user", "content": "Hello!"}])
# Azure only
client.chat.completions.create(model="azure/gpt-5.5", messages=[{"role": "user", "content": "Hello!"}])
```
</Tab>
<Tab title="TypeScript">
```typescript
import OpenAI from "openai";

const client = new OpenAI({ baseURL: "https://gateway.respan.ai", apiKey: process.env.RESPAN_API_KEY });

// Any provider that serves gpt-5.5
await client.chat.completions.create({ model: "gpt-5.5", messages: [{ role: "user", content: "Hello!" }] });
// Azure only
await client.chat.completions.create({ model: "azure/gpt-5.5", messages: [{ role: "user", content: "Hello!" }] });
```
</Tab>
</Tabs>

## Provider list

Put a provider's pin prefix in front of a model ID to keep the call on that provider. To run on your own account with a provider, add its key under **API keys** › **BYOK** (Team and above); your own keys serve first. A key needs only the API key, except:

- **Azure**: API key and endpoint URL.
- **AWS Bedrock**: access key, secret key and region.
- **Google Vertex AI**: project, location and service account JSON.
- **Custom**: endpoint URL and API key.

| Provider | Pin prefix |
|---|---|
| AI21 Labs | `ai21_labs/` (also `ai21/`) |
| Anthropic | `anthropic/` |
| AWS Bedrock | `bedrock/` |
| Azure | `azure/` |
| Baseten | `baseten/` |
| Cerebras | `cerebras/` |
| Chutes | `chutes/` |
| Cohere | `cohere/` |
| DeepInfra | `deepinfra/` |
| DeepRelay | `deeprelay/` |
| DeepSeek | `deepseek/` |
| EmpirioLabs | `empiriolabs/` |
| Featherless | `featherless/` (also `featherless_ai/`) |
| Fireworks AI | `fireworks/` (also `fireworks_ai/`) |
| FriendliAI | `friendliai/` |
| Gonka24 | `gonka24/` |
| Google Gemini | `gemini/` (also `google_gemini_ai/`) |
| Google Vertex AI | `vertex_ai/` (also `google_vertex_ai/`) |
| Groq | `groq/` |
| Inceptron | `inceptron/` |
| Inference.net | `inference_net/` |
| IO.net | `ionet/` |
| Isoquant | `isoquant/` |
| Makora | `makora/` |
| MangoBoost | `mangoboost/` |
| Meta | `meta/` |
| MiniMax | `minimax/` |
| Mistral | `mistral/` |
| Moonshot | `moonshot/` |
| MorphLLM | `morphllm/` (also `morph/`) |
| Nebius | `nebius/` |
| Nextbit | `nextbit256/` |
| Novita AI | `novita/` |
| OpenAI | `openai/` |
| OpenRouter | `openrouter/` |
| Parasail | `parasail/` |
| Pareto Inference | `paretoinference/` |
| Perplexity | `perplexity/` |
| Phonic | `phonic/` |
| PrimaLabs | `primalabs/` |
| Prime Intellect | `prime_intellect/` |
| Prism | `prism/` |
| Qwen | `qwen/` |
| Relace | `relace/` |
| Respan | `respan/` |
| RunAnywhere | `runanywhere/` |
| StepFun | `stepfun/` |
| Tencent | `tencent/` |
| Tera | `tera/` |
| Together AI | `togetherai/` (also `together_ai/`) |
| TypeSafe | `typesafe/` |
| Wafer | `wafer/` |
| xAI | `xai/` |
| Z.ai | `zai/` |
| [Custom](#custom-providers) | The provider ID you set |

## Custom providers

To call a self-hosted or other OpenAI-compatible server, go to **API keys** › **BYOK** and click **New custom provider**. One dialog sets up everything:

- **Name**: the provider ID is made from it, so `Self-hosted DeepSeek` becomes `self-hosted-deepseek`.
- **Endpoints**: the server's **OpenAI-compatible** base URL. Click **Add endpoint** to give a format its own URL, such as **Anthropic**, **Gemini** or **OpenAI responses only**. URLs must be public.
- **API key**: saved as the provider's first deployment.
- **Models**: a **Name** and an optional **Upstream ID**, the model name your server expects. It is sent as written, such as `openai/gpt-oss-120b`, and defaults to the name.

The dialog shows the name to call, such as `self-hosted-deepseek/deepseek-v3`. Send it as `model`.

To change a custom provider later, click it in the list. Its panel edits the name, endpoints and models, and **Add deployment** adds another key; a deployment on a custom provider needs an API key. To set a deployment's own URL for a format, use the API's `formats` field.

## When a model retires

On each of the 7 days before a model your project calls retires, the project's **Inbox** gets a notice:

- `<model> retires on <YYYY-MM-DD>; switch to <replacement> before then.`
- `<model> retires on <YYYY-MM-DD>; requests to it fail from that day.` when the model has no replacement.

From the retirement date, calls to the model fail. To have them answered by the replacement instead, ask Respan to turn on rerouting for your organization. With rerouting on:

- The response's `model` names the model that answered, as OpenRouter does.
- Each log carries `retired_model_rerouted_from`, the retired model you asked for; it's `null` (empty in RQL) when the call wasn't rerouted. It's on the log detail (`GET /api/request-logs/{unique_id}/`), the logs list, and the RQL `spans` entity.
- You're billed for the model that answered.

Rerouting applies to gateway calls, not to Playground runs or batches, and only to a retired model that has a replacement.

## Become a Respan provider

To offer your models to everyone on Respan, reach out to [team@respan.ai](mailto:team@respan.ai).
