Models & picking one
A single key gives you access to 41 models. To switch models, just change the model field — no reconnecting needed.
Which model to use
| Task | Model | Why |
|---|---|---|
| Coding and agents | gpt-5.6-sol | strong reasoning and reliable tool calling |
| Cheap and high-volume | deepseek-v4-flash | lowest price per 1M tokens |
| Long context, PDFs, images | gemini-3.7-flash | multimodal input, huge context window |
| Writing and analysis | claude-sonnet-4-6 | quality prose, long documents |
| Fast chat replies | gpt-5.6-luna | low latency at a low price |
| Speech recognition | gpt-4o-transcribe | audio to text |
A good strategy is to keep two models on hand: a strong one for complex steps and a cheap one for routine tasks. Switching is a one-line change.
Popular models
| Model | Context | Price per 1M input |
|---|---|---|
gpt-6-astra | 1M | 48,9 ₽ |
gpt-5.6-sol | 1M | 18,8 ₽ |
gpt-5.6-terra | 1M | 9,02 ₽ |
gpt-5.6-luna | 1M | 1,65 ₽ |
gpt-5.5 | 400K | 18,8 ₽ |
gpt-5.4 | 1M | 11,3 ₽ |
gpt-5.4-mini | 400K | 6,02 ₽ |
claude-fable-5 | 200K | 60,2 ₽ |
claude-opus-5 | 1M | 30,1 ₽ |
claude-opus-4-8 | 1M | 30,1 ₽ |
claude-opus-4-7 | 1M | 30,1 ₽ |
claude-opus-4-6 | 1M | 30,1 ₽ |
The full catalog with prices, context windows, and supported input types is on the models page.
Listing models via request
You can fetch current model names straight from the API — handy for select boxes in your UI.
curl https://api.relaymodels.com/v1/models -H "Authorization: Bearer $RELAY_API_KEY"Fallback model
If uptime matters to you, add a simple safety net: retry the request on another model when one fails.
const chain = ["gpt-5.6-sol", "claude-sonnet-4-6", "gemini-3.7-flash"];
for (const model of chain) {
try {
return await client.chat.completions.create({ model, messages });
} catch (e) {
// try the next model
}
}