Integration guides · 2026-11-22
YandexGPT 5 Lite API: high-volume short tasks and pricing
YandexGPT 5 Lite was retired on 15 November 2026 and yandex/yandexgpt-5-lite returns 410. Alice AI LLM Flash for the same short tasks, pricing and an example.
Short answer: yandex/yandexgpt-5-lite is retired, use yandex/alice-ai-llm-flash for short tasks
LLMTR (llmtr.com) is a gateway that gives access to language models hosted in Turkey and at global providers through a single OpenAI-compatible API. YandexGPT 5 Lite was called there with the model id yandex/yandexgpt-5-lite on the /v1/chat/completions endpoint at https://llmtr.com/v1. The model was retired on 15 November 2026; requests for that id get a model_retired (HTTP 410) error. Use Alice AI LLM Flash (yandex/alice-ai-llm-flash) instead: cheaper input, the same output price, twice the context, tool calling and JSON output.
YandexGPT 5 Lite was the lightweight release of YandexGPT 5, described in the catalog for fast, steady short answers. Its context window was 32,768 tokens, text in and text out, and input and output billed at one rate, $1.639344 per 1M tokens. Classification into a fixed label set, routing a message to the right queue and short replies run with the pattern below on Alice AI LLM Flash, at $0.819672 input and $1.639344 output per 1M tokens.
How to use the YandexGPT 5 Lite API for high-volume short tasks
High-volume short tasks follow one pattern: a short, fixed system prompt, one user message and a one-word answer. The Python example below sorts a support message into one of five labels on yandex/alice-ai-llm-flash. The request uses temperature 0 and max_tokens 10; max_tokens limits the output to roughly label length.
The code makes two checks. If finish_reason is length, the answer was cut off and the label may be incomplete, so the message goes to the fallback path. Otherwise the returned text is lowercased and compared with the label list, and any answer outside the list also goes to the fallback path. The fallback path can be a human queue or a separate review step. That way an unexpected word from the model never sends a message to the wrong queue.
A support-message classifier on yandex/alice-ai-llm-flash with the OpenAI Python SDK (YandexGPT 5 Lite is retired); it checks finish_reason and the label list and returns only the label.
import os
from openai import OpenAI
client = OpenAI(base_url="https://llmtr.com/v1", api_key=os.environ["LLMTR_API_KEY"])
LABELS = ["billing", "delivery", "refund", "technical", "other"]
SYSTEM = "Classify the support message. Reply with exactly one label from: " + ", ".join(LABELS) + "."
def classify(message: str) -> str:
# YandexGPT 5 Lite was retired on 15 November 2026; the same job runs on Alice AI LLM Flash.
response = client.chat.completions.create(
model="yandex/alice-ai-llm-flash",
messages=[
{"role": "system", "content": SYSTEM},
{"role": "user", "content": message},
],
temperature=0,
max_tokens=10,
)
choice = response.choices[0]
if choice.finish_reason == "length":
return "fallback" # the answer was cut off
label = (choice.message.content or "").strip().strip(".").lower()
return label if label in LABELS else "fallback"
print(classify("I was charged twice for the same order."))
YandexGPT 5 Lite pricing: input and output at one rate
On LLMTR, yandex/yandexgpt-5-lite cost $1.639344 per 1M tokens for both input and output. This equalled Yandex's published USD list price; Yandex quoted the price per 1,000 tokens and the catalog showed it per 1M tokens. The price was checked on 2026-10-12. No margin was added to this model's price; LLMTR's 8% platform fee is charged only when you top up credit.
Because input and output shared a rate, cost was a single multiplication: total tokens x $1.639344 / 1M. A worked example: 100,000 support messages, each with 250 input and 10 output tokens, come to 26,000,000 tokens. That came to 26,000,000 x $1.639344 / 1M = $42.622944. The system prompt is sent as input with every request, so count it inside those 250 tokens; this model had no cache discount.
| Property | Value |
|---|---|
| Model id | yandex/yandexgpt-5-lite |
| Status | retired 15 November 2026, 410 model_retired |
| Endpoint | /v1/chat/completions |
| Context window | 32,768 tokens |
| Input and output type | text only |
| Input (per 1M tokens) | $1.639344 |
| Output (per 1M tokens) | $1.639344 |
| Tool calling | yes, in the OpenAI tools format |
| JSON output | response_format {"type": "json_object"} |
| reasoning_effort | not supported, 400 invalid_request |
Practical tips for high volume
Keep the system prompt short and fixed. It is resent with every message and billed as input, so on Alice AI LLM Flash every 100 tokens you add to it mean 10,000,000 extra tokens, or $8.19672, across 100,000 messages.
Keep max_tokens small. A label is a few tokens, and a small max_tokens limits output cost when the model starts writing an explanation. Always validate the returned label against your own list and send unknown answers to the fallback path. If finish_reason often comes back as length, raise max_tokens slightly.
If you need one more short field next to the label, such as a priority, ask for JSON with response_format {"type": "json_object"} and state in the prompt that you expect JSON; Yandex's formatting page recommends the same. For short user-facing replies you can send stream: true; usage arrives at the end of the stream with stream_options.include_usage.
Limits: text only, no reasoning_effort
YandexGPT 5 Lite accepted text only, and so does Alice AI LLM Flash. A request that contains an image is refused with 400 unsupported_input and is not charged. The reasoning_effort field is not supported either: a request that sends it gets 400 invalid_request, so make sure your client does not add the field by default.
Alice AI LLM Flash's 65,536-token context leaves plenty of room for short messages; split long documents into parts before you send them. Tool calling works in the OpenAI tools format, so when a message should start an action you can define a tool instead of a label.
Getting started on LLMTR: account, key and first request
Step 1: create an account at llmtr.com and top up prepaid credit. Step 2: create a key under Dashboard > API Keys; the raw key is shown only once, so store it in an environment variable such as LLMTR_API_KEY. Step 3: in your OpenAI-compatible SDK, set base_url to https://llmtr.com/v1, use yandex/alice-ai-llm-flash as the model and send the first request.
Each request is deducted from your credit at the catalog price in effect when it is processed; the same key works for every model in the catalog.
Как использовать YandexGPT 5 Lite API для массовых коротких задач
LLMTR (llmtr.com) — совместимый с OpenAI API-шлюз. Модель yandex/yandexgpt-5-lite вызывалась через /v1/chat/completions по адресу https://llmtr.com/v1; 15 ноября 2026 года она выведена из эксплуатации, и запросы к ней получают ошибку model_retired (HTTP 410). Для тех же задач укажите модель yandex/alice-ai-llm-flash (Alice AI LLM Flash): в OpenAI SDK достаточно указать base_url, ключ и идентификатор модели.
Alice AI LLM Flash: контекст 65 536 токенов, вход 0,819672 $, вход из кэша 0,204918 $, выход 1,639344 $ за 1 млн токенов. Вход у неё дешевле, чем у Lite, выход стоит столько же, а контекст вдвое больше.
YandexGPT 5 Lite — облегчённая версия YandexGPT 5; в каталоге LLMTR она была описана для чатов и пользовательских сценариев, где нужны быстрые и стабильные короткие ответы. Типичные массовые короткие задачи: классификация по фиксированному набору меток, маршрутизация обращений, короткие ответы. Контекст был 32 768 токенов. Вход и выход стоили одинаково: 1,639344 $ за 1 млн входных токенов и 1,639344 $ за 1 млн выходных. Например, 100 000 сообщений по 250 входных и 10 выходных токенов обходились в 42,622944 $.
Alice AI LLM Flash, как и Lite, принимает только текст: запрос с изображением отклоняется с ошибкой 400 unsupported_input и не тарифицируется. Параметр reasoning_effort не поддерживается (400 invalid_request). Если finish_reason равен length, ответ обрезан; если это происходит часто, немного увеличьте max_tokens.
Практический совет: держите системный промпт коротким и неизменным, задайте небольшой max_tokens, а полученную метку сверяйте со своим списком; неизвестные ответы отправляйте на резервную обработку.
Чтобы начать, выполните три шага:
- Создайте аккаунт на llmtr.com и пополните баланс.
- В разделе Dashboard > API Keys создайте ключ: он показывается один раз, поэтому сохраните его в переменной окружения LLMTR_API_KEY.
- Укажите base_url https://llmtr.com/v1, модель yandex/alice-ai-llm-flash и отправьте первый запрос.
Run the YandexGPT 5 Lite job on Alice AI LLM Flash through LLMTR
Create an account, create an API key and send the first request to https://llmtr.com/v1 with yandex/alice-ai-llm-flash instead of the retired yandex/yandexgpt-5-lite.
- Account. Create an account at llmtr.com and top up prepaid credit.
- API key. Create a key under Dashboard > API Keys. The raw key is shown once; store it as the LLMTR_API_KEY environment variable.
- First request. In an OpenAI-compatible SDK, set base_url to https://llmtr.com/v1 and send the first request with yandex/alice-ai-llm-flash as the model; yandex/yandexgpt-5-lite is retired and returns 410 model_retired.
Frequently asked questions
How much does the YandexGPT 5 Lite API cost?
It was retired on 15 November 2026 (410 model_retired). Before that, input and output both cost $1.639344 per 1M tokens, with a 32,768-token context. Alice AI LLM Flash costs $0.819672 input and $1.639344 output.
How much does it cost to classify 100,000 short messages with YandexGPT 5 Lite?
With 250 input and 10 output tokens per message, the total is 26,000,000 tokens; on the retired Lite that cost $42.622944. The same job costs $22.131144 on Alice AI LLM Flash. Count the system prompt inside those 250 tokens.
Does YandexGPT 5 Lite accept images or reasoning_effort?
It is retired (410 model_retired) and accepted text only. On Alice AI LLM Flash, too, an image is refused with 400 unsupported_input and not charged, and reasoning_effort gets 400 invalid_request.