{
"error": {
"code": "BAD_REQUEST",
"message": "Недопустимое значение параметра",
"trace_id": "550e8400-e29b-41d4-a716-446655440000",
"details": {},
"metadata": {
"reason": "noProvidersForModel",
"raw": "The parameter `duration` specified in the request is not valid",
"provider_name": "alibaba"
}
},
"trace_id": "550e8400-e29b-41d4-a716-446655440000"
}
{
"error": {
"code": "BAD_REQUEST",
"message": "Недопустимое значение параметра",
"trace_id": "550e8400-e29b-41d4-a716-446655440000",
"details": {},
"metadata": {
"reason": "noProvidersForModel",
"raw": "The parameter `duration` specified in the request is not valid",
"provider_name": "alibaba"
}
},
"trace_id": "550e8400-e29b-41d4-a716-446655440000"
}
{
"error": {
"code": "BAD_REQUEST",
"message": "Недопустимое значение параметра",
"trace_id": "550e8400-e29b-41d4-a716-446655440000",
"details": {},
"metadata": {
"reason": "noProvidersForModel",
"raw": "The parameter `duration` specified in the request is not valid",
"provider_name": "alibaba"
}
},
"trace_id": "550e8400-e29b-41d4-a716-446655440000"
}
{
"error": {
"code": "BAD_REQUEST",
"message": "Недопустимое значение параметра",
"trace_id": "550e8400-e29b-41d4-a716-446655440000",
"details": {},
"metadata": {
"reason": "noProvidersForModel",
"raw": "The parameter `duration` specified in the request is not valid",
"provider_name": "alibaba"
}
},
"trace_id": "550e8400-e29b-41d4-a716-446655440000"
}
{
"error": {
"code": "BAD_REQUEST",
"message": "Недопустимое значение параметра",
"trace_id": "550e8400-e29b-41d4-a716-446655440000",
"details": {},
"metadata": {
"reason": "noProvidersForModel",
"raw": "The parameter `duration` specified in the request is not valid",
"provider_name": "alibaba"
}
},
"trace_id": "550e8400-e29b-41d4-a716-446655440000"
}
{
"error": {
"code": "BAD_REQUEST",
"message": "Недопустимое значение параметра",
"trace_id": "550e8400-e29b-41d4-a716-446655440000",
"details": {},
"metadata": {
"reason": "noProvidersForModel",
"raw": "The parameter `duration` specified in the request is not valid",
"provider_name": "alibaba"
}
},
"trace_id": "550e8400-e29b-41d4-a716-446655440000"
}
{
"error": {
"code": "BAD_REQUEST",
"message": "Недопустимое значение параметра",
"trace_id": "550e8400-e29b-41d4-a716-446655440000",
"details": {},
"metadata": {
"reason": "noProvidersForModel",
"raw": "The parameter `duration` specified in the request is not valid",
"provider_name": "alibaba"
}
},
"trace_id": "550e8400-e29b-41d4-a716-446655440000"
}
{
"error": {
"code": "BAD_REQUEST",
"message": "Недопустимое значение параметра",
"trace_id": "550e8400-e29b-41d4-a716-446655440000",
"details": {},
"metadata": {
"reason": "noProvidersForModel",
"raw": "The parameter `duration` specified in the request is not valid",
"provider_name": "alibaba"
}
},
"trace_id": "550e8400-e29b-41d4-a716-446655440000"
}
{
"error": {
"code": "BAD_REQUEST",
"message": "Недопустимое значение параметра",
"trace_id": "550e8400-e29b-41d4-a716-446655440000",
"details": {},
"metadata": {
"reason": "noProvidersForModel",
"raw": "The parameter `duration` specified in the request is not valid",
"provider_name": "alibaba"
}
},
"trace_id": "550e8400-e29b-41d4-a716-446655440000"
}
{
"error": {
"code": "BAD_REQUEST",
"message": "Недопустимое значение параметра",
"trace_id": "550e8400-e29b-41d4-a716-446655440000",
"details": {},
"metadata": {
"reason": "noProvidersForModel",
"raw": "The parameter `duration` specified in the request is not valid",
"provider_name": "alibaba"
}
},
"trace_id": "550e8400-e29b-41d4-a716-446655440000"
}
{
"error": {
"code": "BAD_REQUEST",
"message": "Недопустимое значение параметра",
"trace_id": "550e8400-e29b-41d4-a716-446655440000",
"details": {},
"metadata": {
"reason": "noProvidersForModel",
"raw": "The parameter `duration` specified in the request is not valid",
"provider_name": "alibaba"
}
},
"trace_id": "550e8400-e29b-41d4-a716-446655440000"
}
{
"error": {
"code": "BAD_REQUEST",
"message": "Недопустимое значение параметра",
"trace_id": "550e8400-e29b-41d4-a716-446655440000",
"details": {},
"metadata": {
"reason": "noProvidersForModel",
"raw": "The parameter `duration` specified in the request is not valid",
"provider_name": "alibaba"
}
},
"trace_id": "550e8400-e29b-41d4-a716-446655440000"
}
О Responses API
Responses API находится в бета-версии. API может измениться без предварительного уведомления.
Responses API — формат, совместимый с OpenAI Responses API. Работает с официальным OpenAI SDK
(client.responses.create(...)), Codex CLI и другими каноничными клиентами. Внутри запрос
трансформируется в Chat Completions и уходит выбранному провайдеру.Эндпоинты:
Метод
Путь
Назначение
POST
/v1/responses
Создание ответа (обычный и streaming)
POST
/v1/responses/compact
Компактизация истории диалога
Пути /v2/responses и /v2/responses/compact — алиасы, поведение идентично.
API stateless. Мы не храним предыдущие ответы: previous_response_id, conversation и store
не поддерживаются. Всю историю диалога — включая вызовы инструментов — передавайте в input
каждым запросом. Методов GET /v1/responses/{id}, DELETE и /cancel нет.
Основные параметры
Параметр
Тип
Описание
model
string
ID модели. Поддерживает alias-формат <model>@<key>=<value> (см. ниже)
from openai import OpenAIclient = OpenAI( base_url="https://polza.ai/api/v1", api_key="<POLZA_AI_API_KEY>",)response = client.responses.create( model="openai/gpt-4o", input=[{"role": "user", "content": "Привет!"}], instructions="Отвечай кратко и по делу",)print(response.output_text)
import OpenAI from 'openai';const client = new OpenAI({ baseURL: 'https://polza.ai/api/v1', apiKey: '<POLZA_AI_API_KEY>',});const response = await client.responses.create({ model: 'openai/gpt-4o', input: [{ role: 'user', content: 'Привет!' }], instructions: 'Отвечай кратко и по делу',});console.log(response.output_text);
status — completed, incomplete или failed. При incomplete заполняется
incomplete_details.reason (max_output_tokens или content_filter).В usage поля продублированы в двух неймингах: input_tokens/output_tokens (Responses API)
и prompt_tokens/completion_tokens (Chat Completions) — используйте любой. cost_rub —
фактическая стоимость запроса, списанная с баланса.
Tool calling
Поддерживается полный цикл: передача tools → получение function_call → отправка результата
через function_call_output → финальный ответ модели.
Типы инструментов
type
Поддержка
function
Оба формата: плоский Responses ({"type":"function","name":...}) и вложенный ({"type":"function","function":{...}})
custom
Free-form инструмент. Внутри приводится к функции с единственным строковым полем input, в ответе приходит как function_call с arguments = {"input": "..."}
polza:web_search, polza:web_fetch и другие polza:*
Серверные инструменты: Polza выполняет их сама внутри запроса, вызовы видны элементами output
web_search, web_search_preview
Веб-поиск: родной поиск провайдера, если модель его поддерживает, иначе поиск Polza; вызов виден элементом web_search_call
Возможность вызывать инструменты зависит от модели. Если модель не поддерживает tool calling,
инструменты будут проигнорированы провайдером. Проверяйте поддержку в
каталоге моделей.
Выполните функцию на своей стороне и отправьте новый запрос со всей историей: исходное сообщение
пользователя, item function_call и item function_call_output с тем же call_id.
В поле tools второго запроса передайте те же определения инструментов, что и в первом.
Item function_call обязателен. Если прислать только function_call_output — например,
рассчитывая, что историю подтянет previous_response_id, — модель получит результат инструмента
без самого вызова и вернёт ошибку вида
messages with role 'tool' must be a response to a preceding message with 'tool_calls'.
API stateless, историю нужно передавать полностью.
Типы input items
type
Описание
message (или объект с role)
Сообщение с ролью user, assistant, system или developer
function_call
Эхо ранее полученного вызова: call_id, name, arguments (JSON-строка)
function_call_output
Результат вызова: call_id и output (строка или произвольный JSON)
При stream: true ответ приходит в формате SSE. Имена и порядок событий соответствуют
спецификации OpenAI Responses API, поэтому работают официальный OpenAI SDK и Codex CLI.
События
Событие
Когда приходит
response.created
Ответ создан (первое событие)
response.output_item.added
Начался новый output item (message, reasoning или function_call)
response.content_part.added
Начата текстовая часть сообщения
response.output_text.delta
Инкремент текста
response.output_text.done
Полный текст части
response.content_part.done
Часть завершена, здесь же annotations
response.output_item.done
Output item завершён
response.function_call_arguments.delta
Инкремент JSON-аргументов вызова инструмента
response.function_call_arguments.done
Полные аргументы вызова
response.reasoning_text.delta / .done
Reasoning-текст модели
response.reasoning_summary_part.added
Начало summary reasoning
response.reasoning_summary_text.delta / .done
Summary reasoning
response.completed
Ответ завершён, содержит полный output и usage
response.incomplete
Ответ оборван по лимиту токенов или фильтру контента
POST /v1/responses/compact укорачивает историю диалога, когда она перестаёт помещаться в
контекст. Полезно агентским клиентам с длинными сессиями.Сервер сохраняет все инструкции (system и developer), последние keep_last сообщений и все
структурные items (function_call, function_call_output, reasoning), а вытесненные текстовые
сообщения сворачивает в один summary-плейсхолдер. Обращения к модели не происходит — метод
бесплатный и синхронный.
API ключ передаётся в заголовке: Authorization: Bearer <POLZA_AI_API_KEY>
Тело
application/json
input
stringobject[]
обязательно
Input for response - can be string or array of input items
Пример:
"Hello, how are you?"
model
string
обязательно
Идентификатор модели. Для Responses API поддерживается alias-формат @=&=. Поддерживаемые ключи: provider, reasoning_effort, allow_fallbacks, data_residency. При конфликте alias и обычных полей body API возвращает 400. Для некоторых провайдеров и моделей допустимые значения reasoning_effort отличаются; например, Yandex AI Studio поддерживает только low, medium и high.
Запуск response в background-режиме OpenAI. В Polza provider path не запускает отдельную async job и игнорируется.
include
string[]
Дополнительные поля output, которые OpenAI может включить в ответ. Поддерживается как входной параметр совместимости; конкретные include зависят от провайдера.
Пример:
["reasoning.encrypted_content"]
models
string[]
устарело
НЕ РЕАЛИЗОВАНО. Массив fallback-моделей пока не поддерживается Responses API и игнорируется. Для fallback используйте alias-формат в model: @allow_fallbacks=true.
text
object
Text output configuration
Show child attributes
reasoning
object
Reasoning configuration
Show child attributes
max_output_tokens
number
Maximum output tokens
Пример:
1000
temperature
number
Temperature (0-2)
Требуемый диапазон: 0 <= x <= 2
Пример:
0.7
top_p
number
Top P (nucleus sampling)
Требуемый диапазон: 0 <= x <= 1
Пример:
1
top_logprobs
number
Top logprobs
Требуемый диапазон: 0 <= x <= 20
Пример:
5
max_tool_calls
number
Максимум вызовов серверных инструментов за запрос (по умолчанию 10, потолок 30; без polza:* — лимит вызовов провайдера)
Пример:
5
stop_server_tools_when
object[]
Условия остановки цикла серверных инструментов: step_count заменяет max_tool_calls (потолок 30), spend_cap добавляет мягкий потолок расходов на запрос: он проверяется перед каждым шагом модели, поэтому итог может превысить spend_cap на шаг, на котором потолок пройден, его инструменты и финальный ответ
Show child attributes
prompt
object
устарело
Конфигурация reusable prompt OpenAI. В текущем provider path Polza не загружает prompt templates и игнорирует поле.
presence_penalty
number
Presence penalty (-2 to 2)
Требуемый диапазон: -2 <= x <= 2
frequency_penalty
number
Frequency penalty (-2 to 2)
Требуемый диапазон: -2 <= x <= 2
top_k
number
Top K sampling
Пример:
40
image_config
object
Image configuration options
modalities
enum<string>[]
Output modalities
Доступные опции:
text,
image
prompt_cache_key
string
Prompt cache key
prompt_cache_retention
enum<string>
Prompt cache retention policy
Доступные опции:
in_memory,
24h
prompt_cache_options
object
Настройки кэша начала запроса (OpenAI)
Show child attributes
Пример:
{ "ttl": "12h" }
previous_response_id
string
устарело
НЕ РЕАЛИЗОВАНО. Продолжение по previous_response_id пока не поддерживается и игнорируется. Для мультитёрн-сессий передавайте историю целиком в input.
conversation
object
устарело
Conversation ID/object OpenAI Responses API. В Polza stateless path не подтягивает историю по conversation; передавайте историю целиком в input.
context_management
array
Context management OpenAI Responses API. Локальная компактизация доступна через /v1/responses/compact; поле принимается для совместимости.
moderation
object
Input/output moderation configuration
stream
boolean
по умолчанию:false
Enable streaming
stream_options
object
Опции стриминга
Show child attributes
provider
object
Provider preferences
Show child attributes
user
string
Уникальный идентификатор конечного пользователя для отслеживания и предотвращения злоупотреблений
Maximum string length: 256
Пример:
"user-123"
safety_identifier
string
Stable hashed end-user identifier from OpenAI Responses API. Если user не указан, используется как user для downstream provider.
Maximum string length: 256
Пример:
"sha256-user-id"
service_tier
enum<string>
OpenAI service tier
Доступные опции:
auto,
default,
flex,
scale,
priority
store
boolean
Whether to store generated response for later retrieval
truncation
enum<string>
Truncation strategy
Доступные опции:
auto,
disabled
session_id
string
устарело
НЕ РЕАЛИЗОВАНО. session_id не пробрасывается провайдеру (OpenRouter Chat Completions API не поддерживает это поле) и игнорируется. Для отслеживания сессий используйте metadata или user.
plugins
string[]
Плагины для расширения функциональности (web search, file parser и др.)
Ответ
id
string
обязательно
Response ID
Пример:
"gen_581761234567890123"
object
enum<string>
обязательно
Доступные опции:
response
Пример:
"response"
created_at
number
обязательно
Created timestamp
Пример:
1234567890
model
string
обязательно
Model used
Пример:
"openai/gpt-4"
status
enum<string>
обязательно
Доступные опции:
completed,
incomplete,
in_progress,
failed,
cancelled,
queued
Пример:
"completed"
output_text
string
обязательно
Full output text (convenience field)
Пример:
"Hello! How can I help you today?"
output
array
обязательно
Output items array
completed_at
object | null
Completed timestamp
error
object | null
Error information
Show child attributes
incomplete_details
object | null
Details about incomplete response
usage
object
Usage information
Show child attributes
metadata
object
Metadata key-value pairs
polza
object
Есть, если модель вызывала серверные инструменты: parent_generation_id — id запроса в истории (GET /v1/history/generations/{id}), шаги — /children
Была ли эта страница полезной?
{"docsConfig":{"theme":"mint","$schema":"https://mintlify.com/docs.json","name":"Polza.ai","colors":{"primary":"#4D7C0F","light":"#A3E635","dark":"#65A30D"},"logo":{"light":"https://mintcdn.com/polza/vvxkgBWcVlkywuwq/logo/light.svg?fit=max\u0026auto=format\u0026n=vvxkgBWcVlkywuwq\u0026q=85\u0026s=03a6a8e98a87bf6c97e54c1bd77e3658","dark":"https://mintcdn.com/polza/vvxkgBWcVlkywuwq/logo/dark.svg?fit=max\u0026auto=format\u0026n=vvxkgBWcVlkywuwq\u0026q=85\u0026s=336d0f754173bad8a33f3ef81a16267b"},"favicon":"https://mintcdn.com/polza/AzzTGFLop3jcikZx/favicon.ico?fit=max\u0026auto=format\u0026n=AzzTGFLop3jcikZx\u0026q=85\u0026s=806cdc343f38a57a177db57fda38732f","api":{"openapi":"https://polza.ai/api/openapi.json"},"navbar":{"links":[{"href":"/glavnoe/support","label":"Поддержка"}],"primary":{"type":"button","label":"Консоль","href":"https://polza.ai/dashboard"}},"footer":{"socials":{"telegram":"https://t.me/polzaai","x":"https://x.com/polza_ai","instagram":"https://instagram.com/polza_ai","youtube":"https://www.youtube.com/@polza_ai"},"links":[{"header":"Polza.ai","items":[{"label":"Главная","href":"https://polza.ai/"},{"label":"Модели и цены","href":"https://polza.ai/models"}]},{"header":"Начать работу","items":[{"label":"Получить API-ключ","href":"https://polza.ai/register"},{"label":"Личный кабинет","href":"https://polza.ai/dashboard"}]},{"header":"Документы","items":[{"label":"Политика обработки персональных данных","href":"https://polza.ai/documents/privacy-policy"},{"label":"Пользовательское соглашение","href":"https://polza.ai/documents/user-agreement"},{"label":"Сведения о ПО Polza.AI","href":"https://polza.ai/software-registry"}]},{"header":"Помощь","items":[{"label":"Поддержка","href":"/glavnoe/support"},{"label":"support@polza.ai","href":"mailto:support@polza.ai"}]}]},"errors":{"404":{"redirect":false,"title":"Страница не найдена","description":"Такой страницы в документации нет — возможно, адрес изменился. Начните с [быстрого старта](/glavnoe/quickstart) или напишите в [поддержку](/glavnoe/support)."}},"contextual":{"options":["copy","view","chatgpt","claude"],"display":"header"},"styling":{"latex":false},"navigation":{"global":{"languages":[{"language":"ru","default":true,"href":"/"}],"anchors":[{"anchor":"Модели","icon":"microchip","href":"https://polza.ai/models"},{"anchor":"Консоль","icon":"gauge","href":"https://polza.ai/dashboard"},{"anchor":"Обновления","icon":"clock-rotate-left","href":"/changelog"}]},"pages":[]}},"deployment":{"deploymentMetadataValue":{"subdomain":"polza","hasAudioNarration":false,"actualSubdomain":"polza","customDomains":["polza.ai"],"gitSource":{"type":"github","owner":"polza-ai","repo":"docs","deployBranch":"main","contentDirectory":"","isPrivate":true,"mountPath":"","label":""},"feedback":{"thumbs":true},"entitlements":{},"buildId":"6b06b18c52e6e0fc9aa10dd4","clientVersion":"0.0.4336","searchFilterCounts":[{"language":"default","tag":"Руководства","count":81},{"language":"default","tag":"Генерация медиа","count":35},{"language":"default","tag":"Интеграции","count":26},{"language":"default","tag":"API Reference","count":23},{"language":"default","tag":"Изображения","count":19},{"language":"default","tag":"Продвинутое","count":13},{"language":"default","tag":"Видео","count":11},{"language":"default","tag":"Документация","count":8},{"language":"default","tag":"Главное","count":8},{"language":"default","tag":"Хранилище","count":6}]},"assistantConfig":{"enableAskAiButton":false,"enableStarterQuestions":false,"enableAskAiSearchBar":true},"basePath":"/docs","hasChatPermissions":false,"hasWebMcpPermissions":false,"toggles":[{"name":"kill-isr","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"custom-rbac-roles","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"agent-mintlify-slack","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"agent-integrations-settings","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"rbac-expansion","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"automations-pr-grouping","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"custom-prefix","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"analytics-v7","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"user-flows-analytics","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"no-publish-flow","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"snapshot-serving-live","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"stripTemperatureMiddleware","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"support-platform-pylon-zendesk","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"snapshot-serving","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"instant-rollback","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"granular-notifications-server","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"granular-notifications","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"automations-fable","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"fixed-ai-action-pricing","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"site-roles","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"automation-resolve-merge-conflict","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"scoped-publishing","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"mintql","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"page-level-analytics","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"editor-version-history-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"billing-page-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"full-page-search","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workspace-projects","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"fork-pr-previews","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"revalidation-jwt","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"hobby-abuse-scan","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"dashboard-inbox","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"turbopuffer-dual-write","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"approve-review-flow","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"editor-metadata","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"sso-setup-deadline-banner","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"turbopuffer-serve","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"live-agents","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"starter-pricing","enabled":true,"variant":{"name":"treatment","enabled":true,"payload":{"type":"string","value":"treatment"},"feature_enabled":true},"impressionData":false},{"name":"llms-txt-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"wildcard-email-auth","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false}],"starterQuestions":[],"googleFontsInlined":false},"customCss":[]}
{"page":{"pagePath":"api-reference/responses/create","slug":"/api-reference/responses/create","pageMetadata":{"title":"POST Responses","description":"Responses API — OpenAI-совместимый формат запросов с tool calling и streaming","icon":"reply","openapi":"POST /v1/responses","href":"/api-reference/responses/create"},"description":{"compiledSource":"\"use strict\";\nconst {jsx: _jsx} = arguments[0];\nconst {useMDXComponents: _provideComponents} = arguments[0];\nfunction _createMdxContent(props) {\n const _components = {\n p: \"p\",\n ..._provideComponents(),\n ...props.components\n };\n return _jsx(_components.p, {\n children: \"Responses API — OpenAI-совместимый формат запросов с tool calling и streaming\"\n });\n}\nfunction MDXContent(props = {}) {\n const {wrapper: MDXLayout} = {\n ..._provideComponents(),\n ...props.components\n };\n return MDXLayout ? _jsx(MDXLayout, {\n ...props,\n children: _jsx(_createMdxContent, {\n ...props\n })\n }) : _createMdxContent(props);\n}\nreturn {\n default: MDXContent\n};\n","frontmatter":{},"scope":{}},"pageType":"default","mdx":{"mdxSource":{"compiledSource":"\"use strict\";const{Fragment:_Fragment,jsx:_jsx,jsxs:_jsxs}=arguments[0];const{useMDXComponents:_provideComponents}=arguments[0];function _createMdxContent(props){const _components={a:`a`,code:`code`,li:`li`,p:`p`,pre:`pre`,span:`span`,strong:`strong`,tbody:`tbody`,td:`td`,th:`th`,thead:`thead`,tr:`tr`,ul:`ul`,..._provideComponents(),...props.components},{Card,CardGroup,CodeBlock,CodeGroup,Heading,Note,Table,Warning}=_components;if(!Card)_missingMdxReference(`Card`,true);if(!CardGroup)_missingMdxReference(`CardGroup`,true);if(!CodeBlock)_missingMdxReference(`CodeBlock`,true);if(!CodeGroup)_missingMdxReference(`CodeGroup`,true);if(!Heading)_missingMdxReference(`Heading`,true);if(!Note)_missingMdxReference(`Note`,true);if(!Table)_missingMdxReference(`Table`,true);if(!Warning)_missingMdxReference(`Warning`,true);return _jsxs(_Fragment,{children:[_jsx(Heading,{level:`2`,id:`о-responses-api`,children:`О Responses API`}),`\n`,_jsx(Warning,{children:_jsxs(_components.p,{children:[`Responses API находится в `,_jsx(_components.strong,{children:`бета-версии`}),`. API может измениться без предварительного уведомления.`]})}),`\n`,_jsxs(_components.p,{children:[`Responses API — формат, совместимый с OpenAI Responses API. Работает с официальным OpenAI SDK\n(`,_jsx(_components.code,{children:`client.responses.create(...)`}),`), Codex CLI и другими каноничными клиентами. Внутри запрос\nтрансформируется в Chat Completions и уходит выбранному провайдеру.`]}),`\n`,_jsx(_components.p,{children:`Эндпоинты:`}),`\n`,_jsxs(Table,{children:[_jsx(_components.thead,{children:_jsxs(_components.tr,{children:[_jsx(_components.th,{children:`Метод`}),_jsx(_components.th,{children:`Путь`}),_jsx(_components.th,{children:`Назначение`})]})}),_jsxs(_components.tbody,{children:[_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`POST`})}),_jsx(_components.td,{children:_jsx(_components.code,{children:`/v1/responses`})}),_jsx(_components.td,{children:`Создание ответа (обычный и streaming)`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`POST`})}),_jsx(_components.td,{children:_jsx(_components.code,{children:`/v1/responses/compact`})}),_jsx(_components.td,{children:`Компактизация истории диалога`})]})]})]}),`\n`,_jsxs(_components.p,{children:[`Пути `,_jsx(_components.code,{children:`/v2/responses`}),` и `,_jsx(_components.code,{children:`/v2/responses/compact`}),` — алиасы, поведение идентично.`]}),`\n`,_jsx(Note,{children:_jsxs(_components.p,{children:[_jsx(_components.strong,{children:`API stateless.`}),` Мы не храним предыдущие ответы: `,_jsx(_components.code,{children:`previous_response_id`}),`, `,_jsx(_components.code,{children:`conversation`}),` и `,_jsx(_components.code,{children:`store`}),`\nне поддерживаются. Всю историю диалога — включая вызовы инструментов — передавайте в `,_jsx(_components.code,{children:`input`}),`\nкаждым запросом. Методов `,_jsx(_components.code,{children:`GET /v1/responses/{id}`}),`, `,_jsx(_components.code,{children:`DELETE`}),` и `,_jsx(_components.code,{children:`/cancel`}),` нет.`]})}),`\n`,_jsx(Heading,{level:`2`,id:`основные-параметры`,children:`Основные параметры`}),`\n`,_jsxs(Table,{children:[_jsx(_components.thead,{children:_jsxs(_components.tr,{children:[_jsx(_components.th,{children:`Параметр`}),_jsx(_components.th,{children:`Тип`}),_jsx(_components.th,{children:`Описание`})]})}),_jsxs(_components.tbody,{children:[_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`model`})}),_jsx(_components.td,{children:`string`}),_jsxs(_components.td,{children:[`ID модели. Поддерживает alias-формат `,_jsx(_components.code,{children:`\u003cmodel>@\u003ckey>=\u003cvalue>`}),` (см. ниже)`]})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`input`})}),_jsx(_components.td,{children:`string / array`}),_jsx(_components.td,{children:`Текст или массив input items`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`instructions`})}),_jsx(_components.td,{children:`string`}),_jsx(_components.td,{children:`Системные инструкции (эквивалент system-сообщения)`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`stream`})}),_jsx(_components.td,{children:`boolean`}),_jsx(_components.td,{children:`Потоковая передача через SSE`})]})]})]}),`\n`,_jsx(Heading,{level:`3`,id:`alias-формат-модели`,children:`Alias-формат модели`}),`\n`,_jsxs(_components.p,{children:[`К имени модели можно дописать параметры маршрутизации через `,_jsx(_components.code,{children:`@`}),`:`]}),`\n`,_jsx(CodeBlock,{filename:``,numberOfLines:`2`,language:`text`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`text`,children:_jsxs(_components.code,{language:`text`,numberOfLines:`2`,children:[_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{children:`openai/gpt-4o@provider=azure\u0026reasoning_effort=high\u0026allow_fallbacks=false`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{})})]})})}),`\n`,_jsxs(_components.p,{children:[`Поддерживаемые ключи: `,_jsx(_components.code,{children:`provider`}),`, `,_jsx(_components.code,{children:`reasoning_effort`}),`, `,_jsx(_components.code,{children:`allow_fallbacks`}),`. При конфликте alias\nи одноимённого поля в теле запроса API вернёт 400.`]}),`\n`,_jsx(Heading,{level:`3`,id:`дополнительные-параметры`,children:`Дополнительные параметры`}),`\n`,_jsxs(Table,{children:[_jsx(_components.thead,{children:_jsxs(_components.tr,{children:[_jsx(_components.th,{children:`Параметр`}),_jsx(_components.th,{children:`Тип`}),_jsx(_components.th,{children:`Описание`})]})}),_jsxs(_components.tbody,{children:[_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`tools`})}),_jsx(_components.td,{children:`array`}),_jsx(_components.td,{children:`Определения инструментов (см. раздел Tool calling)`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`tool_choice`})}),_jsx(_components.td,{children:`string / object`}),_jsxs(_components.td,{children:[_jsx(_components.code,{children:`none`}),`, `,_jsx(_components.code,{children:`auto`}),`, `,_jsx(_components.code,{children:`required`}),` или `,_jsx(_components.code,{children:`{\"type\":\"function\",\"name\":\"...\"}`})]})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`parallel_tool_calls`})}),_jsx(_components.td,{children:`boolean`}),_jsx(_components.td,{children:`Разрешить параллельные вызовы инструментов`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`max_tool_calls`})}),_jsx(_components.td,{children:`integer (1–30)`}),_jsx(_components.td,{children:`Ограничение на количество вызовов; с серверными инструментами — сколько их вызовов модель может сделать за запрос (по умолчанию 10)`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`stop_server_tools_when`})}),_jsx(_components.td,{children:`array`}),_jsxs(_components.td,{children:[`Условия остановки цикла серверных инструментов: `,_jsx(_components.code,{children:`step_count`}),`, `,_jsx(_components.code,{children:`spend_cap`}),` (`,_jsx(_components.a,{href:`/gaidy/server-tools#%D0%BB%D0%B8%D0%BC%D0%B8%D1%82%D1%8B-%D0%B2%D1%8B%D0%B7%D0%BE%D0%B2%D0%BE%D0%B2`,children:`подробнее`}),`)`]})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`stream_options`})}),_jsx(_components.td,{children:`object`}),_jsxs(_components.td,{children:[_jsx(_components.code,{children:`hide_intermediate_text: true`}),` — в стриме только финальный ответ, без текста промежуточных шагов серверных инструментов`]})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`reasoning`})}),_jsx(_components.td,{children:`object`}),_jsxs(_components.td,{children:[`Настройки reasoning: `,_jsx(_components.code,{children:`effort`}),` (`,_jsx(_components.code,{children:`max`}),`/`,_jsx(_components.code,{children:`xhigh`}),`/`,_jsx(_components.code,{children:`high`}),`/`,_jsx(_components.code,{children:`medium`}),`/`,_jsx(_components.code,{children:`low`}),`/`,_jsx(_components.code,{children:`minimal`}),`/`,_jsx(_components.code,{children:`none`}),`), `,_jsx(_components.code,{children:`summary`}),`, `,_jsx(_components.code,{children:`max_tokens`}),`, `,_jsx(_components.code,{children:`type: adaptive`}),` для Claude 4.6+`]})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`text`})}),_jsx(_components.td,{children:`object`}),_jsxs(_components.td,{children:[`Формат вывода: `,_jsx(_components.code,{children:`{\"format\": {\"type\": \"text\" | \"json_object\" | \"json_schema\", ...}}`})]})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`max_output_tokens`})}),_jsx(_components.td,{children:`integer`}),_jsx(_components.td,{children:`Максимум выходных токенов`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`temperature`})}),_jsx(_components.td,{children:`float (0–2)`}),_jsx(_components.td,{children:`Температура генерации`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`top_p`})}),_jsx(_components.td,{children:`float (0–1)`}),_jsx(_components.td,{children:`Nucleus sampling`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`top_k`})}),_jsx(_components.td,{children:`integer`}),_jsx(_components.td,{children:`Top-K sampling`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`top_logprobs`})}),_jsx(_components.td,{children:`integer (0–20)`}),_jsx(_components.td,{children:`Количество log probabilities`})]}),_jsxs(_components.tr,{children:[_jsxs(_components.td,{children:[_jsx(_components.code,{children:`frequency_penalty`}),` / `,_jsx(_components.code,{children:`presence_penalty`})]}),_jsx(_components.td,{children:`float (−2…2)`}),_jsx(_components.td,{children:`Штрафы за повторы`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`include`})}),_jsx(_components.td,{children:`array`}),_jsxs(_components.td,{children:[`Дополнительные поля вывода, например `,_jsx(_components.code,{children:`[\"reasoning.encrypted_content\"]`})]})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`prompt_cache_key`})}),_jsx(_components.td,{children:`string`}),_jsx(_components.td,{children:`Ключ кеширования промпта`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`prompt_cache_retention`})}),_jsx(_components.td,{children:`string`}),_jsxs(_components.td,{children:[_jsx(_components.code,{children:`in_memory`}),` или `,_jsx(_components.code,{children:`24h`})]})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`modalities`})}),_jsx(_components.td,{children:`array`}),_jsxs(_components.td,{children:[_jsx(_components.code,{children:`[\"text\"]`}),`, `,_jsx(_components.code,{children:`[\"text\",\"image\"]`}),` — для моделей с генерацией изображений`]})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`image_config`})}),_jsx(_components.td,{children:`object`}),_jsx(_components.td,{children:`Параметры генерации изображений`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`provider`})}),_jsx(_components.td,{children:`object`}),_jsxs(_components.td,{children:[`Предпочтения по провайдерам (см. `,_jsx(_components.a,{href:`/gaidy/provider-selection`,children:`Выбор провайдера`}),`)`]})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`plugins`})}),_jsx(_components.td,{children:`array`}),_jsxs(_components.td,{children:[`Серверные плагины: `,_jsx(_components.code,{children:`web`}),`, `,_jsx(_components.code,{children:`file-parser`}),`, `,_jsx(_components.code,{children:`moderation`}),`, `,_jsx(_components.code,{children:`masker`}),`, `,_jsx(_components.code,{children:`response-healing`})]})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`metadata`})}),_jsx(_components.td,{children:`object`}),_jsx(_components.td,{children:`Произвольные key-value данные`})]}),_jsxs(_components.tr,{children:[_jsxs(_components.td,{children:[_jsx(_components.code,{children:`user`}),` / `,_jsx(_components.code,{children:`safety_identifier`})]}),_jsx(_components.td,{children:`string`}),_jsx(_components.td,{children:`Идентификатор конечного пользователя`})]})]})]}),`\n`,_jsx(Heading,{level:`3`,id:`не-поддерживаются`,children:`Не поддерживаются`}),`\n`,_jsx(_components.p,{children:`Эти поля принимаются ради совместимости с OpenAI SDK, но не влияют на результат:`}),`\n`,_jsxs(Table,{children:[_jsx(_components.thead,{children:_jsxs(_components.tr,{children:[_jsx(_components.th,{children:`Параметр`}),_jsx(_components.th,{children:`Что использовать вместо`})]})}),_jsxs(_components.tbody,{children:[_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`previous_response_id`})}),_jsxs(_components.td,{children:[`Передавайте всю историю в `,_jsx(_components.code,{children:`input`})]})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`conversation`})}),_jsx(_components.td,{children:`То же`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`store`})}),_jsx(_components.td,{children:`Ответы не сохраняются, истории через API нет`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`background`})}),_jsx(_components.td,{children:`Асинхронного режима у Responses API нет`})]}),_jsxs(_components.tr,{children:[_jsxs(_components.td,{children:[_jsx(_components.code,{children:`prompt`}),` (reusable prompt templates)`]}),_jsxs(_components.td,{children:[`Передавайте текст инструкций в `,_jsx(_components.code,{children:`instructions`})]})]}),_jsxs(_components.tr,{children:[_jsxs(_components.td,{children:[_jsx(_components.code,{children:`models`}),` (массив fallback)`]}),_jsxs(_components.td,{children:[`Alias `,_jsx(_components.code,{children:`model@allow_fallbacks=true`})]})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`session_id`})}),_jsxs(_components.td,{children:[_jsx(_components.code,{children:`metadata`}),` или `,_jsx(_components.code,{children:`user`})]})]})]})]}),`\n`,_jsx(Heading,{level:`2`,id:`примеры`,children:`Примеры`}),`\n`,_jsxs(CodeGroup,{children:[_jsx(CodeBlock,{filename:`cURL`,numberOfLines:`7`,language:`shellscript`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`shellscript`,children:_jsxs(_components.code,{language:`shellscript`,numberOfLines:`7`,children:[_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#DCDCAA`},children:`curl`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:` -X`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` POST`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"https://polza.ai/api/v1/responses\"`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D7BA7D`},children:` \\\\`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:` -H`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"Authorization: Bearer \u003cPOLZA_AI_API_KEY>\"`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D7BA7D`},children:` \\\\`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:` -H`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"Content-Type: application/json\"`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D7BA7D`},children:` \\\\`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:` -d`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` '{`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"model\": \"openai/gpt-4o\",`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"input\": \"Расскажи о квантовых компьютерах\"`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` }'`})}),`\n`]})})}),_jsx(CodeBlock,{filename:`Python`,numberOfLines:`14`,language:`python`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`python`,children:_jsxs(_components.code,{language:`python`,numberOfLines:`14`,children:[_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#C586C0`},children:`from`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` openai `}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#C586C0`},children:`import`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` OpenAI`})]}),`\n`,_jsx(_components.span,{className:`line`}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`client `}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:`=`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` OpenAI(`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#9CDCFE`},children:` base_url`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:`=`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"https://polza.ai/api/v1\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#9CDCFE`},children:` api_key`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:`=`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"\u003cPOLZA_AI_API_KEY>\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`)`})}),`\n`,_jsx(_components.span,{className:`line`}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`response `}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:`=`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` client.responses.create(`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#9CDCFE`},children:` model`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:`=`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"openai/gpt-4o\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#9CDCFE`},children:` input`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:`=`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`[{`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"role\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"user\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`, `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"content\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"Привет!\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`}],`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#9CDCFE`},children:` instructions`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:`=`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"Отвечай кратко и по делу\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`)`})}),`\n`,_jsx(_components.span,{className:`line`}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#DCDCAA`},children:`print`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`(response.output_text)`})]}),`\n`]})})}),_jsx(CodeBlock,{filename:`TypeScript`,numberOfLines:`14`,language:`typescript`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`typescript`,children:_jsxs(_components.code,{language:`typescript`,numberOfLines:`14`,children:[_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#C586C0`},children:`import`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` OpenAI`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#C586C0`},children:` from`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` 'openai'`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`;`})]}),`\n`,_jsx(_components.span,{className:`line`}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:`const`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#4FC1FF`},children:` client`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:` =`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:` new`}),_jsx(_components.span,{style:{color:`#8250DF`,\"--shiki-dark\":`#DCDCAA`},children:` OpenAI`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`({`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` baseURL:`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` 'https://polza.ai/api/v1'`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` apiKey:`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` '\u003cPOLZA_AI_API_KEY>'`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`});`})}),`\n`,_jsx(_components.span,{className:`line`}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:`const`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#4FC1FF`},children:` response`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:` =`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#C586C0`},children:` await`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` client`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`responses`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#8250DF`,\"--shiki-dark\":`#DCDCAA`},children:`create`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`({`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` model:`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` 'openai/gpt-4o'`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` input:`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` [{ `}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`role:`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` 'user'`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`, `}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`content:`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` 'Привет!'`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` }],`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` instructions:`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` 'Отвечай кратко и по делу'`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`});`})}),`\n`,_jsx(_components.span,{className:`line`}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`console`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#8250DF`,\"--shiki-dark\":`#DCDCAA`},children:`log`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`(`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`response`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`output_text`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`);`})]}),`\n`]})})})]}),`\n`,_jsx(Heading,{level:`3`,id:`структура-ответа`,children:`Структура ответа`}),`\n`,_jsx(CodeBlock,{filename:``,numberOfLines:`26`,language:`json`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`json`,children:_jsxs(_components.code,{language:`json`,numberOfLines:`26`,children:[_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`{`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"id\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"gen_581761234567890123\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"object\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"response\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"created_at\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#B5CEA8`},children:`1785312000`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"completed_at\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#B5CEA8`},children:`1785312003`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"model\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"openai/gpt-4o\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"status\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"completed\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"error\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:`null`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"output_text\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"Квантовые компьютеры — это...\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"output\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: [`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` {`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"type\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"message\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"id\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"msg_1785312000_0\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"status\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"completed\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"role\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"assistant\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"content\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: [{ `}),_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:`\"type\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"output_text\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`, `}),_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:`\"text\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"Квантовые компьютеры — это...\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`, `}),_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:`\"annotations\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: [] }]`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` }`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` ],`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"incomplete_details\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:`null`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"usage\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: {`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"input_tokens\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#B5CEA8`},children:`12`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"output_tokens\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#B5CEA8`},children:`148`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"total_tokens\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#B5CEA8`},children:`160`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"cost_rub\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#B5CEA8`},children:`0.0413`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` }`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`}`})}),`\n`]})})}),`\n`,_jsxs(_components.p,{children:[_jsx(_components.code,{children:`status`}),` — `,_jsx(_components.code,{children:`completed`}),`, `,_jsx(_components.code,{children:`incomplete`}),` или `,_jsx(_components.code,{children:`failed`}),`. При `,_jsx(_components.code,{children:`incomplete`}),` заполняется\n`,_jsx(_components.code,{children:`incomplete_details.reason`}),` (`,_jsx(_components.code,{children:`max_output_tokens`}),` или `,_jsx(_components.code,{children:`content_filter`}),`).`]}),`\n`,_jsxs(_components.p,{children:[`В `,_jsx(_components.code,{children:`usage`}),` поля продублированы в двух неймингах: `,_jsx(_components.code,{children:`input_tokens`}),`/`,_jsx(_components.code,{children:`output_tokens`}),` (Responses API)\nи `,_jsx(_components.code,{children:`prompt_tokens`}),`/`,_jsx(_components.code,{children:`completion_tokens`}),` (Chat Completions) — используйте любой. `,_jsx(_components.code,{children:`cost_rub`}),` —\nфактическая стоимость запроса, списанная с баланса.`]}),`\n`,_jsx(Heading,{level:`2`,id:`tool-calling`,children:`Tool calling`}),`\n`,_jsxs(_components.p,{children:[`Поддерживается полный цикл: передача `,_jsx(_components.code,{children:`tools`}),` → получение `,_jsx(_components.code,{children:`function_call`}),` → отправка результата\nчерез `,_jsx(_components.code,{children:`function_call_output`}),` → финальный ответ модели.`]}),`\n`,_jsx(Heading,{level:`3`,id:`типы-инструментов`,children:`Типы инструментов`}),`\n`,_jsxs(Table,{children:[_jsx(_components.thead,{children:_jsxs(_components.tr,{children:[_jsx(_components.th,{children:_jsx(_components.code,{children:`type`})}),_jsx(_components.th,{children:`Поддержка`})]})}),_jsxs(_components.tbody,{children:[_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`function`})}),_jsxs(_components.td,{children:[`Оба формата: плоский Responses (`,_jsx(_components.code,{children:`{\"type\":\"function\",\"name\":...}`}),`) и вложенный (`,_jsx(_components.code,{children:`{\"type\":\"function\",\"function\":{...}}`}),`)`]})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`custom`})}),_jsxs(_components.td,{children:[`Free-form инструмент. Внутри приводится к функции с единственным строковым полем `,_jsx(_components.code,{children:`input`}),`, в ответе приходит как `,_jsx(_components.code,{children:`function_call`}),` с `,_jsx(_components.code,{children:`arguments = {\"input\": \"...\"}`})]})]}),_jsxs(_components.tr,{children:[_jsxs(_components.td,{children:[_jsx(_components.code,{children:`polza:web_search`}),`, `,_jsx(_components.code,{children:`polza:web_fetch`}),` и другие `,_jsx(_components.code,{children:`polza:*`})]}),_jsxs(_components.td,{children:[_jsx(_components.a,{href:`/gaidy/server-tools`,children:`Серверные инструменты`}),`: Polza выполняет их сама внутри запроса, вызовы видны элементами `,_jsx(_components.code,{children:`output`})]})]}),_jsxs(_components.tr,{children:[_jsxs(_components.td,{children:[_jsx(_components.code,{children:`web_search`}),`, `,_jsx(_components.code,{children:`web_search_preview`})]}),_jsxs(_components.td,{children:[_jsx(_components.a,{href:`/gaidy/web-search`,children:`Веб-поиск`}),`: родной поиск провайдера, если модель его поддерживает, иначе поиск Polza; вызов виден элементом `,_jsx(_components.code,{children:`web_search_call`})]})]}),_jsxs(_components.tr,{children:[_jsxs(_components.td,{children:[`Прочие (`,_jsx(_components.code,{children:`code_interpreter`}),`, `,_jsx(_components.code,{children:`file_search`}),`, `,_jsx(_components.code,{children:`local_shell`}),`)`]}),_jsx(_components.td,{children:`Не поддерживаются — модель их не увидит`})]})]})]}),`\n`,_jsx(Warning,{children:_jsxs(_components.p,{children:[`Возможность вызывать инструменты зависит от модели. Если модель не поддерживает tool calling,\nинструменты будут проигнорированы провайдером. Проверяйте поддержку в\n`,_jsx(_components.a,{href:`https://polza.ai/models`,children:`каталоге моделей`}),`.`]})}),`\n`,_jsx(Heading,{level:`3`,id:`1-запрос-с-инструментами`,children:`1. Запрос с инструментами`}),`\n`,_jsx(CodeBlock,{filename:``,numberOfLines:`17`,language:`json`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`json`,children:_jsxs(_components.code,{language:`json`,numberOfLines:`17`,children:[_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`{`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"model\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"openai/gpt-4o\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"input\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: [{ `}),_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:`\"role\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"user\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`, `}),_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:`\"content\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"Какая погода в Москве?\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` }],`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"tools\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: [`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` {`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"type\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"function\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"name\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"get_weather\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"description\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"Получить текущую погоду в городе\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"parameters\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: {`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"type\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"object\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"properties\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: { `}),_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:`\"location\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: { `}),_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:`\"type\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"string\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`, `}),_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:`\"description\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"Название города\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` } },`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"required\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: [`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"location\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`]`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` }`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` }`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` ],`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"tool_choice\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"auto\"`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`}`})}),`\n`]})})}),`\n`,_jsx(Heading,{level:`3`,id:`2-ответ-с-вызовом-инструмента`,children:`2. Ответ с вызовом инструмента`}),`\n`,_jsx(CodeBlock,{filename:``,numberOfLines:`16`,language:`json`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`json`,children:_jsxs(_components.code,{language:`json`,numberOfLines:`16`,children:[_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`{`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"id\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"gen_581761234567890123\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"object\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"response\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"status\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"completed\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"output_text\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"output\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: [`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` {`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"type\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"function_call\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"id\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"fc_call_abc123\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"call_id\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"call_abc123\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"name\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"get_weather\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"arguments\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"{`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D7BA7D`},children:`\\\\\"`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`location`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D7BA7D`},children:`\\\\\"`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`:`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D7BA7D`},children:`\\\\\"`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`Москва`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D7BA7D`},children:`\\\\\"`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`}\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"status\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"completed\"`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` }`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` ]`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`}`})}),`\n`]})})}),`\n`,_jsx(Heading,{level:`3`,id:`3-возврат-результата-инструмента`,children:`3. Возврат результата инструмента`}),`\n`,_jsxs(_components.p,{children:[`Выполните функцию на своей стороне и отправьте новый запрос со всей историей: исходное сообщение\nпользователя, item `,_jsx(_components.code,{children:`function_call`}),` и item `,_jsx(_components.code,{children:`function_call_output`}),` с тем же `,_jsx(_components.code,{children:`call_id`}),`.`]}),`\n`,_jsx(CodeBlock,{filename:``,numberOfLines:`18`,language:`json`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`json`,children:_jsxs(_components.code,{language:`json`,numberOfLines:`18`,children:[_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`{`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"model\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"openai/gpt-4o\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"input\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: [`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` { `}),_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:`\"role\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"user\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`, `}),_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:`\"content\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"Какая погода в Москве?\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` },`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` {`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"type\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"function_call\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"call_id\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"call_abc123\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"name\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"get_weather\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"arguments\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"{`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D7BA7D`},children:`\\\\\"`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`location`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D7BA7D`},children:`\\\\\"`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`:`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D7BA7D`},children:`\\\\\"`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`Москва`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D7BA7D`},children:`\\\\\"`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`}\"`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` },`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` {`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"type\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"function_call_output\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"call_id\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"call_abc123\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"output\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"{`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D7BA7D`},children:`\\\\\"`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`temp_c`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D7BA7D`},children:`\\\\\"`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`: -3, `}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D7BA7D`},children:`\\\\\"`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`condition`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D7BA7D`},children:`\\\\\"`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`: `}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D7BA7D`},children:`\\\\\"`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`снег`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D7BA7D`},children:`\\\\\"`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`}\"`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` }`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` ],`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"tools\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: []`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`}`})}),`\n`]})})}),`\n`,_jsxs(_components.p,{children:[`В поле `,_jsx(_components.code,{children:`tools`}),` второго запроса передайте те же определения инструментов, что и в первом.`]}),`\n`,_jsx(Warning,{children:_jsxs(_components.p,{children:[_jsxs(_components.strong,{children:[`Item `,_jsx(_components.code,{children:`function_call`}),` обязателен.`]}),` Если прислать только `,_jsx(_components.code,{children:`function_call_output`}),` — например,\nрассчитывая, что историю подтянет `,_jsx(_components.code,{children:`previous_response_id`}),`, — модель получит результат инструмента\nбез самого вызова и вернёт ошибку вида\n`,_jsx(_components.code,{children:`messages with role 'tool' must be a response to a preceding message with 'tool_calls'`}),`.\nAPI stateless, историю нужно передавать полностью.`]})}),`\n`,_jsx(Heading,{level:`3`,id:`типы-input-items`,children:`Типы input items`}),`\n`,_jsxs(Table,{children:[_jsx(_components.thead,{children:_jsxs(_components.tr,{children:[_jsx(_components.th,{children:_jsx(_components.code,{children:`type`})}),_jsx(_components.th,{children:`Описание`})]})}),_jsxs(_components.tbody,{children:[_jsxs(_components.tr,{children:[_jsxs(_components.td,{children:[_jsx(_components.code,{children:`message`}),` (или объект с `,_jsx(_components.code,{children:`role`}),`)`]}),_jsxs(_components.td,{children:[`Сообщение с ролью `,_jsx(_components.code,{children:`user`}),`, `,_jsx(_components.code,{children:`assistant`}),`, `,_jsx(_components.code,{children:`system`}),` или `,_jsx(_components.code,{children:`developer`})]})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`function_call`})}),_jsxs(_components.td,{children:[`Эхо ранее полученного вызова: `,_jsx(_components.code,{children:`call_id`}),`, `,_jsx(_components.code,{children:`name`}),`, `,_jsx(_components.code,{children:`arguments`}),` (JSON-строка)`]})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`function_call_output`})}),_jsxs(_components.td,{children:[`Результат вызова: `,_jsx(_components.code,{children:`call_id`}),` и `,_jsx(_components.code,{children:`output`}),` (строка или произвольный JSON)`]})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`reasoning`})}),_jsxs(_components.td,{children:[`Reasoning-блок предыдущего хода: `,_jsx(_components.code,{children:`content`}),`, `,_jsx(_components.code,{children:`summary`}),`, `,_jsx(_components.code,{children:`encrypted_content`})]})]})]})]}),`\n`,_jsx(Heading,{level:`3`,id:`мультимодальный-input`,children:`Мультимодальный input`}),`\n`,_jsxs(_components.p,{children:[`В `,_jsx(_components.code,{children:`content`}),` сообщения можно передать массив частей:`]}),`\n`,_jsxs(Table,{children:[_jsx(_components.thead,{children:_jsxs(_components.tr,{children:[_jsx(_components.th,{children:_jsx(_components.code,{children:`type`})}),_jsx(_components.th,{children:`Поле с данными`})]})}),_jsxs(_components.tbody,{children:[_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`input_text`})}),_jsx(_components.td,{children:_jsx(_components.code,{children:`text`})})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`input_image`})}),_jsxs(_components.td,{children:[_jsx(_components.code,{children:`image_url`}),` (URL или data-URI), опционально `,_jsx(_components.code,{children:`detail`})]})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`input_audio`})}),_jsxs(_components.td,{children:[_jsx(_components.code,{children:`input_audio: { data, format }`}),` либо плоские `,_jsx(_components.code,{children:`audio`}),` и `,_jsx(_components.code,{children:`format`})]})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`input_file`})}),_jsxs(_components.td,{children:[_jsx(_components.code,{children:`file_url`}),`, `,_jsx(_components.code,{children:`file_data`}),` (base64) или `,_jsx(_components.code,{children:`file_id`}),`, плюс `,_jsx(_components.code,{children:`filename`})]})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`input_video`})}),_jsx(_components.td,{children:_jsx(_components.code,{children:`video_url`})})]})]})]}),`\n`,_jsx(CodeBlock,{filename:``,numberOfLines:`7`,language:`json`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`json`,children:_jsxs(_components.code,{language:`json`,numberOfLines:`7`,children:[_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`{`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"role\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"user\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"content\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: [`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` { `}),_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:`\"type\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"input_text\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`, `}),_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:`\"text\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"Что изображено на картинке?\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` },`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` { `}),_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:`\"type\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"input_image\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`, `}),_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:`\"image_url\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"https://example.com/photo.jpg\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`, `}),_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:`\"detail\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"auto\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` }`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` ]`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`}`})}),`\n`]})})}),`\n`,_jsx(Heading,{level:`2`,id:`streaming`,children:`Streaming`}),`\n`,_jsxs(_components.p,{children:[`При `,_jsx(_components.code,{children:`stream: true`}),` ответ приходит в формате SSE. Имена и порядок событий соответствуют\nспецификации OpenAI Responses API, поэтому работают официальный OpenAI SDK и Codex CLI.`]}),`\n`,_jsx(Heading,{level:`3`,id:`события`,children:`События`}),`\n`,_jsxs(Table,{children:[_jsx(_components.thead,{children:_jsxs(_components.tr,{children:[_jsx(_components.th,{children:`Событие`}),_jsx(_components.th,{children:`Когда приходит`})]})}),_jsxs(_components.tbody,{children:[_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`response.created`})}),_jsx(_components.td,{children:`Ответ создан (первое событие)`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`response.output_item.added`})}),_jsxs(_components.td,{children:[`Начался новый output item (`,_jsx(_components.code,{children:`message`}),`, `,_jsx(_components.code,{children:`reasoning`}),` или `,_jsx(_components.code,{children:`function_call`}),`)`]})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`response.content_part.added`})}),_jsx(_components.td,{children:`Начата текстовая часть сообщения`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`response.output_text.delta`})}),_jsx(_components.td,{children:`Инкремент текста`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`response.output_text.done`})}),_jsx(_components.td,{children:`Полный текст части`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`response.content_part.done`})}),_jsxs(_components.td,{children:[`Часть завершена, здесь же `,_jsx(_components.code,{children:`annotations`})]})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`response.output_item.done`})}),_jsx(_components.td,{children:`Output item завершён`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`response.function_call_arguments.delta`})}),_jsx(_components.td,{children:`Инкремент JSON-аргументов вызова инструмента`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`response.function_call_arguments.done`})}),_jsx(_components.td,{children:`Полные аргументы вызова`})]}),_jsxs(_components.tr,{children:[_jsxs(_components.td,{children:[_jsx(_components.code,{children:`response.reasoning_text.delta`}),` / `,_jsx(_components.code,{children:`.done`})]}),_jsx(_components.td,{children:`Reasoning-текст модели`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`response.reasoning_summary_part.added`})}),_jsx(_components.td,{children:`Начало summary reasoning`})]}),_jsxs(_components.tr,{children:[_jsxs(_components.td,{children:[_jsx(_components.code,{children:`response.reasoning_summary_text.delta`}),` / `,_jsx(_components.code,{children:`.done`})]}),_jsx(_components.td,{children:`Summary reasoning`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`response.completed`})}),_jsxs(_components.td,{children:[`Ответ завершён, содержит полный `,_jsx(_components.code,{children:`output`}),` и `,_jsx(_components.code,{children:`usage`})]})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`response.incomplete`})}),_jsx(_components.td,{children:`Ответ оборван по лимиту токенов или фильтру контента`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`response.failed`})}),_jsx(_components.td,{children:`Ошибка в процессе генерации`})]})]})]}),`\n`,_jsx(_components.p,{children:`Типовой порядок событий для текстового ответа:`}),`\n`,_jsx(CodeBlock,{filename:``,numberOfLines:`10`,language:`text`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`text`,children:_jsxs(_components.code,{language:`text`,numberOfLines:`10`,children:[_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{children:`response.created`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{children:`response.output_item.added (item.type = \"message\")`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{children:`response.content_part.added`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{children:`response.output_text.delta × N`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{children:`response.output_text.done`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{children:`response.content_part.done`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{children:`response.output_item.done`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{children:`response.completed`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{children:`data: [DONE]`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{})})]})})}),`\n`,_jsx(_components.p,{children:`Для вызова инструмента:`}),`\n`,_jsx(CodeBlock,{filename:``,numberOfLines:`8`,language:`text`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`text`,children:_jsxs(_components.code,{language:`text`,numberOfLines:`8`,children:[_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{children:`response.created`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{children:`response.output_item.added (item.type = \"function_call\")`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{children:`response.function_call_arguments.delta × N`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{children:`response.function_call_arguments.done`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{children:`response.output_item.done (item.type = \"function_call\")`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{children:`response.completed`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{children:`data: [DONE]`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{})})]})})}),`\n`,_jsxs(_components.p,{children:[`Источник истины для запуска инструмента — событие `,_jsx(_components.code,{children:`response.output_item.done`}),` с\n`,_jsx(_components.code,{children:`item.type = \"function_call\"`}),`: в нём полные `,_jsx(_components.code,{children:`name`}),`, `,_jsx(_components.code,{children:`arguments`}),` и `,_jsx(_components.code,{children:`call_id`}),`.`]}),`\n`,_jsx(Heading,{level:`3`,id:`особенности`,children:`Особенности`}),`\n`,_jsxs(_components.ul,{children:[`\n`,_jsxs(_components.li,{children:[`Каждое событие несёт монотонный `,_jsx(_components.code,{children:`sequence_number`}),` — используйте его для упорядочивания.`]}),`\n`,_jsxs(_components.li,{children:[`Стрим завершается строкой `,_jsx(_components.code,{children:`data: [DONE]`}),`. Она нужна ChatCompletion-подобным клиентам,\nканоничные клиенты Responses API её игнорируют.`]}),`\n`,_jsxs(_components.li,{children:[`При долгом ожидании ответа провайдера сервер шлёт SSE-комментарии `,_jsx(_components.code,{children:`: processing`}),` — игнорируйте\nстроки, начинающиеся с `,_jsx(_components.code,{children:`:`}),`.`]}),`\n`,_jsxs(_components.li,{children:[`Если модель вызывает несколько инструментов параллельно, у каждого свой `,_jsx(_components.code,{children:`output_index`}),`.`]}),`\n`,_jsxs(_components.li,{children:[`При ошибке посреди стрима приходит терминальное `,_jsx(_components.code,{children:`response.failed`}),`, стрим не обрывается молча.`]}),`\n`]}),`\n`,_jsx(CodeBlock,{filename:`cURL`,numberOfLines:`8`,language:`shellscript`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`shellscript`,children:_jsxs(_components.code,{language:`shellscript`,numberOfLines:`8`,children:[_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#DCDCAA`},children:`curl`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:` -N`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:` -X`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` POST`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"https://polza.ai/api/v1/responses\"`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D7BA7D`},children:` \\\\`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:` -H`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"Authorization: Bearer \u003cPOLZA_AI_API_KEY>\"`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D7BA7D`},children:` \\\\`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:` -H`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"Content-Type: application/json\"`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D7BA7D`},children:` \\\\`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:` -d`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` '{`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"model\": \"openai/gpt-4o\",`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"input\": \"Расскажи о квантовых компьютерах\",`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"stream\": true`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` }'`})}),`\n`]})})}),`\n`,_jsx(Heading,{level:`2`,id:`компактизация-истории`,children:`Компактизация истории`}),`\n`,_jsxs(_components.p,{children:[_jsx(_components.code,{children:`POST /v1/responses/compact`}),` укорачивает историю диалога, когда она перестаёт помещаться в\nконтекст. Полезно агентским клиентам с длинными сессиями.`]}),`\n`,_jsxs(_components.p,{children:[`Сервер сохраняет все инструкции (`,_jsx(_components.code,{children:`system`}),` и `,_jsx(_components.code,{children:`developer`}),`), последние `,_jsx(_components.code,{children:`keep_last`}),` сообщений и все\nструктурные items (`,_jsx(_components.code,{children:`function_call`}),`, `,_jsx(_components.code,{children:`function_call_output`}),`, `,_jsx(_components.code,{children:`reasoning`}),`), а вытесненные текстовые\nсообщения сворачивает в один summary-плейсхолдер. Обращения к модели не происходит — метод\nбесплатный и синхронный.`]}),`\n`,_jsx(CodeBlock,{filename:``,numberOfLines:`5`,language:`json`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`json`,children:_jsxs(_components.code,{language:`json`,numberOfLines:`5`,children:[_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`{`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"model\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"openai/gpt-4o\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"input\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: [],`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"keep_last\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#B5CEA8`},children:`6`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`}`})}),`\n`]})})}),`\n`,_jsxs(_components.p,{children:[`В `,_jsx(_components.code,{children:`input`}),` передайте полную историю input items. Ответ содержит укороченную историю, которую нужно\nпередать в следующий `,_jsx(_components.code,{children:`POST /v1/responses`}),`:`]}),`\n`,_jsx(CodeBlock,{filename:``,numberOfLines:`5`,language:`json`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`json`,children:_jsxs(_components.code,{language:`json`,numberOfLines:`5`,children:[_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`{`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"object\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"response.compact\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"model\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"openai/gpt-4o\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"input\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: []`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`}`})}),`\n`]})})}),`\n`,_jsxs(_components.p,{children:[`Значение `,_jsx(_components.code,{children:`keep_last`}),` по умолчанию — 6.`]}),`\n`,_jsx(Heading,{level:`2`,id:`следующие-шаги`,children:`Следующие шаги`}),`\n`,_jsxs(CardGroup,{cols:2,children:[_jsx(Card,{title:`Вызов функций`,icon:`wrench`,href:`/gaidy/tool-calling`,children:_jsx(_components.p,{children:`Tool calling в формате Chat Completions`})}),_jsx(Card,{title:`Codex CLI`,icon:`terminal`,href:`/integracii/codex`,children:_jsx(_components.p,{children:`Подключение Codex CLI к Polza.ai`})}),_jsx(Card,{title:`Структурный вывод`,icon:`brackets-curly`,href:`/gaidy/structured-output`,children:_jsx(_components.p,{children:`JSON Schema и строгие форматы ответа`})}),_jsx(Card,{title:`Выбор провайдера`,icon:`server`,href:`/gaidy/provider-selection`,children:_jsx(_components.p,{children:`Маршрутизация и fallback`})})]})]})}function MDXContent(props={}){const{wrapper:MDXLayout}={..._provideComponents(),...props.components};return MDXLayout?_jsx(MDXLayout,{...props,children:_jsx(_createMdxContent,{...props})}):_createMdxContent(props)}return{default:MDXContent};function _missingMdxReference(id,component){throw new Error(`Expected `+(component?`component`:`object`)+\" `\"+id+\"` to be defined: you likely forgot to import, pass, or provide it.\")}","frontmatter":{},"scope":{"config":{},"pageMetadata":{"title":"POST Responses","description":"Responses API — OpenAI-совместимый формат запросов с tool calling и streaming","icon":"reply","openapi":"POST /v1/responses","href":"/api-reference/responses/create"}}},"mdxSourceWithNoJs":null},"mdxExtracts":{"tableOfContents":[{"title":"О Responses API","slug":"о-responses-api","depth":2,"children":[]},{"title":"Основные параметры","slug":"основные-параметры","depth":2,"children":[{"title":"Alias-формат модели","slug":"alias-формат-модели","depth":3,"children":[]},{"title":"Дополнительные параметры","slug":"дополнительные-параметры","depth":3,"children":[]},{"title":"Не поддерживаются","slug":"не-поддерживаются","depth":3,"children":[]}]},{"title":"Примеры","slug":"примеры","depth":2,"children":[{"title":"Структура ответа","slug":"структура-ответа","depth":3,"children":[]}]},{"title":"Tool calling","slug":"tool-calling","depth":2,"children":[{"title":"Типы инструментов","slug":"типы-инструментов","depth":3,"children":[]},{"title":"1. Запрос с инструментами","slug":"1-запрос-с-инструментами","depth":3,"children":[]},{"title":"2. Ответ с вызовом инструмента","slug":"2-ответ-с-вызовом-инструмента","depth":3,"children":[]},{"title":"3. Возврат результата инструмента","slug":"3-возврат-результата-инструмента","depth":3,"children":[]},{"title":"Типы input items","slug":"типы-input-items","depth":3,"children":[]},{"title":"Мультимодальный input","slug":"мультимодальный-input","depth":3,"children":[]}]},{"title":"Streaming","slug":"streaming","depth":2,"children":[{"title":"События","slug":"события","depth":3,"children":[]},{"title":"Особенности","slug":"особенности","depth":3,"children":[]}]},{"title":"Компактизация истории","slug":"компактизация-истории","depth":2,"children":[]},{"title":"Следующие шаги","slug":"следующие-шаги","depth":2,"children":[]}],"codeExamples":{}},"jsLinks":["/docs/_mintlify/custom/polza/2b0415a21fa98304/powered-by-mintlify.js","/docs/_mintlify/custom/polza/4c3cb2e13b25640b/logo-home-link.js"],"openApiReferenceData":{"operation":{"operationId":"ResponsesController_createResponse[1]","parameters":[],"requestBody":"e14e9204-605d-4dbe-b211-643d77373c71","responses":{"200":"d723ec2d-84ce-40c2-8949-680626f4e343","400":"ad32069a-5f51-4fd7-8fcf-7e150794bf92","401":"096d6f3f-d48b-47ae-9f98-11809e4cee46","402":"417ee059-108a-4ee0-8564-1636fd9006c4","403":"a6964a0c-cf0a-4c6c-b586-6029190b831d","404":"b6b0f1ab-ad26-4270-8ea3-56d86204f6e4","408":"b32d06db-ea77-4d36-a634-256c80cb72b0","409":"2ceb6806-fa48-4529-b82a-4592bf3bdef6","413":"5015efc6-abd1-4637-bdf8-5772597d3f66","429":"0afafdc4-0dd1-4b14-9dbd-ca3eb46d4771","500":"efc35200-0e93-4882-b66d-57a1f32c2905","502":"7de3a0fe-f3d4-4ff5-b538-9a808944330c","503":"668252e6-30b4-488f-8e69-6438c9a27446"},"security":["047081a7-3308-4fc6-a005-79709422aab8"],"summary":"Создать response (Responses API)","tags":["Responses API"],"method":"post","type":"path","servers":["f1a1b627-c52a-463a-86f0-ada828c76efc"],"path":"/v1/responses","baseUrlOptions":["https://polza.ai/api"],"title":"Создать response (Responses API)","description":"Responses API — OpenAI-совместимый формат запросов с tool calling и streaming","codeSamples":[],"requiredOnlyExamples":false,"requestExampleType":"generated","responseExampleType":"generated"},"dependencies":{"parameters":{},"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"input":{"oneOf":[{"type":"string","description":"Input for response - can be string or array of input items","example":"Hello, how are you?","isRequired":true,"uniqueKey":"input.oneOf.0","typeLabel":"string"},{"type":"array","items":{"type":"object","properties":{"role":{"type":"string","enum":["user","assistant","system","developer"],"example":"user","isRequired":true,"uniqueKey":"input.oneOf.1.items.[INDEX].role","typeLabel":"enum\u003cstring>"},"content":{"oneOf":[{"type":"string","description":"Контент сообщения — строка или массив content items","example":"Hello!","isRequired":true,"uniqueKey":"input.oneOf.1.items.[INDEX].content.oneOf.0","typeLabel":"string"},{"type":"array","items":{"oneOf":[{"type":"object","required":["type","text"],"properties":{"type":{"type":"string","enum":["input_text","input_image","input_audio","input_file","input_video"],"example":"input_text","isRequired":true,"uniqueKey":"input.oneOf.1.items.[INDEX].content.oneOf.1.items.[INDEX].oneOf.0.type","typeLabel":"enum\u003cstring>"},"text":{"type":"string","description":"Text content","example":"Hello, how are you?","isRequired":true,"uniqueKey":"input.oneOf.1.items.[INDEX].content.oneOf.1.items.[INDEX].oneOf.0.text","typeLabel":"string"}},"uniqueKey":"input.oneOf.1.items.[INDEX].content.oneOf.1.items.[INDEX].oneOf.0","typeLabel":"object"},{"type":"object","required":["type","image_url"],"properties":{"type":{"type":"string","enum":["input_text","input_image","input_audio","input_file","input_video"],"example":"input_image","isRequired":true,"uniqueKey":"input.oneOf.1.items.[INDEX].content.oneOf.1.items.[INDEX].oneOf.1.type","typeLabel":"enum\u003cstring>"},"image_url":{"type":"string","description":"Image URL","example":"https://example.com/image.jpg","isRequired":true,"uniqueKey":"input.oneOf.1.items.[INDEX].content.oneOf.1.items.[INDEX].oneOf.1.image_url","typeLabel":"string"},"detail":{"type":"string","description":"Уровень детализации обработки изображения","enum":["auto","low","high"],"example":"auto","uniqueKey":"input.oneOf.1.items.[INDEX].content.oneOf.1.items.[INDEX].oneOf.1.detail","typeLabel":"enum\u003cstring>"}},"uniqueKey":"input.oneOf.1.items.[INDEX].content.oneOf.1.items.[INDEX].oneOf.1","typeLabel":"object"},{"type":"object","required":["type"],"properties":{"type":{"type":"string","enum":["input_text","input_image","input_audio","input_file","input_video"],"example":"input_audio","isRequired":true,"uniqueKey":"input.oneOf.1.items.[INDEX].content.oneOf.1.items.[INDEX].oneOf.2.type","typeLabel":"enum\u003cstring>"},"audio":{"type":"string","description":"Audio data or URL (плоский формат)","example":"https://example.com/audio.mp3","uniqueKey":"input.oneOf.1.items.[INDEX].content.oneOf.1.items.[INDEX].oneOf.2.audio","typeLabel":"string"},"input_audio":{"type":"object","description":"Вложенный формат аудио (OpenAI-совместимый)","uniqueKey":"input.oneOf.1.items.[INDEX].content.oneOf.1.items.[INDEX].oneOf.2.input_audio","typeLabel":"object"},"format":{"type":"string","description":"Формат аудио","enum":["mp3","wav"],"example":"mp3","uniqueKey":"input.oneOf.1.items.[INDEX].content.oneOf.1.items.[INDEX].oneOf.2.format","typeLabel":"enum\u003cstring>"}},"uniqueKey":"input.oneOf.1.items.[INDEX].content.oneOf.1.items.[INDEX].oneOf.2","typeLabel":"object"},{"type":"object","required":["type"],"properties":{"type":{"type":"string","enum":["input_file"],"example":"input_file","isRequired":true,"uniqueKey":"input.oneOf.1.items.[INDEX].content.oneOf.1.items.[INDEX].oneOf.3.type","typeLabel":"enum\u003cstring>"},"file_id":{"type":"string","description":"File ID","uniqueKey":"input.oneOf.1.items.[INDEX].content.oneOf.1.items.[INDEX].oneOf.3.file_id","typeLabel":"string"},"file_data":{"type":"string","description":"Base64-encoded file data","uniqueKey":"input.oneOf.1.items.[INDEX].content.oneOf.1.items.[INDEX].oneOf.3.file_data","typeLabel":"string"},"filename":{"type":"string","description":"Имя файла","uniqueKey":"input.oneOf.1.items.[INDEX].content.oneOf.1.items.[INDEX].oneOf.3.filename","typeLabel":"string"},"file_url":{"type":"string","description":"URL файла","uniqueKey":"input.oneOf.1.items.[INDEX].content.oneOf.1.items.[INDEX].oneOf.3.file_url","typeLabel":"string"}},"uniqueKey":"input.oneOf.1.items.[INDEX].content.oneOf.1.items.[INDEX].oneOf.3","typeLabel":"object"},{"type":"object","required":["type","video_url"],"properties":{"type":{"type":"string","enum":["input_video"],"example":"input_video","isRequired":true,"uniqueKey":"input.oneOf.1.items.[INDEX].content.oneOf.1.items.[INDEX].oneOf.4.type","typeLabel":"enum\u003cstring>"},"video_url":{"type":"string","description":"Base64 data URL или URL видеофайла","isRequired":true,"uniqueKey":"input.oneOf.1.items.[INDEX].content.oneOf.1.items.[INDEX].oneOf.4.video_url","typeLabel":"string"}},"uniqueKey":"input.oneOf.1.items.[INDEX].content.oneOf.1.items.[INDEX].oneOf.4","typeLabel":"object"}],"uniqueKey":"input.oneOf.1.items.[INDEX].content.oneOf.1.items.[INDEX]","typeLabel":"object"},"description":"Контент сообщения — строка или массив content items","isRequired":true,"uniqueKey":"input.oneOf.1.items.[INDEX].content.oneOf.1","typeLabel":"object[]"}],"isRequired":true,"uniqueKey":"input.oneOf.1.items.[INDEX].content","typeLabel":"string | object[]"},"type":{"type":"string","enum":["message"],"example":"message","uniqueKey":"input.oneOf.1.items.[INDEX].type","typeLabel":"enum\u003cstring>"},"id":{"type":"string","description":"Message ID","example":"msg_abc123","uniqueKey":"input.oneOf.1.items.[INDEX].id","typeLabel":"string"},"status":{"type":"string","description":"Message status","enum":["completed","in_progress","incomplete"],"uniqueKey":"input.oneOf.1.items.[INDEX].status","typeLabel":"enum\u003cstring>"}},"required":["role","content"],"uniqueKey":"input.oneOf.1.items.[INDEX]","typeLabel":"object"},"description":"Input for response - can be string or array of input items","isRequired":true,"uniqueKey":"input.oneOf.1","typeLabel":"object[]"}],"isRequired":true,"uniqueKey":"input","typeLabel":"string | object[]"},"model":{"type":"string","description":"Идентификатор модели. Для Responses API поддерживается alias-формат \u003cmodel>@\u003ckey>=\u003cvalue>\u0026\u003ckey>=\u003cvalue>. Поддерживаемые ключи: provider, reasoning_effort, allow_fallbacks, data_residency. При конфликте alias и обычных полей body API возвращает 400. Для некоторых провайдеров и моделей допустимые значения reasoning_effort отличаются; например, Yandex AI Studio поддерживает только low, medium и high.","example":"openai/gpt-4o@provider=google\u0026reasoning_effort=high\u0026allow_fallbacks=false","isRequired":true,"uniqueKey":"model","typeLabel":"string"},"instructions":{"type":"string","description":"System instructions","example":"You are a helpful assistant","uniqueKey":"instructions","typeLabel":"string"},"metadata":{"type":"object","description":"Metadata key-value pairs","uniqueKey":"metadata","typeLabel":"object"},"tools":{"type":"array","description":"Tools available for the model","items":{"oneOf":[{"type":"object","required":["type"],"properties":{"type":{"type":"string","enum":["function"],"example":"function","isRequired":true,"uniqueKey":"tools.items.[INDEX].oneOf.0.type","typeLabel":"enum\u003cstring>"},"function":{"type":"object","properties":{"name":{"type":"string","description":"Function name","example":"get_weather","isRequired":true,"uniqueKey":"tools.items.[INDEX].oneOf.0.function.name","typeLabel":"string"},"description":{"type":"string","description":"Function description","example":"Get current weather for a location","uniqueKey":"tools.items.[INDEX].oneOf.0.function.description","typeLabel":"string"},"parameters":{"type":"object","description":"Function parameters JSON schema","example":{"type":"object","properties":{"location":{"type":"string","description":"City name"}},"required":["location"]},"uniqueKey":"tools.items.[INDEX].oneOf.0.function.parameters","typeLabel":"object"},"strict":{"oneOf":[{"type":"object","description":"Строгая валидация схемы","uniqueKey":"tools.items.[INDEX].oneOf.0.function.strict.oneOf.0","typeLabel":"object"},{"type":"null","description":"Строгая валидация схемы","uniqueKey":"tools.items.[INDEX].oneOf.0.function.strict.oneOf.1","typeLabel":"null"}],"uniqueKey":"tools.items.[INDEX].oneOf.0.function.strict","typeLabel":"object | null"}},"required":["name"],"uniqueKey":"tools.items.[INDEX].oneOf.0.function","typeLabel":"object"},"name":{"type":"string","description":"Function name (плоский формат)","example":"get_weather","uniqueKey":"tools.items.[INDEX].oneOf.0.name","typeLabel":"string"},"description":{"type":"string","description":"Function description (плоский формат)","uniqueKey":"tools.items.[INDEX].oneOf.0.description","typeLabel":"string"},"parameters":{"type":"object","description":"Function parameters (плоский формат)","uniqueKey":"tools.items.[INDEX].oneOf.0.parameters","typeLabel":"object"},"strict":{"oneOf":[{"type":"object","description":"Строгая валидация схемы","uniqueKey":"tools.items.[INDEX].oneOf.0.strict.oneOf.0","typeLabel":"object"},{"type":"null","description":"Строгая валидация схемы","uniqueKey":"tools.items.[INDEX].oneOf.0.strict.oneOf.1","typeLabel":"null"}],"uniqueKey":"tools.items.[INDEX].oneOf.0.strict","typeLabel":"object | null"}},"uniqueKey":"tools.items.[INDEX].oneOf.0","typeLabel":"object"},{"type":"object","required":["type","name"],"properties":{"type":{"type":"string","enum":["custom"],"example":"custom","isRequired":true,"uniqueKey":"tools.items.[INDEX].oneOf.1.type","typeLabel":"enum\u003cstring>"},"name":{"type":"string","description":"Custom tool name","example":"apply_patch","isRequired":true,"uniqueKey":"tools.items.[INDEX].oneOf.1.name","typeLabel":"string"},"description":{"type":"string","description":"Custom tool description","uniqueKey":"tools.items.[INDEX].oneOf.1.description","typeLabel":"string"},"format":{"type":"object","description":"Free-form input format/grammar configuration","uniqueKey":"tools.items.[INDEX].oneOf.1.format","typeLabel":"object"}},"uniqueKey":"tools.items.[INDEX].oneOf.1","typeLabel":"object"},{"type":"object","required":["type","name","tools"],"properties":{"type":{"type":"string","enum":["namespace"],"example":"namespace","isRequired":true,"uniqueKey":"tools.items.[INDEX].oneOf.2.type","typeLabel":"enum\u003cstring>"},"name":{"type":"string","description":"Имя группы инструментов","example":"functions","isRequired":true,"uniqueKey":"tools.items.[INDEX].oneOf.2.name","typeLabel":"string"},"tools":{"type":"array","description":"Инструменты группы: function или custom","items":{"type":"object","uniqueKey":"tools.items.[INDEX].oneOf.2.tools.items.[INDEX]","typeLabel":"object"},"isRequired":true,"uniqueKey":"tools.items.[INDEX].oneOf.2.tools","typeLabel":"object[]"},"description":{"type":"string","description":"Описание группы","example":"","uniqueKey":"tools.items.[INDEX].oneOf.2.description","typeLabel":"string"}},"uniqueKey":"tools.items.[INDEX].oneOf.2","typeLabel":"object"},{"type":"object","required":["type"],"properties":{"type":{"type":"string","enum":["web_search","web_search_preview","web_search_preview_2025_03_11"],"example":"web_search","isRequired":true,"uniqueKey":"tools.items.[INDEX].oneOf.3.type","typeLabel":"enum\u003cstring>"},"search_context_size":{"type":"string","description":"Принимается для совместимости с OpenAI и на поиск Polza не влияет","enum":["low","medium","high"],"example":"medium","uniqueKey":"tools.items.[INDEX].oneOf.3.search_context_size","typeLabel":"enum\u003cstring>"},"user_location":{"type":"object","description":"Принимается для совместимости с OpenAI и на поиск Polza не влияет","uniqueKey":"tools.items.[INDEX].oneOf.3.user_location","typeLabel":"object"},"filters":{"type":"object","description":"Принимается для совместимости с OpenAI и на поиск Polza не влияет","uniqueKey":"tools.items.[INDEX].oneOf.3.filters","typeLabel":"object"}},"uniqueKey":"tools.items.[INDEX].oneOf.3","typeLabel":"object"},{"type":"object","required":["type"],"properties":{"type":{"type":"string","enum":["code_interpreter"],"example":"code_interpreter","isRequired":true,"uniqueKey":"tools.items.[INDEX].oneOf.4.type","typeLabel":"enum\u003cstring>"}},"uniqueKey":"tools.items.[INDEX].oneOf.4","typeLabel":"object"},{"type":"object","required":["type"],"properties":{"type":{"type":"string","enum":["file_search"],"example":"file_search","isRequired":true,"uniqueKey":"tools.items.[INDEX].oneOf.5.type","typeLabel":"enum\u003cstring>"}},"uniqueKey":"tools.items.[INDEX].oneOf.5","typeLabel":"object"},{"type":"object","required":["type"],"properties":{"type":{"type":"string","description":"Тип серверного инструмента с префиксом polza: (openrouter: принимается как алиас); список — GET /v1/server-tools","example":"polza:web_search","isRequired":true,"uniqueKey":"tools.items.[INDEX].oneOf.6.type","typeLabel":"string"},"parameters":{"type":"object","description":"Параметры инструмента по его parameters_schema из GET /v1/server-tools (например max_results, max_uses для polza:web_search). В Responses API параметры можно передать и рядом с type","example":{"max_results":5,"max_uses":3},"uniqueKey":"tools.items.[INDEX].oneOf.6.parameters","typeLabel":"object"}},"uniqueKey":"tools.items.[INDEX].oneOf.6","typeLabel":"object"}],"uniqueKey":"tools.items.[INDEX]","typeLabel":"object"},"uniqueKey":"tools","typeLabel":"object[]"},"tool_choice":{"oneOf":[{"type":"string","description":"Tool choice strategy","enum":["none","auto","required"],"example":"auto","uniqueKey":"tool_choice.oneOf.0","typeLabel":"enum\u003cstring>"},{"type":"object","description":"Tool choice strategy","required":["type","name"],"example":"auto","properties":{"type":{"type":"string","enum":["function","custom"],"example":"function","isRequired":true,"uniqueKey":"tool_choice.oneOf.1.type","typeLabel":"enum\u003cstring>"},"name":{"type":"string","description":"Function name","example":"get_weather","isRequired":true,"uniqueKey":"tool_choice.oneOf.1.name","typeLabel":"string"},"namespace":{"type":"string","description":"Namespace инструмента","example":"functions","uniqueKey":"tool_choice.oneOf.1.namespace","typeLabel":"string"}},"uniqueKey":"tool_choice.oneOf.1","typeLabel":"object"}],"uniqueKey":"tool_choice","typeLabel":"enum\u003cstring> | object"},"parallel_tool_calls":{"type":"boolean","description":"Enable parallel tool calls","default":false,"uniqueKey":"parallel_tool_calls","typeLabel":"boolean"},"background":{"type":"boolean","description":"Запуск response в background-режиме OpenAI. В Polza provider path не запускает отдельную async job и игнорируется.","deprecated":true,"uniqueKey":"background","typeLabel":"boolean"},"include":{"description":"Дополнительные поля output, которые OpenAI может включить в ответ. Поддерживается как входной параметр совместимости; конкретные include зависят от провайдера.","example":["reasoning.encrypted_content"],"type":"array","items":{"type":"string","uniqueKey":"include.items.[INDEX]","typeLabel":"string"},"uniqueKey":"include","typeLabel":"string[]"},"models":{"description":"НЕ РЕАЛИЗОВАНО. Массив fallback-моделей пока не поддерживается Responses API и игнорируется. Для fallback используйте alias-формат в model: \u003cmodel>@allow_fallbacks=true.","deprecated":true,"type":"array","items":{"type":"string","uniqueKey":"models.items.[INDEX]","typeLabel":"string"},"uniqueKey":"models","typeLabel":"string[]"},"text":{"type":"object","description":"Text output configuration","properties":{"format":{"oneOf":[{"type":"string","description":"Output format configuration","enum":["text","json_object"],"example":"text","uniqueKey":"text.format.oneOf.0","typeLabel":"enum\u003cstring>"},{"type":"object","description":"Output format configuration","required":["type"],"example":"text","properties":{"type":{"type":"string","enum":["text"],"example":"text","isRequired":true,"uniqueKey":"text.format.oneOf.1.type","typeLabel":"enum\u003cstring>"}},"uniqueKey":"text.format.oneOf.1","typeLabel":"object"},{"type":"object","description":"Output format configuration","required":["type"],"example":"text","properties":{"type":{"type":"string","enum":["json_object"],"example":"json_object","isRequired":true,"uniqueKey":"text.format.oneOf.2.type","typeLabel":"enum\u003cstring>"}},"uniqueKey":"text.format.oneOf.2","typeLabel":"object"},{"type":"object","description":"Output format configuration","required":["type","name","schema"],"example":"text","properties":{"type":{"type":"string","enum":["json_schema"],"example":"json_schema","isRequired":true,"uniqueKey":"text.format.oneOf.3.type","typeLabel":"enum\u003cstring>"},"name":{"type":"string","description":"Имя схемы","example":"user_profile","isRequired":true,"uniqueKey":"text.format.oneOf.3.name","typeLabel":"string"},"schema":{"type":"object","description":"JSON Schema для валидации ответа","example":{"type":"object","properties":{"name":{"type":"string"}}},"isRequired":true,"uniqueKey":"text.format.oneOf.3.schema","typeLabel":"object"},"description":{"type":"string","description":"Описание схемы","uniqueKey":"text.format.oneOf.3.description","typeLabel":"string"},"strict":{"type":"boolean","description":"Строгое соответствие схеме","default":false,"uniqueKey":"text.format.oneOf.3.strict","typeLabel":"boolean"}},"uniqueKey":"text.format.oneOf.3","typeLabel":"object"}],"uniqueKey":"text.format","typeLabel":"enum\u003cstring> · object · object · object"},"verbosity":{"type":"string","description":"Verbosity level","enum":["high","medium","low"],"example":"medium","uniqueKey":"text.verbosity","typeLabel":"enum\u003cstring>"}},"uniqueKey":"text","typeLabel":"object"},"reasoning":{"type":"object","description":"Reasoning configuration","properties":{"type":{"type":"string","description":"Тип reasoning: adaptive — автовыбор глубины (Claude 4.6+), disabled — отключить. Для Claude 4.6+ используйте adaptive вместо enabled+max_tokens","enum":["adaptive","disabled"],"example":"adaptive","uniqueKey":"reasoning.type","typeLabel":"enum\u003cstring>"},"effort":{"type":"string","description":"Уровень усилий reasoning. Для некоторых провайдеров и моделей допустимые значения могут отличаться. Проверяйте документацию конкретного провайдера. Например, для Yandex AI Studio поддерживаются только low, medium и high.","enum":["max","xhigh","high","medium","low","minimal","none"],"example":"medium","uniqueKey":"reasoning.effort","typeLabel":"enum\u003cstring>"},"effort_level":{"type":"string","description":"Уровень усилий для adaptive thinking (Claude 4.6+). Значение max даёт максимальную глубину мышления. Используется вместо effort для Claude 4.6+ моделей","example":"max","uniqueKey":"reasoning.effort_level","typeLabel":"string"},"summary":{"type":"string","description":"Режим summary для reasoning","enum":["auto","concise","detailed"],"example":"auto","uniqueKey":"reasoning.summary","typeLabel":"enum\u003cstring>"},"max_tokens":{"type":"number","description":"Максимальное количество токенов для reasoning","example":5000,"uniqueKey":"reasoning.max_tokens","typeLabel":"number"},"enabled":{"type":"boolean","description":"Включить/выключить reasoning явно","example":true,"uniqueKey":"reasoning.enabled","typeLabel":"boolean"}},"uniqueKey":"reasoning","typeLabel":"object"},"max_output_tokens":{"type":"number","description":"Maximum output tokens","example":1000,"uniqueKey":"max_output_tokens","typeLabel":"number"},"temperature":{"type":"number","description":"Temperature (0-2)","example":0.7,"minimum":0,"maximum":2,"uniqueKey":"temperature","typeLabel":"number"},"top_p":{"type":"number","description":"Top P (nucleus sampling)","example":1,"minimum":0,"maximum":1,"uniqueKey":"top_p","typeLabel":"number"},"top_logprobs":{"type":"number","description":"Top logprobs","example":5,"minimum":0,"maximum":20,"uniqueKey":"top_logprobs","typeLabel":"number"},"max_tool_calls":{"type":"number","description":"Максимум вызовов серверных инструментов за запрос (по умолчанию 10, потолок 30; без polza:* — лимит вызовов провайдера)","example":5,"uniqueKey":"max_tool_calls","typeLabel":"number"},"stop_server_tools_when":{"description":"Условия остановки цикла серверных инструментов: step_count заменяет max_tool_calls (потолок 30), spend_cap добавляет мягкий потолок расходов на запрос: он проверяется перед каждым шагом модели, поэтому итог может превысить spend_cap на шаг, на котором потолок пройден, его инструменты и финальный ответ","type":"array","items":{"type":"object","properties":{"type":{"type":"string","description":"Тип условия","enum":["step_count","spend_cap"],"example":"step_count","isRequired":true,"uniqueKey":"stop_server_tools_when.items.[INDEX].type","typeLabel":"enum\u003cstring>"},"value":{"type":"number","description":"Для step_count: максимум вызовов серверных инструментов (больше 30 — считается как 30)","example":5,"uniqueKey":"stop_server_tools_when.items.[INDEX].value","typeLabel":"number"},"value_rub":{"type":"number","description":"Для spend_cap: потолок расходов на запрос (модель и инструменты), RUB","example":20,"uniqueKey":"stop_server_tools_when.items.[INDEX].value_rub","typeLabel":"number"}},"required":["type"],"uniqueKey":"stop_server_tools_when.items.[INDEX]","typeLabel":"object"},"uniqueKey":"stop_server_tools_when","typeLabel":"object[]"},"prompt":{"type":"object","description":"Конфигурация reusable prompt OpenAI. В текущем provider path Polza не загружает prompt templates и игнорирует поле.","deprecated":true,"uniqueKey":"prompt","typeLabel":"object"},"presence_penalty":{"type":"number","description":"Presence penalty (-2 to 2)","minimum":-2,"maximum":2,"uniqueKey":"presence_penalty","typeLabel":"number"},"frequency_penalty":{"type":"number","description":"Frequency penalty (-2 to 2)","minimum":-2,"maximum":2,"uniqueKey":"frequency_penalty","typeLabel":"number"},"top_k":{"type":"number","description":"Top K sampling","example":40,"uniqueKey":"top_k","typeLabel":"number"},"image_config":{"type":"object","description":"Image configuration options","uniqueKey":"image_config","typeLabel":"object"},"modalities":{"type":"array","description":"Output modalities","items":{"type":"string","enum":["text","image"],"uniqueKey":"modalities.items.[INDEX]","typeLabel":"enum\u003cstring>"},"uniqueKey":"modalities","typeLabel":"enum\u003cstring>[]"},"prompt_cache_key":{"type":"string","description":"Prompt cache key","uniqueKey":"prompt_cache_key","typeLabel":"string"},"prompt_cache_retention":{"type":"string","description":"Prompt cache retention policy","enum":["in_memory","24h"],"uniqueKey":"prompt_cache_retention","typeLabel":"enum\u003cstring>"},"prompt_cache_options":{"type":"object","description":"Настройки кэша начала запроса (OpenAI)","required":["ttl"],"example":{"ttl":"12h"},"properties":{"ttl":{"type":"string","description":"Минимальный срок действия кэша начала запроса у OpenAI: 30m — 30 минут (по умолчанию), 12h — 12 часов. Срок относится к условиям тарификации чтения кэша и не гарантирует ускорение каждого запроса. Запись в 12-часовой кэш стоит вдвое дороже обычной записи, чтение — как обычно. OpenRouter поддерживает настройку для OpenAI GPT-5.6 и новее: явный TTL включает строгую проверку всех параметров запроса; если подходящего маршрута нет, запрос отклоняется. Другие провайдеры поле не используют.","enum":["30m","12h"],"example":"12h","isRequired":true,"uniqueKey":"prompt_cache_options.ttl","typeLabel":"enum\u003cstring>"}},"uniqueKey":"prompt_cache_options","typeLabel":"object"},"previous_response_id":{"type":"string","description":"НЕ РЕАЛИЗОВАНО. Продолжение по previous_response_id пока не поддерживается и игнорируется. Для мультитёрн-сессий передавайте историю целиком в input.","deprecated":true,"uniqueKey":"previous_response_id","typeLabel":"string"},"conversation":{"type":"object","description":"Conversation ID/object OpenAI Responses API. В Polza stateless path не подтягивает историю по conversation; передавайте историю целиком в input.","deprecated":true,"uniqueKey":"conversation","typeLabel":"object"},"context_management":{"type":"array","description":"Context management OpenAI Responses API. Локальная компактизация доступна через /v1/responses/compact; поле принимается для совместимости.","uniqueKey":"context_management","typeLabel":"array"},"moderation":{"type":"object","description":"Input/output moderation configuration","uniqueKey":"moderation","typeLabel":"object"},"stream":{"type":"boolean","description":"Enable streaming","default":false,"uniqueKey":"stream","typeLabel":"boolean"},"stream_options":{"type":"object","description":"Опции стриминга","properties":{"include_obfuscation":{"type":"boolean","description":"Обфускация SSE-полей (совместимость OpenAI)","example":false,"uniqueKey":"stream_options.include_obfuscation","typeLabel":"boolean"},"hide_intermediate_text":{"type":"boolean","description":"Не отдавать текст промежуточных шагов цикла серверных инструментов; финальный ответ приходит одним куском после завершения шага","example":false,"uniqueKey":"stream_options.hide_intermediate_text","typeLabel":"boolean"}},"uniqueKey":"stream_options","typeLabel":"object"},"provider":{"type":"object","description":"Provider preferences","properties":{"require_parameters":{"type":"boolean","description":"Требовать от провайдера поддержку всех переданных параметров","example":true,"uniqueKey":"provider.require_parameters","typeLabel":"boolean"},"allow_fallbacks":{"type":"boolean","description":"Разрешить использование резервных провайдеров","example":true,"uniqueKey":"provider.allow_fallbacks","typeLabel":"boolean"},"order":{"description":"Упорядоченный список slug провайдеров для использования","example":["OpenAI","Anthropic"],"type":"array","items":{"type":"string","uniqueKey":"provider.order.items.[INDEX]","typeLabel":"string"},"uniqueKey":"provider.order","typeLabel":"string[]"},"only":{"description":"Список разрешенных slug провайдеров","example":["OpenAI","Google"],"type":"array","items":{"type":"string","uniqueKey":"provider.only.items.[INDEX]","typeLabel":"string"},"uniqueKey":"provider.only","typeLabel":"string[]"},"ignore":{"description":"Список игнорируемых slug провайдеров","example":["DeepInfra"],"type":"array","items":{"type":"string","uniqueKey":"provider.ignore.items.[INDEX]","typeLabel":"string"},"uniqueKey":"provider.ignore","typeLabel":"string[]"},"sort":{"type":"string","description":"Критерий сортировки провайдеров","enum":["price","throughput","latency"],"example":"price","uniqueKey":"provider.sort","typeLabel":"enum\u003cstring>"},"data_residency":{"type":"string","description":"Где должны обрабатываться данные запроса. `ru` — только провайдеры на инфраструктуре в РФ, в том числе при fallback. Если таких провайдеров у модели нет, запрос отклоняется, а не уходит к иностранному провайдеру. Распознавание PDF (OCR) плагина polza-pdf-parser при `ru` отключается: текст извлекается без него. Инструменты, которые клиент включает сам (веб-поиск, web_fetch), параметр не ограничивает: они обращаются к внешним сервисам","enum":["ru"],"example":"ru","uniqueKey":"provider.data_residency","typeLabel":"enum\u003cstring>"},"max_price":{"type":"object","description":"Максимальные цены для запроса","properties":{"prompt":{"type":"number","description":"Максимальная цена за промпт токены (RUB за миллион токенов)","example":10,"uniqueKey":"provider.max_price.prompt","typeLabel":"number"},"completion":{"type":"number","description":"Максимальная цена за completion токены (RUB за миллион токенов)","example":20,"uniqueKey":"provider.max_price.completion","typeLabel":"number"},"image":{"type":"number","description":"Максимальная цена за изображение (RUB за штуку)","example":5,"uniqueKey":"provider.max_price.image","typeLabel":"number"},"audio":{"type":"number","description":"Максимальная цена за аудио (RUB за миллион токенов)","example":15,"uniqueKey":"provider.max_price.audio","typeLabel":"number"},"request":{"type":"number","description":"Максимальная цена за запрос (RUB за запрос)","example":1,"uniqueKey":"provider.max_price.request","typeLabel":"number"},"video_per_second":{"type":"number","description":"Максимальная цена за секунду видео (RUB за секунду)","example":50,"uniqueKey":"provider.max_price.video_per_second","typeLabel":"number"},"stt_per_minute":{"type":"number","description":"Максимальная цена распознавания речи (RUB за минуту)","example":5,"uniqueKey":"provider.max_price.stt_per_minute","typeLabel":"number"},"tts_per_million_characters":{"type":"number","description":"Максимальная цена синтеза речи (RUB за миллион символов)","example":1500,"uniqueKey":"provider.max_price.tts_per_million_characters","typeLabel":"number"}},"uniqueKey":"provider.max_price","typeLabel":"object"}},"uniqueKey":"provider","typeLabel":"object"},"user":{"type":"string","description":"Уникальный идентификатор конечного пользователя для отслеживания и предотвращения злоупотреблений","example":"user-123","maxLength":256,"uniqueKey":"user","typeLabel":"string"},"safety_identifier":{"type":"string","description":"Stable hashed end-user identifier from OpenAI Responses API. Если user не указан, используется как user для downstream provider.","example":"sha256-user-id","maxLength":256,"uniqueKey":"safety_identifier","typeLabel":"string"},"service_tier":{"type":"string","description":"OpenAI service tier","enum":["auto","default","flex","scale","priority"],"uniqueKey":"service_tier","typeLabel":"enum\u003cstring>"},"store":{"type":"boolean","description":"Whether to store generated response for later retrieval","uniqueKey":"store","typeLabel":"boolean"},"truncation":{"type":"string","description":"Truncation strategy","enum":["auto","disabled"],"uniqueKey":"truncation","typeLabel":"enum\u003cstring>"},"session_id":{"type":"string","description":"НЕ РЕАЛИЗОВАНО. session_id не пробрасывается провайдеру (OpenRouter Chat Completions API не поддерживает это поле) и игнорируется. Для отслеживания сессий используйте metadata или user.","deprecated":true,"uniqueKey":"session_id","typeLabel":"string"},"plugins":{"description":"Плагины для расширения функциональности (web search, file parser и др.)","type":"array","items":{"type":"string","uniqueKey":"plugins.items.[INDEX]","typeLabel":"string"},"uniqueKey":"plugins","typeLabel":"string[]"}},"required":["input","model"],"uniqueKey":"","typeLabel":"object"},"examples":{"Example":{"title":"Example","value":{"input":"Hello, how are you?","model":"openai/gpt-4o@provider=google\u0026reasoning_effort=high\u0026allow_fallbacks=false","instructions":"You are a helpful assistant","metadata":{},"tools":[{"type":"function","name":"get_weather","description":"\u003cstring>","parameters":{},"strict":{}}],"tool_choice":"auto","parallel_tool_calls":false,"background":true,"include":["reasoning.encrypted_content"],"models":["\u003cstring>"],"text":{"format":"text","verbosity":"medium"},"reasoning":{"type":"adaptive","effort":"medium","effort_level":"max","summary":"auto","max_tokens":5000,"enabled":true},"max_output_tokens":1000,"temperature":0.7,"top_p":1,"top_logprobs":5,"max_tool_calls":5,"stop_server_tools_when":[{"type":"step_count","value":5,"value_rub":20}],"prompt":{},"presence_penalty":0,"frequency_penalty":0,"top_k":40,"image_config":{},"modalities":[],"prompt_cache_key":"\u003cstring>","prompt_cache_options":{"ttl":"12h"},"previous_response_id":"\u003cstring>","conversation":{},"context_management":"\u003carray>","moderation":{},"stream":false,"stream_options":{"include_obfuscation":false,"hide_intermediate_text":false},"provider":{"require_parameters":true,"allow_fallbacks":true,"order":["OpenAI","Anthropic"],"only":["OpenAI","Google"],"ignore":["DeepInfra"],"sort":"price","data_residency":"ru","max_price":{"prompt":10,"completion":20,"image":5,"audio":15,"request":1,"video_per_second":50,"stt_per_minute":5,"tts_per_million_characters":1500}},"user":"user-123","safety_identifier":"sha256-user-id","store":true,"session_id":"\u003cstring>","plugins":["\u003cstring>"]}}},"exampleType":"generated"}},"exampleType":"generated"},"responses":{"d723ec2d-84ce-40c2-8949-680626f4e343":{"description":"","content":{"application/json":{"schema":{"type":"object","properties":{"id":{"type":"string","description":"Response ID","example":"gen_581761234567890123","isRequired":true,"uniqueKey":"id","typeLabel":"string"},"object":{"type":"string","enum":["response"],"example":"response","isRequired":true,"uniqueKey":"object","typeLabel":"enum\u003cstring>"},"created_at":{"type":"number","description":"Created timestamp","example":1234567890,"isRequired":true,"uniqueKey":"created_at","typeLabel":"number"},"model":{"type":"string","description":"Model used","example":"openai/gpt-4","isRequired":true,"uniqueKey":"model","typeLabel":"string"},"status":{"type":"string","enum":["completed","incomplete","in_progress","failed","cancelled","queued"],"example":"completed","isRequired":true,"uniqueKey":"status","typeLabel":"enum\u003cstring>"},"output_text":{"type":"string","description":"Full output text (convenience field)","example":"Hello! How can I help you today?","isRequired":true,"uniqueKey":"output_text","typeLabel":"string"},"output":{"type":"array","description":"Output items array","isRequired":true,"uniqueKey":"output","typeLabel":"array"},"completed_at":{"oneOf":[{"type":"object","description":"Completed timestamp","uniqueKey":"completed_at.oneOf.0","typeLabel":"object"},{"type":"null","description":"Completed timestamp","uniqueKey":"completed_at.oneOf.1","typeLabel":"null"}],"uniqueKey":"completed_at","typeLabel":"object | null"},"error":{"oneOf":[{"type":"object","description":"Error information","required":["code","message"],"properties":{"code":{"type":"string","description":"Error code","example":"invalid_request","isRequired":true,"uniqueKey":"error.oneOf.0.code","typeLabel":"string"},"message":{"type":"string","description":"Error message","example":"Invalid input format","isRequired":true,"uniqueKey":"error.oneOf.0.message","typeLabel":"string"},"metadata":{"type":"object","description":"Error metadata","uniqueKey":"error.oneOf.0.metadata","typeLabel":"object"}},"uniqueKey":"error.oneOf.0","typeLabel":"object"},{"type":"null","uniqueKey":"error.oneOf.1","typeLabel":"null"}],"uniqueKey":"error","typeLabel":"object | null"},"incomplete_details":{"oneOf":[{"type":"object","description":"Details about incomplete response","uniqueKey":"incomplete_details.oneOf.0","typeLabel":"object"},{"type":"null","description":"Details about incomplete response","uniqueKey":"incomplete_details.oneOf.1","typeLabel":"null"}],"uniqueKey":"incomplete_details","typeLabel":"object | null"},"usage":{"type":"object","description":"Usage information","required":["input_tokens","output_tokens","total_tokens","prompt_tokens","completion_tokens"],"properties":{"input_tokens":{"type":"number","description":"Количество входных токенов","example":10,"isRequired":true,"uniqueKey":"usage.input_tokens","typeLabel":"number"},"output_tokens":{"type":"number","description":"Количество выходных токенов","example":20,"isRequired":true,"uniqueKey":"usage.output_tokens","typeLabel":"number"},"total_tokens":{"type":"number","description":"Общее количество токенов","example":30,"isRequired":true,"uniqueKey":"usage.total_tokens","typeLabel":"number"},"prompt_tokens":{"type":"number","description":"Количество токенов в промпте (alias для input_tokens)","example":10,"isRequired":true,"uniqueKey":"usage.prompt_tokens","typeLabel":"number"},"completion_tokens":{"type":"number","description":"Количество токенов в ответе (alias для output_tokens)","example":20,"isRequired":true,"uniqueKey":"usage.completion_tokens","typeLabel":"number"},"input_tokens_details":{"oneOf":[{"type":"object","description":"Детализация входных токенов","properties":{"cached_tokens":{"type":"number","description":"Кэшированные токены","example":0,"uniqueKey":"usage.input_tokens_details.oneOf.0.cached_tokens","typeLabel":"number"},"cache_write_tokens":{"type":"number","description":"Токены, записанные в prompt cache","example":0,"uniqueKey":"usage.input_tokens_details.oneOf.0.cache_write_tokens","typeLabel":"number"},"audio_tokens":{"type":"number","description":"Аудио токены в промпте","example":0,"uniqueKey":"usage.input_tokens_details.oneOf.0.audio_tokens","typeLabel":"number"},"video_tokens":{"type":"number","description":"Видео токены в промпте","example":0,"uniqueKey":"usage.input_tokens_details.oneOf.0.video_tokens","typeLabel":"number"}},"uniqueKey":"usage.input_tokens_details.oneOf.0","typeLabel":"object"},{"type":"null","uniqueKey":"usage.input_tokens_details.oneOf.1","typeLabel":"null"}],"uniqueKey":"usage.input_tokens_details","typeLabel":"object | null"},"output_tokens_details":{"oneOf":[{"type":"object","description":"Детализация выходных токенов","properties":{"reasoning_tokens":{"oneOf":[{"type":"object","description":"Токены reasoning (для reasoning моделей)","example":100,"uniqueKey":"usage.output_tokens_details.oneOf.0.reasoning_tokens.oneOf.0","typeLabel":"object"},{"type":"null","description":"Токены reasoning (для reasoning моделей)","example":100,"uniqueKey":"usage.output_tokens_details.oneOf.0.reasoning_tokens.oneOf.1","typeLabel":"null"}],"uniqueKey":"usage.output_tokens_details.oneOf.0.reasoning_tokens","typeLabel":"object | null"},"audio_tokens":{"oneOf":[{"type":"object","description":"Аудио токены в ответе","example":0,"uniqueKey":"usage.output_tokens_details.oneOf.0.audio_tokens.oneOf.0","typeLabel":"object"},{"type":"null","description":"Аудио токены в ответе","example":0,"uniqueKey":"usage.output_tokens_details.oneOf.0.audio_tokens.oneOf.1","typeLabel":"null"}],"uniqueKey":"usage.output_tokens_details.oneOf.0.audio_tokens","typeLabel":"object | null"},"image_tokens":{"oneOf":[{"type":"object","description":"Токены изображений в ответе","example":0,"uniqueKey":"usage.output_tokens_details.oneOf.0.image_tokens.oneOf.0","typeLabel":"object"},{"type":"null","description":"Токены изображений в ответе","example":0,"uniqueKey":"usage.output_tokens_details.oneOf.0.image_tokens.oneOf.1","typeLabel":"null"}],"uniqueKey":"usage.output_tokens_details.oneOf.0.image_tokens","typeLabel":"object | null"},"accepted_prediction_tokens":{"oneOf":[{"type":"object","description":"Принятые токены предсказаний","example":0,"uniqueKey":"usage.output_tokens_details.oneOf.0.accepted_prediction_tokens.oneOf.0","typeLabel":"object"},{"type":"null","description":"Принятые токены предсказаний","example":0,"uniqueKey":"usage.output_tokens_details.oneOf.0.accepted_prediction_tokens.oneOf.1","typeLabel":"null"}],"uniqueKey":"usage.output_tokens_details.oneOf.0.accepted_prediction_tokens","typeLabel":"object | null"},"rejected_prediction_tokens":{"oneOf":[{"type":"object","description":"Отклоненные токены предсказаний","example":0,"uniqueKey":"usage.output_tokens_details.oneOf.0.rejected_prediction_tokens.oneOf.0","typeLabel":"object"},{"type":"null","description":"Отклоненные токены предсказаний","example":0,"uniqueKey":"usage.output_tokens_details.oneOf.0.rejected_prediction_tokens.oneOf.1","typeLabel":"null"}],"uniqueKey":"usage.output_tokens_details.oneOf.0.rejected_prediction_tokens","typeLabel":"object | null"}},"uniqueKey":"usage.output_tokens_details.oneOf.0","typeLabel":"object"},{"type":"null","uniqueKey":"usage.output_tokens_details.oneOf.1","typeLabel":"null"}],"uniqueKey":"usage.output_tokens_details","typeLabel":"object | null"},"prompt_tokens_details":{"oneOf":[{"type":"object","description":"Детализация токенов промпта (alias для input_tokens_details)","properties":{"cached_tokens":{"type":"number","description":"Кэшированные токены","example":0,"uniqueKey":"usage.prompt_tokens_details.oneOf.0.cached_tokens","typeLabel":"number"},"cache_write_tokens":{"type":"number","description":"Токены, записанные в prompt cache","example":0,"uniqueKey":"usage.prompt_tokens_details.oneOf.0.cache_write_tokens","typeLabel":"number"},"audio_tokens":{"type":"number","description":"Аудио токены в промпте","example":0,"uniqueKey":"usage.prompt_tokens_details.oneOf.0.audio_tokens","typeLabel":"number"},"video_tokens":{"type":"number","description":"Видео токены в промпте","example":0,"uniqueKey":"usage.prompt_tokens_details.oneOf.0.video_tokens","typeLabel":"number"}},"uniqueKey":"usage.prompt_tokens_details.oneOf.0","typeLabel":"object"},{"type":"null","uniqueKey":"usage.prompt_tokens_details.oneOf.1","typeLabel":"null"}],"uniqueKey":"usage.prompt_tokens_details","typeLabel":"object | null"},"completion_tokens_details":{"oneOf":[{"type":"object","description":"Детализация токенов completion (alias для output_tokens_details)","properties":{"reasoning_tokens":{"oneOf":[{"type":"object","description":"Токены reasoning (для reasoning моделей)","example":100,"uniqueKey":"usage.completion_tokens_details.oneOf.0.reasoning_tokens.oneOf.0","typeLabel":"object"},{"type":"null","description":"Токены reasoning (для reasoning моделей)","example":100,"uniqueKey":"usage.completion_tokens_details.oneOf.0.reasoning_tokens.oneOf.1","typeLabel":"null"}],"uniqueKey":"usage.completion_tokens_details.oneOf.0.reasoning_tokens","typeLabel":"object | null"},"audio_tokens":{"oneOf":[{"type":"object","description":"Аудио токены в ответе","example":0,"uniqueKey":"usage.completion_tokens_details.oneOf.0.audio_tokens.oneOf.0","typeLabel":"object"},{"type":"null","description":"Аудио токены в ответе","example":0,"uniqueKey":"usage.completion_tokens_details.oneOf.0.audio_tokens.oneOf.1","typeLabel":"null"}],"uniqueKey":"usage.completion_tokens_details.oneOf.0.audio_tokens","typeLabel":"object | null"},"image_tokens":{"oneOf":[{"type":"object","description":"Токены изображений в ответе","example":0,"uniqueKey":"usage.completion_tokens_details.oneOf.0.image_tokens.oneOf.0","typeLabel":"object"},{"type":"null","description":"Токены изображений в ответе","example":0,"uniqueKey":"usage.completion_tokens_details.oneOf.0.image_tokens.oneOf.1","typeLabel":"null"}],"uniqueKey":"usage.completion_tokens_details.oneOf.0.image_tokens","typeLabel":"object | null"},"accepted_prediction_tokens":{"oneOf":[{"type":"object","description":"Принятые токены предсказаний","example":0,"uniqueKey":"usage.completion_tokens_details.oneOf.0.accepted_prediction_tokens.oneOf.0","typeLabel":"object"},{"type":"null","description":"Принятые токены предсказаний","example":0,"uniqueKey":"usage.completion_tokens_details.oneOf.0.accepted_prediction_tokens.oneOf.1","typeLabel":"null"}],"uniqueKey":"usage.completion_tokens_details.oneOf.0.accepted_prediction_tokens","typeLabel":"object | null"},"rejected_prediction_tokens":{"oneOf":[{"type":"object","description":"Отклоненные токены предсказаний","example":0,"uniqueKey":"usage.completion_tokens_details.oneOf.0.rejected_prediction_tokens.oneOf.0","typeLabel":"object"},{"type":"null","description":"Отклоненные токены предсказаний","example":0,"uniqueKey":"usage.completion_tokens_details.oneOf.0.rejected_prediction_tokens.oneOf.1","typeLabel":"null"}],"uniqueKey":"usage.completion_tokens_details.oneOf.0.rejected_prediction_tokens","typeLabel":"object | null"}},"uniqueKey":"usage.completion_tokens_details.oneOf.0","typeLabel":"object"},{"type":"null","uniqueKey":"usage.completion_tokens_details.oneOf.1","typeLabel":"null"}],"uniqueKey":"usage.completion_tokens_details","typeLabel":"object | null"},"server_tool_use":{"oneOf":[{"type":"object","description":"Число исполненных вызовов серверных инструментов по типам: web_search_requests, web_fetch_requests, datetime_requests, …","properties":{"web_search_requests":{"type":"number","description":"Количество вызовов веб-поиска","example":1,"uniqueKey":"usage.server_tool_use.oneOf.0.web_search_requests","typeLabel":"number"}},"uniqueKey":"usage.server_tool_use.oneOf.0","typeLabel":"object"},{"type":"null","uniqueKey":"usage.server_tool_use.oneOf.1","typeLabel":"null"}],"uniqueKey":"usage.server_tool_use","typeLabel":"object | null"},"cost_rub":{"oneOf":[{"type":"object","description":"Стоимость запроса в рублях (списано с баланса клиента)","example":0.04131306,"uniqueKey":"usage.cost_rub.oneOf.0","typeLabel":"object"},{"type":"null","description":"Стоимость запроса в рублях (списано с баланса клиента)","example":0.04131306,"uniqueKey":"usage.cost_rub.oneOf.1","typeLabel":"null"}],"uniqueKey":"usage.cost_rub","typeLabel":"object | null"},"cost":{"oneOf":[{"type":"object","description":"Стоимость запроса в рублях (alias для cost_rub)","example":0.04131306,"uniqueKey":"usage.cost.oneOf.0","typeLabel":"object"},{"type":"null","description":"Стоимость запроса в рублях (alias для cost_rub)","example":0.04131306,"uniqueKey":"usage.cost.oneOf.1","typeLabel":"null"}],"uniqueKey":"usage.cost","typeLabel":"object | null"},"cost_details":{"oneOf":[{"type":"object","description":"Разбивка cost_rub запроса с серверными инструментами: модель (все шаги) и инструменты, RUB","example":{"inference_cost_rub":1.2,"server_tools_cost_rub":0.4},"uniqueKey":"usage.cost_details.oneOf.0","typeLabel":"object"},{"type":"null","description":"Разбивка cost_rub запроса с серверными инструментами: модель (все шаги) и инструменты, RUB","example":{"inference_cost_rub":1.2,"server_tools_cost_rub":0.4},"uniqueKey":"usage.cost_details.oneOf.1","typeLabel":"null"}],"uniqueKey":"usage.cost_details","typeLabel":"object | null"},"server_tool_use_details":{"oneOf":[{"type":"object","description":"Детали цикла серверных инструментов: исполненные вызовы по типам, запрошенные и исполненные вызовы всего, число шагов модели","example":{"web_search_requests":1,"tool_calls_requested":2,"tool_calls_executed":2,"steps":2},"uniqueKey":"usage.server_tool_use_details.oneOf.0","typeLabel":"object"},{"type":"null","description":"Детали цикла серверных инструментов: исполненные вызовы по типам, запрошенные и исполненные вызовы всего, число шагов модели","example":{"web_search_requests":1,"tool_calls_requested":2,"tool_calls_executed":2,"steps":2},"uniqueKey":"usage.server_tool_use_details.oneOf.1","typeLabel":"null"}],"uniqueKey":"usage.server_tool_use_details","typeLabel":"object | null"},"plugins":{"oneOf":[{"type":"object","description":"Детализация серверных плагинов","example":{"masker":{"operations":[{"operation":"mask","latency_ms":15,"cost_rub":0.001},{"operation":"unmask","latency_ms":8,"cost_rub":0}],"total_cost_rub":0.001}},"uniqueKey":"usage.plugins.oneOf.0","typeLabel":"object"},{"type":"null","description":"Детализация серверных плагинов","example":{"masker":{"operations":[{"operation":"mask","latency_ms":15,"cost_rub":0.001},{"operation":"unmask","latency_ms":8,"cost_rub":0}],"total_cost_rub":0.001}},"uniqueKey":"usage.plugins.oneOf.1","typeLabel":"null"}],"uniqueKey":"usage.plugins","typeLabel":"object | null"},"plugin_post_process_error":{"type":"boolean","description":"Ошибка post-process плагинов (ответ возвращён в замаскированном виде)","example":true,"uniqueKey":"usage.plugin_post_process_error","typeLabel":"boolean"},"guard":{"type":"object","description":"Проверка запроса политикой защиты данных организации; нет поля — политика к ключу не назначена","required":["policy_version_id","action","entities","layers","degraded"],"properties":{"policy_version_id":{"type":"string","description":"Версия политики защиты, по которой проверен запрос","example":"3f2c1a9e-7b4d-4e8a-9c1f-2d5e6a7b8c9d","isRequired":true,"uniqueKey":"usage.guard.policy_version_id","typeLabel":"string"},"action":{"type":"string","description":"Что сделано с найденными данными: none — ничего не нашлось, audit — только записано, mask — заменено на [ТИП] до отправки модели","enum":["none","audit","mask","pseudonymize","block"],"example":"mask","isRequired":true,"uniqueKey":"usage.guard.action","typeLabel":"enum\u003cstring>"},"entities":{"type":"object","description":"Сколько данных каждого типа нашлось в запросе","additionalProperties":{"type":"number","uniqueKey":"usage.guard.entities.additionalProperties","typeLabel":"number"},"example":{"PHONE":1,"EMAIL":1},"isRequired":true,"uniqueKey":"usage.guard.entities","typeLabel":"object"},"layers":{"description":"Какими способами проверялся запрос","example":["regex"],"type":"array","items":{"type":"string","uniqueKey":"usage.guard.layers.items.[INDEX]","typeLabel":"string"},"isRequired":true,"uniqueKey":"usage.guard.layers","typeLabel":"string[]"},"degraded":{"type":"boolean","description":"true — часть проверок была недоступна и запрос проверен не полностью","example":false,"isRequired":true,"uniqueKey":"usage.guard.degraded","typeLabel":"boolean"}},"uniqueKey":"usage.guard","typeLabel":"object"}},"uniqueKey":"usage","typeLabel":"object"},"metadata":{"type":"object","description":"Metadata key-value pairs","uniqueKey":"metadata","typeLabel":"object"},"polza":{"type":"object","description":"Есть, если модель вызывала серверные инструменты: parent_generation_id — id запроса в истории (GET /v1/history/generations/{id}), шаги — /children","uniqueKey":"polza","typeLabel":"object"}},"required":["id","object","created_at","model","status","output_text","output"],"uniqueKey":"","typeLabel":"object"},"examples":{"Example":{"title":"Example","value":{"id":"gen_581761234567890123","object":"response","created_at":1234567890,"model":"openai/gpt-4","status":"completed","output_text":"Hello! How can I help you today?","output":"\u003carray>","completed_at":{},"error":{"code":"invalid_request","message":"Invalid input format","metadata":{}},"incomplete_details":{},"usage":{"input_tokens":10,"output_tokens":20,"total_tokens":30,"prompt_tokens":10,"completion_tokens":20,"input_tokens_details":{"cached_tokens":0,"cache_write_tokens":0,"audio_tokens":0,"video_tokens":0},"output_tokens_details":{"reasoning_tokens":100,"audio_tokens":0,"image_tokens":0,"accepted_prediction_tokens":0,"rejected_prediction_tokens":0},"prompt_tokens_details":{"cached_tokens":0,"cache_write_tokens":0,"audio_tokens":0,"video_tokens":0},"completion_tokens_details":{"reasoning_tokens":100,"audio_tokens":0,"image_tokens":0,"accepted_prediction_tokens":0,"rejected_prediction_tokens":0},"server_tool_use":{"web_search_requests":1},"cost_rub":0.04131306,"cost":0.04131306,"cost_details":{"inference_cost_rub":1.2,"server_tools_cost_rub":0.4},"server_tool_use_details":{"web_search_requests":1,"tool_calls_requested":2,"tool_calls_executed":2,"steps":2},"plugins":{"masker":{"operations":[{"operation":"mask","latency_ms":15,"cost_rub":0.001},{"operation":"unmask","latency_ms":8,"cost_rub":0}],"total_cost_rub":0.001}},"plugin_post_process_error":true,"guard":{"policy_version_id":"3f2c1a9e-7b4d-4e8a-9c1f-2d5e6a7b8c9d","action":"mask","entities":{"PHONE":1,"EMAIL":1},"layers":["regex"],"degraded":false}},"metadata":{},"polza":{}}}},"exampleType":"generated"}},"exampleType":"generated"},"ad32069a-5f51-4fd7-8fcf-7e150794bf92":{"description":"Некорректный запрос. Проверьте параметры и тело","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","description":"Информация об ошибке","required":["code","message"],"properties":{"code":{"type":"string","description":"Код ошибки","enum":["BAD_REQUEST","UNAUTHORIZED","api_key_revoked","INSUFFICIENT_BALANCE","FORBIDDEN","guard_no_route","guard_blocked","unofficial_providers_disabled","NOT_FOUND","REQUEST_TIMEOUT","CONFLICT","PAYLOAD_TOO_LARGE","TOO_MANY_REQUESTS","BAD_GATEWAY","SERVICE_UNAVAILABLE","INTERNAL_ERROR"],"example":"BAD_REQUEST","isRequired":true,"uniqueKey":"error.code","typeLabel":"enum\u003cstring>"},"message":{"type":"string","description":"Описание ошибки","example":"Недопустимое значение параметра","isRequired":true,"uniqueKey":"error.message","typeLabel":"string"},"trace_id":{"type":"string","description":"ID трассировки запроса","example":"550e8400-e29b-41d4-a716-446655440000","uniqueKey":"error.trace_id","typeLabel":"string"},"details":{"type":"object","description":"Уточняющие поля ошибки. Отдаются только для 4xx","additionalProperties":true,"uniqueKey":"error.details","typeLabel":"object"},"metadata":{"type":"object","description":"Метаданные ошибки провайдера","properties":{"reason":{"type":"string","description":"Машинная причина отказа: по ней можно ветвиться, не разбирая текст","example":"noProvidersForModel","uniqueKey":"error.metadata.reason","typeLabel":"string"},"raw":{"type":"string","description":"Исходный текст ответа провайдера","example":"The parameter `duration` specified in the request is not valid","uniqueKey":"error.metadata.raw","typeLabel":"string"},"provider_name":{"type":"string","description":"Провайдер, вернувший ошибку","example":"alibaba","uniqueKey":"error.metadata.provider_name","typeLabel":"string"}},"uniqueKey":"error.metadata","typeLabel":"object"}},"isRequired":true,"uniqueKey":"error","typeLabel":"object"},"trace_id":{"type":"string","description":"ID трассировки запроса","example":"550e8400-e29b-41d4-a716-446655440000","uniqueKey":"trace_id","typeLabel":"string"}},"required":["error"],"uniqueKey":"","typeLabel":"object"},"examples":{"Example":{"title":"Example","value":{"error":{"code":"BAD_REQUEST","message":"Недопустимое значение параметра","trace_id":"550e8400-e29b-41d4-a716-446655440000","details":{},"metadata":{"reason":"noProvidersForModel","raw":"The parameter `duration` specified in the request is not valid","provider_name":"alibaba"}},"trace_id":"550e8400-e29b-41d4-a716-446655440000"}}},"exampleType":"generated"}},"exampleType":"generated"},"096d6f3f-d48b-47ae-9f98-11809e4cee46":{"description":"Ошибка авторизации. Проверьте ключ доступа","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","description":"Информация об ошибке","required":["code","message"],"properties":{"code":{"type":"string","description":"Код ошибки","enum":["BAD_REQUEST","UNAUTHORIZED","api_key_revoked","INSUFFICIENT_BALANCE","FORBIDDEN","guard_no_route","guard_blocked","unofficial_providers_disabled","NOT_FOUND","REQUEST_TIMEOUT","CONFLICT","PAYLOAD_TOO_LARGE","TOO_MANY_REQUESTS","BAD_GATEWAY","SERVICE_UNAVAILABLE","INTERNAL_ERROR"],"example":"BAD_REQUEST","isRequired":true,"uniqueKey":"error.code","typeLabel":"enum\u003cstring>"},"message":{"type":"string","description":"Описание ошибки","example":"Недопустимое значение параметра","isRequired":true,"uniqueKey":"error.message","typeLabel":"string"},"trace_id":{"type":"string","description":"ID трассировки запроса","example":"550e8400-e29b-41d4-a716-446655440000","uniqueKey":"error.trace_id","typeLabel":"string"},"details":{"type":"object","description":"Уточняющие поля ошибки. Отдаются только для 4xx","additionalProperties":true,"uniqueKey":"error.details","typeLabel":"object"},"metadata":{"type":"object","description":"Метаданные ошибки провайдера","properties":{"reason":{"type":"string","description":"Машинная причина отказа: по ней можно ветвиться, не разбирая текст","example":"noProvidersForModel","uniqueKey":"error.metadata.reason","typeLabel":"string"},"raw":{"type":"string","description":"Исходный текст ответа провайдера","example":"The parameter `duration` specified in the request is not valid","uniqueKey":"error.metadata.raw","typeLabel":"string"},"provider_name":{"type":"string","description":"Провайдер, вернувший ошибку","example":"alibaba","uniqueKey":"error.metadata.provider_name","typeLabel":"string"}},"uniqueKey":"error.metadata","typeLabel":"object"}},"isRequired":true,"uniqueKey":"error","typeLabel":"object"},"trace_id":{"type":"string","description":"ID трассировки запроса","example":"550e8400-e29b-41d4-a716-446655440000","uniqueKey":"trace_id","typeLabel":"string"}},"required":["error"],"uniqueKey":"","typeLabel":"object"},"examples":{"Example":{"title":"Example","value":{"error":{"code":"BAD_REQUEST","message":"Недопустимое значение параметра","trace_id":"550e8400-e29b-41d4-a716-446655440000","details":{},"metadata":{"reason":"noProvidersForModel","raw":"The parameter `duration` specified in the request is not valid","provider_name":"alibaba"}},"trace_id":"550e8400-e29b-41d4-a716-446655440000"}}},"exampleType":"generated"}},"exampleType":"generated"},"417ee059-108a-4ee0-8564-1636fd9006c4":{"description":"Недостаточно средств или достигнут лимит","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","description":"Информация об ошибке","required":["code","message"],"properties":{"code":{"type":"string","description":"Код ошибки","enum":["BAD_REQUEST","UNAUTHORIZED","api_key_revoked","INSUFFICIENT_BALANCE","FORBIDDEN","guard_no_route","guard_blocked","unofficial_providers_disabled","NOT_FOUND","REQUEST_TIMEOUT","CONFLICT","PAYLOAD_TOO_LARGE","TOO_MANY_REQUESTS","BAD_GATEWAY","SERVICE_UNAVAILABLE","INTERNAL_ERROR"],"example":"BAD_REQUEST","isRequired":true,"uniqueKey":"error.code","typeLabel":"enum\u003cstring>"},"message":{"type":"string","description":"Описание ошибки","example":"Недопустимое значение параметра","isRequired":true,"uniqueKey":"error.message","typeLabel":"string"},"trace_id":{"type":"string","description":"ID трассировки запроса","example":"550e8400-e29b-41d4-a716-446655440000","uniqueKey":"error.trace_id","typeLabel":"string"},"details":{"type":"object","description":"Уточняющие поля ошибки. Отдаются только для 4xx","additionalProperties":true,"uniqueKey":"error.details","typeLabel":"object"},"metadata":{"type":"object","description":"Метаданные ошибки провайдера","properties":{"reason":{"type":"string","description":"Машинная причина отказа: по ней можно ветвиться, не разбирая текст","example":"noProvidersForModel","uniqueKey":"error.metadata.reason","typeLabel":"string"},"raw":{"type":"string","description":"Исходный текст ответа провайдера","example":"The parameter `duration` specified in the request is not valid","uniqueKey":"error.metadata.raw","typeLabel":"string"},"provider_name":{"type":"string","description":"Провайдер, вернувший ошибку","example":"alibaba","uniqueKey":"error.metadata.provider_name","typeLabel":"string"}},"uniqueKey":"error.metadata","typeLabel":"object"}},"isRequired":true,"uniqueKey":"error","typeLabel":"object"},"trace_id":{"type":"string","description":"ID трассировки запроса","example":"550e8400-e29b-41d4-a716-446655440000","uniqueKey":"trace_id","typeLabel":"string"}},"required":["error"],"uniqueKey":"","typeLabel":"object"},"examples":{"Example":{"title":"Example","value":{"error":{"code":"BAD_REQUEST","message":"Недопустимое значение параметра","trace_id":"550e8400-e29b-41d4-a716-446655440000","details":{},"metadata":{"reason":"noProvidersForModel","raw":"The parameter `duration` specified in the request is not valid","provider_name":"alibaba"}},"trace_id":"550e8400-e29b-41d4-a716-446655440000"}}},"exampleType":"generated"}},"exampleType":"generated"},"a6964a0c-cf0a-4c6c-b586-6029190b831d":{"description":"Ошибка доступа. Проверьте права доступа ключа","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","description":"Информация об ошибке","required":["code","message"],"properties":{"code":{"type":"string","description":"Код ошибки","enum":["BAD_REQUEST","UNAUTHORIZED","api_key_revoked","INSUFFICIENT_BALANCE","FORBIDDEN","guard_no_route","guard_blocked","unofficial_providers_disabled","NOT_FOUND","REQUEST_TIMEOUT","CONFLICT","PAYLOAD_TOO_LARGE","TOO_MANY_REQUESTS","BAD_GATEWAY","SERVICE_UNAVAILABLE","INTERNAL_ERROR"],"example":"BAD_REQUEST","isRequired":true,"uniqueKey":"error.code","typeLabel":"enum\u003cstring>"},"message":{"type":"string","description":"Описание ошибки","example":"Недопустимое значение параметра","isRequired":true,"uniqueKey":"error.message","typeLabel":"string"},"trace_id":{"type":"string","description":"ID трассировки запроса","example":"550e8400-e29b-41d4-a716-446655440000","uniqueKey":"error.trace_id","typeLabel":"string"},"details":{"type":"object","description":"Уточняющие поля ошибки. Отдаются только для 4xx","additionalProperties":true,"uniqueKey":"error.details","typeLabel":"object"},"metadata":{"type":"object","description":"Метаданные ошибки провайдера","properties":{"reason":{"type":"string","description":"Машинная причина отказа: по ней можно ветвиться, не разбирая текст","example":"noProvidersForModel","uniqueKey":"error.metadata.reason","typeLabel":"string"},"raw":{"type":"string","description":"Исходный текст ответа провайдера","example":"The parameter `duration` specified in the request is not valid","uniqueKey":"error.metadata.raw","typeLabel":"string"},"provider_name":{"type":"string","description":"Провайдер, вернувший ошибку","example":"alibaba","uniqueKey":"error.metadata.provider_name","typeLabel":"string"}},"uniqueKey":"error.metadata","typeLabel":"object"}},"isRequired":true,"uniqueKey":"error","typeLabel":"object"},"trace_id":{"type":"string","description":"ID трассировки запроса","example":"550e8400-e29b-41d4-a716-446655440000","uniqueKey":"trace_id","typeLabel":"string"}},"required":["error"],"uniqueKey":"","typeLabel":"object"},"examples":{"Example":{"title":"Example","value":{"error":{"code":"BAD_REQUEST","message":"Недопустимое значение параметра","trace_id":"550e8400-e29b-41d4-a716-446655440000","details":{},"metadata":{"reason":"noProvidersForModel","raw":"The parameter `duration` specified in the request is not valid","provider_name":"alibaba"}},"trace_id":"550e8400-e29b-41d4-a716-446655440000"}}},"exampleType":"generated"}},"exampleType":"generated"},"b6b0f1ab-ad26-4270-8ea3-56d86204f6e4":{"description":"Ресурс не найден","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","description":"Информация об ошибке","required":["code","message"],"properties":{"code":{"type":"string","description":"Код ошибки","enum":["BAD_REQUEST","UNAUTHORIZED","api_key_revoked","INSUFFICIENT_BALANCE","FORBIDDEN","guard_no_route","guard_blocked","unofficial_providers_disabled","NOT_FOUND","REQUEST_TIMEOUT","CONFLICT","PAYLOAD_TOO_LARGE","TOO_MANY_REQUESTS","BAD_GATEWAY","SERVICE_UNAVAILABLE","INTERNAL_ERROR"],"example":"BAD_REQUEST","isRequired":true,"uniqueKey":"error.code","typeLabel":"enum\u003cstring>"},"message":{"type":"string","description":"Описание ошибки","example":"Недопустимое значение параметра","isRequired":true,"uniqueKey":"error.message","typeLabel":"string"},"trace_id":{"type":"string","description":"ID трассировки запроса","example":"550e8400-e29b-41d4-a716-446655440000","uniqueKey":"error.trace_id","typeLabel":"string"},"details":{"type":"object","description":"Уточняющие поля ошибки. Отдаются только для 4xx","additionalProperties":true,"uniqueKey":"error.details","typeLabel":"object"},"metadata":{"type":"object","description":"Метаданные ошибки провайдера","properties":{"reason":{"type":"string","description":"Машинная причина отказа: по ней можно ветвиться, не разбирая текст","example":"noProvidersForModel","uniqueKey":"error.metadata.reason","typeLabel":"string"},"raw":{"type":"string","description":"Исходный текст ответа провайдера","example":"The parameter `duration` specified in the request is not valid","uniqueKey":"error.metadata.raw","typeLabel":"string"},"provider_name":{"type":"string","description":"Провайдер, вернувший ошибку","example":"alibaba","uniqueKey":"error.metadata.provider_name","typeLabel":"string"}},"uniqueKey":"error.metadata","typeLabel":"object"}},"isRequired":true,"uniqueKey":"error","typeLabel":"object"},"trace_id":{"type":"string","description":"ID трассировки запроса","example":"550e8400-e29b-41d4-a716-446655440000","uniqueKey":"trace_id","typeLabel":"string"}},"required":["error"],"uniqueKey":"","typeLabel":"object"},"examples":{"Example":{"title":"Example","value":{"error":{"code":"BAD_REQUEST","message":"Недопустимое значение параметра","trace_id":"550e8400-e29b-41d4-a716-446655440000","details":{},"metadata":{"reason":"noProvidersForModel","raw":"The parameter `duration` specified in the request is not valid","provider_name":"alibaba"}},"trace_id":"550e8400-e29b-41d4-a716-446655440000"}}},"exampleType":"generated"}},"exampleType":"generated"},"b32d06db-ea77-4d36-a634-256c80cb72b0":{"description":"Истекло время ожидания ответа. Повторите запрос","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","description":"Информация об ошибке","required":["code","message"],"properties":{"code":{"type":"string","description":"Код ошибки","enum":["BAD_REQUEST","UNAUTHORIZED","api_key_revoked","INSUFFICIENT_BALANCE","FORBIDDEN","guard_no_route","guard_blocked","unofficial_providers_disabled","NOT_FOUND","REQUEST_TIMEOUT","CONFLICT","PAYLOAD_TOO_LARGE","TOO_MANY_REQUESTS","BAD_GATEWAY","SERVICE_UNAVAILABLE","INTERNAL_ERROR"],"example":"BAD_REQUEST","isRequired":true,"uniqueKey":"error.code","typeLabel":"enum\u003cstring>"},"message":{"type":"string","description":"Описание ошибки","example":"Недопустимое значение параметра","isRequired":true,"uniqueKey":"error.message","typeLabel":"string"},"trace_id":{"type":"string","description":"ID трассировки запроса","example":"550e8400-e29b-41d4-a716-446655440000","uniqueKey":"error.trace_id","typeLabel":"string"},"details":{"type":"object","description":"Уточняющие поля ошибки. Отдаются только для 4xx","additionalProperties":true,"uniqueKey":"error.details","typeLabel":"object"},"metadata":{"type":"object","description":"Метаданные ошибки провайдера","properties":{"reason":{"type":"string","description":"Машинная причина отказа: по ней можно ветвиться, не разбирая текст","example":"noProvidersForModel","uniqueKey":"error.metadata.reason","typeLabel":"string"},"raw":{"type":"string","description":"Исходный текст ответа провайдера","example":"The parameter `duration` specified in the request is not valid","uniqueKey":"error.metadata.raw","typeLabel":"string"},"provider_name":{"type":"string","description":"Провайдер, вернувший ошибку","example":"alibaba","uniqueKey":"error.metadata.provider_name","typeLabel":"string"}},"uniqueKey":"error.metadata","typeLabel":"object"}},"isRequired":true,"uniqueKey":"error","typeLabel":"object"},"trace_id":{"type":"string","description":"ID трассировки запроса","example":"550e8400-e29b-41d4-a716-446655440000","uniqueKey":"trace_id","typeLabel":"string"}},"required":["error"],"uniqueKey":"","typeLabel":"object"},"examples":{"Example":{"title":"Example","value":{"error":{"code":"BAD_REQUEST","message":"Недопустимое значение параметра","trace_id":"550e8400-e29b-41d4-a716-446655440000","details":{},"metadata":{"reason":"noProvidersForModel","raw":"The parameter `duration` specified in the request is not valid","provider_name":"alibaba"}},"trace_id":"550e8400-e29b-41d4-a716-446655440000"}}},"exampleType":"generated"}},"exampleType":"generated"},"2ceb6806-fa48-4529-b82a-4592bf3bdef6":{"description":"Конфликт состояния. Перечитайте ресурс и повторите запрос","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","description":"Информация об ошибке","required":["code","message"],"properties":{"code":{"type":"string","description":"Код ошибки","enum":["BAD_REQUEST","UNAUTHORIZED","api_key_revoked","INSUFFICIENT_BALANCE","FORBIDDEN","guard_no_route","guard_blocked","unofficial_providers_disabled","NOT_FOUND","REQUEST_TIMEOUT","CONFLICT","PAYLOAD_TOO_LARGE","TOO_MANY_REQUESTS","BAD_GATEWAY","SERVICE_UNAVAILABLE","INTERNAL_ERROR"],"example":"BAD_REQUEST","isRequired":true,"uniqueKey":"error.code","typeLabel":"enum\u003cstring>"},"message":{"type":"string","description":"Описание ошибки","example":"Недопустимое значение параметра","isRequired":true,"uniqueKey":"error.message","typeLabel":"string"},"trace_id":{"type":"string","description":"ID трассировки запроса","example":"550e8400-e29b-41d4-a716-446655440000","uniqueKey":"error.trace_id","typeLabel":"string"},"details":{"type":"object","description":"Уточняющие поля ошибки. Отдаются только для 4xx","additionalProperties":true,"uniqueKey":"error.details","typeLabel":"object"},"metadata":{"type":"object","description":"Метаданные ошибки провайдера","properties":{"reason":{"type":"string","description":"Машинная причина отказа: по ней можно ветвиться, не разбирая текст","example":"noProvidersForModel","uniqueKey":"error.metadata.reason","typeLabel":"string"},"raw":{"type":"string","description":"Исходный текст ответа провайдера","example":"The parameter `duration` specified in the request is not valid","uniqueKey":"error.metadata.raw","typeLabel":"string"},"provider_name":{"type":"string","description":"Провайдер, вернувший ошибку","example":"alibaba","uniqueKey":"error.metadata.provider_name","typeLabel":"string"}},"uniqueKey":"error.metadata","typeLabel":"object"}},"isRequired":true,"uniqueKey":"error","typeLabel":"object"},"trace_id":{"type":"string","description":"ID трассировки запроса","example":"550e8400-e29b-41d4-a716-446655440000","uniqueKey":"trace_id","typeLabel":"string"}},"required":["error"],"uniqueKey":"","typeLabel":"object"},"examples":{"Example":{"title":"Example","value":{"error":{"code":"BAD_REQUEST","message":"Недопустимое значение параметра","trace_id":"550e8400-e29b-41d4-a716-446655440000","details":{},"metadata":{"reason":"noProvidersForModel","raw":"The parameter `duration` specified in the request is not valid","provider_name":"alibaba"}},"trace_id":"550e8400-e29b-41d4-a716-446655440000"}}},"exampleType":"generated"}},"exampleType":"generated"},"5015efc6-abd1-4637-bdf8-5772597d3f66":{"description":"Размер тела запроса превышает допустимый предел","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","description":"Информация об ошибке","required":["code","message"],"properties":{"code":{"type":"string","description":"Код ошибки","enum":["BAD_REQUEST","UNAUTHORIZED","api_key_revoked","INSUFFICIENT_BALANCE","FORBIDDEN","guard_no_route","guard_blocked","unofficial_providers_disabled","NOT_FOUND","REQUEST_TIMEOUT","CONFLICT","PAYLOAD_TOO_LARGE","TOO_MANY_REQUESTS","BAD_GATEWAY","SERVICE_UNAVAILABLE","INTERNAL_ERROR"],"example":"BAD_REQUEST","isRequired":true,"uniqueKey":"error.code","typeLabel":"enum\u003cstring>"},"message":{"type":"string","description":"Описание ошибки","example":"Недопустимое значение параметра","isRequired":true,"uniqueKey":"error.message","typeLabel":"string"},"trace_id":{"type":"string","description":"ID трассировки запроса","example":"550e8400-e29b-41d4-a716-446655440000","uniqueKey":"error.trace_id","typeLabel":"string"},"details":{"type":"object","description":"Уточняющие поля ошибки. Отдаются только для 4xx","additionalProperties":true,"uniqueKey":"error.details","typeLabel":"object"},"metadata":{"type":"object","description":"Метаданные ошибки провайдера","properties":{"reason":{"type":"string","description":"Машинная причина отказа: по ней можно ветвиться, не разбирая текст","example":"noProvidersForModel","uniqueKey":"error.metadata.reason","typeLabel":"string"},"raw":{"type":"string","description":"Исходный текст ответа провайдера","example":"The parameter `duration` specified in the request is not valid","uniqueKey":"error.metadata.raw","typeLabel":"string"},"provider_name":{"type":"string","description":"Провайдер, вернувший ошибку","example":"alibaba","uniqueKey":"error.metadata.provider_name","typeLabel":"string"}},"uniqueKey":"error.metadata","typeLabel":"object"}},"isRequired":true,"uniqueKey":"error","typeLabel":"object"},"trace_id":{"type":"string","description":"ID трассировки запроса","example":"550e8400-e29b-41d4-a716-446655440000","uniqueKey":"trace_id","typeLabel":"string"}},"required":["error"],"uniqueKey":"","typeLabel":"object"},"examples":{"Example":{"title":"Example","value":{"error":{"code":"BAD_REQUEST","message":"Недопустимое значение параметра","trace_id":"550e8400-e29b-41d4-a716-446655440000","details":{},"metadata":{"reason":"noProvidersForModel","raw":"The parameter `duration` specified in the request is not valid","provider_name":"alibaba"}},"trace_id":"550e8400-e29b-41d4-a716-446655440000"}}},"exampleType":"generated"}},"exampleType":"generated"},"0afafdc4-0dd1-4b14-9dbd-ca3eb46d4771":{"description":"Слишком много запросов. Повторите позже","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","description":"Информация об ошибке","required":["code","message"],"properties":{"code":{"type":"string","description":"Код ошибки","enum":["BAD_REQUEST","UNAUTHORIZED","api_key_revoked","INSUFFICIENT_BALANCE","FORBIDDEN","guard_no_route","guard_blocked","unofficial_providers_disabled","NOT_FOUND","REQUEST_TIMEOUT","CONFLICT","PAYLOAD_TOO_LARGE","TOO_MANY_REQUESTS","BAD_GATEWAY","SERVICE_UNAVAILABLE","INTERNAL_ERROR"],"example":"BAD_REQUEST","isRequired":true,"uniqueKey":"error.code","typeLabel":"enum\u003cstring>"},"message":{"type":"string","description":"Описание ошибки","example":"Недопустимое значение параметра","isRequired":true,"uniqueKey":"error.message","typeLabel":"string"},"trace_id":{"type":"string","description":"ID трассировки запроса","example":"550e8400-e29b-41d4-a716-446655440000","uniqueKey":"error.trace_id","typeLabel":"string"},"details":{"type":"object","description":"Уточняющие поля ошибки. Отдаются только для 4xx","additionalProperties":true,"uniqueKey":"error.details","typeLabel":"object"},"metadata":{"type":"object","description":"Метаданные ошибки провайдера","properties":{"reason":{"type":"string","description":"Машинная причина отказа: по ней можно ветвиться, не разбирая текст","example":"noProvidersForModel","uniqueKey":"error.metadata.reason","typeLabel":"string"},"raw":{"type":"string","description":"Исходный текст ответа провайдера","example":"The parameter `duration` specified in the request is not valid","uniqueKey":"error.metadata.raw","typeLabel":"string"},"provider_name":{"type":"string","description":"Провайдер, вернувший ошибку","example":"alibaba","uniqueKey":"error.metadata.provider_name","typeLabel":"string"}},"uniqueKey":"error.metadata","typeLabel":"object"}},"isRequired":true,"uniqueKey":"error","typeLabel":"object"},"trace_id":{"type":"string","description":"ID трассировки запроса","example":"550e8400-e29b-41d4-a716-446655440000","uniqueKey":"trace_id","typeLabel":"string"}},"required":["error"],"uniqueKey":"","typeLabel":"object"},"examples":{"Example":{"title":"Example","value":{"error":{"code":"BAD_REQUEST","message":"Недопустимое значение параметра","trace_id":"550e8400-e29b-41d4-a716-446655440000","details":{},"metadata":{"reason":"noProvidersForModel","raw":"The parameter `duration` specified in the request is not valid","provider_name":"alibaba"}},"trace_id":"550e8400-e29b-41d4-a716-446655440000"}}},"exampleType":"generated"}},"exampleType":"generated"},"efc35200-0e93-4882-b66d-57a1f32c2905":{"description":"Ошибка сервера. Обратитесь к поставщику услуг","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","description":"Информация об ошибке","required":["code","message"],"properties":{"code":{"type":"string","description":"Код ошибки","enum":["BAD_REQUEST","UNAUTHORIZED","api_key_revoked","INSUFFICIENT_BALANCE","FORBIDDEN","guard_no_route","guard_blocked","unofficial_providers_disabled","NOT_FOUND","REQUEST_TIMEOUT","CONFLICT","PAYLOAD_TOO_LARGE","TOO_MANY_REQUESTS","BAD_GATEWAY","SERVICE_UNAVAILABLE","INTERNAL_ERROR"],"example":"BAD_REQUEST","isRequired":true,"uniqueKey":"error.code","typeLabel":"enum\u003cstring>"},"message":{"type":"string","description":"Описание ошибки","example":"Недопустимое значение параметра","isRequired":true,"uniqueKey":"error.message","typeLabel":"string"},"trace_id":{"type":"string","description":"ID трассировки запроса","example":"550e8400-e29b-41d4-a716-446655440000","uniqueKey":"error.trace_id","typeLabel":"string"},"details":{"type":"object","description":"Уточняющие поля ошибки. Отдаются только для 4xx","additionalProperties":true,"uniqueKey":"error.details","typeLabel":"object"},"metadata":{"type":"object","description":"Метаданные ошибки провайдера","properties":{"reason":{"type":"string","description":"Машинная причина отказа: по ней можно ветвиться, не разбирая текст","example":"noProvidersForModel","uniqueKey":"error.metadata.reason","typeLabel":"string"},"raw":{"type":"string","description":"Исходный текст ответа провайдера","example":"The parameter `duration` specified in the request is not valid","uniqueKey":"error.metadata.raw","typeLabel":"string"},"provider_name":{"type":"string","description":"Провайдер, вернувший ошибку","example":"alibaba","uniqueKey":"error.metadata.provider_name","typeLabel":"string"}},"uniqueKey":"error.metadata","typeLabel":"object"}},"isRequired":true,"uniqueKey":"error","typeLabel":"object"},"trace_id":{"type":"string","description":"ID трассировки запроса","example":"550e8400-e29b-41d4-a716-446655440000","uniqueKey":"trace_id","typeLabel":"string"}},"required":["error"],"uniqueKey":"","typeLabel":"object"},"examples":{"Example":{"title":"Example","value":{"error":{"code":"BAD_REQUEST","message":"Недопустимое значение параметра","trace_id":"550e8400-e29b-41d4-a716-446655440000","details":{},"metadata":{"reason":"noProvidersForModel","raw":"The parameter `duration` specified in the request is not valid","provider_name":"alibaba"}},"trace_id":"550e8400-e29b-41d4-a716-446655440000"}}},"exampleType":"generated"}},"exampleType":"generated"},"7de3a0fe-f3d4-4ff5-b538-9a808944330c":{"description":"Поставщик услуг вернул некорректный ответ","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","description":"Информация об ошибке","required":["code","message"],"properties":{"code":{"type":"string","description":"Код ошибки","enum":["BAD_REQUEST","UNAUTHORIZED","api_key_revoked","INSUFFICIENT_BALANCE","FORBIDDEN","guard_no_route","guard_blocked","unofficial_providers_disabled","NOT_FOUND","REQUEST_TIMEOUT","CONFLICT","PAYLOAD_TOO_LARGE","TOO_MANY_REQUESTS","BAD_GATEWAY","SERVICE_UNAVAILABLE","INTERNAL_ERROR"],"example":"BAD_REQUEST","isRequired":true,"uniqueKey":"error.code","typeLabel":"enum\u003cstring>"},"message":{"type":"string","description":"Описание ошибки","example":"Недопустимое значение параметра","isRequired":true,"uniqueKey":"error.message","typeLabel":"string"},"trace_id":{"type":"string","description":"ID трассировки запроса","example":"550e8400-e29b-41d4-a716-446655440000","uniqueKey":"error.trace_id","typeLabel":"string"},"details":{"type":"object","description":"Уточняющие поля ошибки. Отдаются только для 4xx","additionalProperties":true,"uniqueKey":"error.details","typeLabel":"object"},"metadata":{"type":"object","description":"Метаданные ошибки провайдера","properties":{"reason":{"type":"string","description":"Машинная причина отказа: по ней можно ветвиться, не разбирая текст","example":"noProvidersForModel","uniqueKey":"error.metadata.reason","typeLabel":"string"},"raw":{"type":"string","description":"Исходный текст ответа провайдера","example":"The parameter `duration` specified in the request is not valid","uniqueKey":"error.metadata.raw","typeLabel":"string"},"provider_name":{"type":"string","description":"Провайдер, вернувший ошибку","example":"alibaba","uniqueKey":"error.metadata.provider_name","typeLabel":"string"}},"uniqueKey":"error.metadata","typeLabel":"object"}},"isRequired":true,"uniqueKey":"error","typeLabel":"object"},"trace_id":{"type":"string","description":"ID трассировки запроса","example":"550e8400-e29b-41d4-a716-446655440000","uniqueKey":"trace_id","typeLabel":"string"}},"required":["error"],"uniqueKey":"","typeLabel":"object"},"examples":{"Example":{"title":"Example","value":{"error":{"code":"BAD_REQUEST","message":"Недопустимое значение параметра","trace_id":"550e8400-e29b-41d4-a716-446655440000","details":{},"metadata":{"reason":"noProvidersForModel","raw":"The parameter `duration` specified in the request is not valid","provider_name":"alibaba"}},"trace_id":"550e8400-e29b-41d4-a716-446655440000"}}},"exampleType":"generated"}},"exampleType":"generated"},"668252e6-30b4-488f-8e69-6438c9a27446":{"description":"Сервис временно недоступен. Повторите позже","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","description":"Информация об ошибке","required":["code","message"],"properties":{"code":{"type":"string","description":"Код ошибки","enum":["BAD_REQUEST","UNAUTHORIZED","api_key_revoked","INSUFFICIENT_BALANCE","FORBIDDEN","guard_no_route","guard_blocked","unofficial_providers_disabled","NOT_FOUND","REQUEST_TIMEOUT","CONFLICT","PAYLOAD_TOO_LARGE","TOO_MANY_REQUESTS","BAD_GATEWAY","SERVICE_UNAVAILABLE","INTERNAL_ERROR"],"example":"BAD_REQUEST","isRequired":true,"uniqueKey":"error.code","typeLabel":"enum\u003cstring>"},"message":{"type":"string","description":"Описание ошибки","example":"Недопустимое значение параметра","isRequired":true,"uniqueKey":"error.message","typeLabel":"string"},"trace_id":{"type":"string","description":"ID трассировки запроса","example":"550e8400-e29b-41d4-a716-446655440000","uniqueKey":"error.trace_id","typeLabel":"string"},"details":{"type":"object","description":"Уточняющие поля ошибки. Отдаются только для 4xx","additionalProperties":true,"uniqueKey":"error.details","typeLabel":"object"},"metadata":{"type":"object","description":"Метаданные ошибки провайдера","properties":{"reason":{"type":"string","description":"Машинная причина отказа: по ней можно ветвиться, не разбирая текст","example":"noProvidersForModel","uniqueKey":"error.metadata.reason","typeLabel":"string"},"raw":{"type":"string","description":"Исходный текст ответа провайдера","example":"The parameter `duration` specified in the request is not valid","uniqueKey":"error.metadata.raw","typeLabel":"string"},"provider_name":{"type":"string","description":"Провайдер, вернувший ошибку","example":"alibaba","uniqueKey":"error.metadata.provider_name","typeLabel":"string"}},"uniqueKey":"error.metadata","typeLabel":"object"}},"isRequired":true,"uniqueKey":"error","typeLabel":"object"},"trace_id":{"type":"string","description":"ID трассировки запроса","example":"550e8400-e29b-41d4-a716-446655440000","uniqueKey":"trace_id","typeLabel":"string"}},"required":["error"],"uniqueKey":"","typeLabel":"object"},"examples":{"Example":{"title":"Example","value":{"error":{"code":"BAD_REQUEST","message":"Недопустимое значение параметра","trace_id":"550e8400-e29b-41d4-a716-446655440000","details":{},"metadata":{"reason":"noProvidersForModel","raw":"The parameter `duration` specified in the request is not valid","provider_name":"alibaba"}},"trace_id":"550e8400-e29b-41d4-a716-446655440000"}}},"exampleType":"generated"}},"exampleType":"generated"}},"security":{"047081a7-3308-4fc6-a005-79709422aab8":{"bearer":{"scheme":"bearer","bearerFormat":"API Key","type":"http","description":"API ключ передаётся в заголовке: Authorization: Bearer \u003cPOLZA_AI_API_KEY>","scopes":[],"schemeName":"bearer"}}},"servers":{"f1a1b627-c52a-463a-86f0-ada828c76efc":{"url":"https://polza.ai/api","description":"Production"}},"processedSecurityOptions":[{"schemes":[{"scheme":{"scheme":"bearer","bearerFormat":"API Key","type":"http","description":"API ключ передаётся в заголовке: Authorization: Bearer \u003cPOLZA_AI_API_KEY>","scopes":[],"schemeName":"bearer"},"schema":{"title":"Bearer Auth","type":"string","isRequired":true,"description":"API ключ передаётся в заголовке: Authorization: Bearer \u003cPOLZA_AI_API_KEY>","format":"bearer","typeLabel":"string\u003cbearer>","deprecated":false},"schemeName":"bearer","name":"Authorization"}],"title":"bearer"}]},"originalFileLocation":"https://polza.ai/api/openapi.json"},"subdomain":"polza","siteName":"Polza.ai","title":"POST Responses - Polza.ai","contextualStarterQuestions":[],"navMaps":{"firstHrefInVersion":{},"firstHrefInLanguage":{}},"lastModified":"2026-10-15T10:20:01.234Z","originalFileLocation":"api-reference/responses/create.mdx","locale":"ru"},"headHtml":"\u003cscript data-mint-head>(function(){var d=document.documentElement,p=null;if(!p){try{p=localStorage.getItem(\"isDarkMode\")}catch(e){}if(p==='true')p='dark';else if(p==='false')p='light';if(p!=='light'\u0026\u0026p!=='dark'\u0026\u0026p!=='system')p=\"system\"}var r=p==='system'?(matchMedia(\"(prefers-color-scheme: dark)\").matches?'dark':'light'):p;d.classList.remove(r==='dark'?'light':'dark');d.classList.add(r);d.setAttribute(\"data-theme-preference\",p)})();\u003c/script>\u003cmeta data-mint-head name=\"description\" content=\"Responses API — OpenAI-совместимый формат запросов с tool calling и streaming\">\u003cmeta data-mint-head name=\"application-name\" content=\"Polza.ai\">\u003cmeta data-mint-head name=\"generator\" content=\"Mintlify\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"192x192\" href=\"/docs/mintlify-assets/_mintlify/favicons/polza/CQHRsFqB3M6hClzF/_generated/favicon/android-chrome-192x192.png\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"apple-touch-icon\" type=\"image/png\" sizes=\"180x180\" href=\"/docs/mintlify-assets/_mintlify/favicons/polza/CQHRsFqB3M6hClzF/_generated/favicon/apple-touch-icon.png\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"16x16\" href=\"/docs/mintlify-assets/_mintlify/favicons/polza/CQHRsFqB3M6hClzF/_generated/favicon/favicon-16x16.png\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"32x32\" href=\"/docs/mintlify-assets/_mintlify/favicons/polza/CQHRsFqB3M6hClzF/_generated/favicon/favicon-32x32.png\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"shortcut icon\" type=\"image/x-icon\" href=\"/docs/mintlify-assets/_mintlify/favicons/polza/CQHRsFqB3M6hClzF/_generated/favicon/favicon.ico\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"192x192\" href=\"/docs/mintlify-assets/_mintlify/favicons/polza/CQHRsFqB3M6hClzF/_generated/favicon-dark/android-chrome-192x192.png\" media=\"(prefers-color-scheme: dark)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"16x16\" href=\"/docs/mintlify-assets/_mintlify/favicons/polza/CQHRsFqB3M6hClzF/_generated/favicon-dark/favicon-16x16.png\" media=\"(prefers-color-scheme: dark)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"32x32\" href=\"/docs/mintlify-assets/_mintlify/favicons/polza/CQHRsFqB3M6hClzF/_generated/favicon-dark/favicon-32x32.png\" media=\"(prefers-color-scheme: dark)\">\u003clink data-mint-head rel=\"shortcut icon\" type=\"image/x-icon\" href=\"/docs/mintlify-assets/_mintlify/favicons/polza/CQHRsFqB3M6hClzF/_generated/favicon-dark/favicon.ico\" media=\"(prefers-color-scheme: dark)\">\u003cmeta data-mint-head property=\"og:title\" content=\"POST Responses - Polza.ai\">\u003cmeta data-mint-head property=\"og:description\" content=\"Responses API — OpenAI-совместимый формат запросов с tool calling и streaming\">\u003cmeta data-mint-head property=\"og:site_name\" content=\"Polza.ai\">\u003cmeta data-mint-head property=\"og:url\" content=\"https://polza.ai/docs/api-reference/responses/create\">\u003cmeta data-mint-head property=\"og:type\" content=\"website\">\u003cmeta data-mint-head property=\"og:image\" content=\"https://polza.mintlify.site/docs/_mintlify/api/og/v2?division=%D0%A2%D0%B5%D0%BA%D1%81%D1%82%D0%BE%D0%B2%D0%B0%D1%8F+%D0%B3%D0%B5%D0%BD%D0%B5%D1%80%D0%B0%D1%86%D0%B8%D1%8F\u0026amp;title=POST+Responses\u0026amp;description=Responses+API+%E2%80%94+OpenAI-%D1%81%D0%BE%D0%B2%D0%BC%D0%B5%D1%81%D1%82%D0%B8%D0%BC%D1%8B%D0%B9+%D1%84%D0%BE%D1%80%D0%BC%D0%B0%D1%82+%D0%B7%D0%B0%D0%BF%D1%80%D0%BE%D1%81%D0%BE%D0%B2+%D1%81+tool+calling+%D0%B8+streaming\u0026amp;theme=e66d600095dcc8df2fba5d6f\u0026amp;signature=08edce9133fe93e8dd7bab1062fc47bb4a170d39f58570163e5e04d592cfc657\">\u003cmeta data-mint-head property=\"og:image:width\" content=\"1200\">\u003cmeta data-mint-head property=\"og:image:height\" content=\"630\">\u003cmeta data-mint-head name=\"twitter:card\" content=\"summary_large_image\">\u003cmeta data-mint-head name=\"twitter:title\" content=\"POST Responses - Polza.ai\">\u003cmeta data-mint-head name=\"twitter:description\" content=\"Responses API — OpenAI-совместимый формат запросов с tool calling и streaming\">\u003cmeta data-mint-head name=\"twitter:image\" content=\"https://polza.mintlify.site/docs/_mintlify/api/og/v2?division=%D0%A2%D0%B5%D0%BA%D1%81%D1%82%D0%BE%D0%B2%D0%B0%D1%8F+%D0%B3%D0%B5%D0%BD%D0%B5%D1%80%D0%B0%D1%86%D0%B8%D1%8F\u0026amp;title=POST+Responses\u0026amp;description=Responses+API+%E2%80%94+OpenAI-%D1%81%D0%BE%D0%B2%D0%BC%D0%B5%D1%81%D1%82%D0%B8%D0%BC%D1%8B%D0%B9+%D1%84%D0%BE%D1%80%D0%BC%D0%B0%D1%82+%D0%B7%D0%B0%D0%BF%D1%80%D0%BE%D1%81%D0%BE%D0%B2+%D1%81+tool+calling+%D0%B8+streaming\u0026amp;theme=e66d600095dcc8df2fba5d6f\u0026amp;signature=08edce9133fe93e8dd7bab1062fc47bb4a170d39f58570163e5e04d592cfc657\">\u003cmeta data-mint-head name=\"twitter:image:width\" content=\"1200\">\u003cmeta data-mint-head name=\"twitter:image:height\" content=\"630\">\u003cmeta data-mint-head name=\"msapplication-config\" content=\"/docs/mintlify-assets/_mintlify/favicons/polza/CQHRsFqB3M6hClzF/_generated/favicon/browserconfig.xml\">\u003cmeta data-mint-head name=\"apple-mobile-web-app-title\" content=\"Polza.ai\">\u003cmeta data-mint-head name=\"msapplication-TileColor\" content=\"#4D7C0F\">\u003clink data-mint-head rel=\"canonical\" href=\"https://polza.ai/docs/api-reference/responses/create\">\u003clink data-mint-head rel=\"alternate\" type=\"application/xml\" href=\"/docs/sitemap.xml\">\u003clink data-mint-head rel=\"alternate\" type=\"text/markdown\" href=\"/docs/api-reference/responses/create.md\">\u003cscript data-mint-head type=\"application/ld+json\">{\"@context\":\"https://schema.org\",\"@graph\":[{\"@type\":\"Organization\",\"@id\":\"https://polza.ai/#organization\",\"name\":\"Polza.ai\",\"url\":\"https://polza.ai\",\"logo\":{\"@type\":\"ImageObject\",\"url\":\"https://mintcdn.com/polza/vvxkgBWcVlkywuwq/logo/light.svg?fit=max\u0026auto=format\u0026n=vvxkgBWcVlkywuwq\u0026q=85\u0026s=03a6a8e98a87bf6c97e54c1bd77e3658\"}},{\"@type\":\"WebSite\",\"@id\":\"https://polza.ai/docs#website\",\"name\":\"Polza.ai\",\"url\":\"https://polza.ai/docs\",\"publisher\":{\"@id\":\"https://polza.ai/#organization\"}},{\"@type\":\"WebPage\",\"@id\":\"https://polza.ai/docs/api-reference/responses/create#webpage\",\"url\":\"https://polza.ai/docs/api-reference/responses/create\",\"name\":\"POST Responses\",\"description\":\"Responses API — OpenAI-совместимый формат запросов с tool calling и streaming\",\"dateModified\":\"2026-10-15T10:20:01.234Z\",\"isPartOf\":{\"@id\":\"https://polza.ai/docs#website\"},\"breadcrumb\":{\"@id\":\"https://polza.ai/docs/api-reference/responses/create#breadcrumb\"}},{\"@type\":\"BreadcrumbList\",\"@id\":\"https://polza.ai/docs/api-reference/responses/create#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Текстовая генерация\",\"item\":\"https://polza.ai/docs/api-reference/chat/completions\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"POST Responses\",\"item\":\"https://polza.ai/docs/api-reference/responses/create\"}]},{\"@type\":[\"TechArticle\",\"APIReference\"],\"@id\":\"https://polza.ai/docs/api-reference/responses/create#apireference\",\"headline\":\"POST Responses\",\"name\":\"POST Responses\",\"description\":\"Responses API — OpenAI-совместимый формат запросов с tool calling и streaming\",\"url\":\"https://polza.ai/docs/api-reference/responses/create\",\"mainEntityOfPage\":{\"@id\":\"https://polza.ai/docs/api-reference/responses/create#webpage\"},\"dateModified\":\"2026-10-15T10:20:01.234Z\",\"publisher\":{\"@id\":\"https://polza.ai/#organization\"},\"isPartOf\":{\"@id\":\"https://polza.ai/docs#website\"}}]}\u003c/script>\u003cscript data-mint-head type=\"application/ld+json\">{\"@context\":\"https://schema.org\",\"@type\":\"WebSite\",\"name\":\"Polza.ai\",\"publisher\":{\"@type\":\"Organization\",\"name\":\"Polza.ai\"},\"provider\":{\"@type\":\"Organization\",\"name\":\"Mintlify\",\"url\":\"https://mintlify.com\"}}\u003c/script>","agentPointerHref":"/docs/api-reference/responses/create.md","siteName":"Polza.ai","nav":{"global":{"languages":[{"language":"ru","default":true,"href":"/"}],"anchors":[{"anchor":"Модели","icon":"microchip","href":"https://polza.ai/models"},{"anchor":"Консоль","icon":"gauge","href":"https://polza.ai/dashboard"},{"anchor":"Обновления","icon":"clock-rotate-left","href":"/changelog"}]},"tabs":[{"tab":"Документация","pages":[{"title":"Документация","href":""}]},{"tab":"Руководства","pages":[{"title":"Руководства","href":"/gaidy/getting-started"}]},{"tab":"API Reference","groups":[{"group":"Обзор","pages":[{"title":"Введение в API","icon":"book","href":"/api-reference/introduction"}]},{"group":"Текстовая генерация","pages":[{"title":"POST Chat Completions","description":"Основной эндпоинт для генерации текста и диалогов","openapi":"POST /v1/chat/completions","icon":"message","href":"/api-reference/chat/completions"},{"title":"POST Responses","icon":"reply","openapi":"POST /v1/responses","href":"/api-reference/responses/create"}]},{"group":"Изображения","pages":[{"title":"POST Images Generations","description":"Генерация изображений (OpenAI-совместимый API)","icon":"image","openapi":"POST /v2/images/generations","href":"/api-reference/images/generations"}]},{"group":"Медиа","pages":[{"title":"POST Media","icon":"photo-film","openapi":"POST /v1/media","href":"/api-reference/media/create"},{"title":"GET Media Status","icon":"spinner","openapi":"GET /v1/media/{id}","href":"/api-reference/media/status"},{"title":"POST Media Operations","icon":"wand-magic-sparkles","openapi":"POST /v1/media/{id}/operations","href":"/api-reference/media/operations"}]},{"group":"Аудио","pages":[{"title":"POST Audio Transcriptions","icon":"microphone","openapi":"POST /v1/audio/transcriptions","href":"/api-reference/audio/transcriptions"},{"title":"POST Audio Speech","icon":"volume-high","openapi":"POST /v1/audio/speech","href":"/api-reference/audio/speech"}]},{"group":"Эмбеддинги","pages":[{"title":"POST Embeddings","icon":"vector-square","openapi":"POST /v1/embeddings","href":"/api-reference/embeddings/create"}]},{"group":"Классификация и оценка","pages":[{"title":"POST Systemone","icon":"scale-balanced","openapi":"POST /v1/systemone","href":"/api-reference/systemone/create"}]},{"group":"Модели","pages":[{"title":"GET Models","icon":"list","openapi":"GET /v1/models","href":"/api-reference/models/list"},{"title":"GET Models Catalog","icon":"table-cells","openapi":"GET /v1/models/catalog","href":"/api-reference/models/catalog"}]},{"group":"Хранилище","pages":[{"title":"Загрузить файл","icon":"upload","openapi":"POST /v1/storage/upload","href":"/api-reference/storage/upload"},{"title":"Список файлов","icon":"list","openapi":"GET /v1/storage/files","href":"/api-reference/storage/list-files"},{"title":"Информация о файле","icon":"file","openapi":"GET /v1/storage/files/{id}","href":"/api-reference/storage/get-file"},{"title":"Удалить файл","icon":"trash","openapi":"DELETE /v1/storage/files/{id}","href":"/api-reference/storage/delete-file"},{"title":"Сохранить файл навсегда","icon":"floppy-disk","openapi":"PATCH /v1/storage/files/{id}/keep","href":"/api-reference/storage/keep"},{"title":"Статистика хранилища","icon":"chart-pie","openapi":"GET /v1/storage/stats","href":"/api-reference/storage/stats"}]},{"group":"История","pages":[{"title":"История генераций","icon":"clock-rotate-left","href":"/api-reference/history/generations"}]},{"group":"Другое","pages":[{"title":"GET Balance (устарел)","openapi":"GET /v1/balance","icon":"wallet","deprecated":true,"href":"/api-reference/other/balance"},{"title":"GET Balance v2","openapi":"GET /v2/balance","icon":"wallet","href":"/api-reference/other/balance-v2"},{"title":"GET Key","openapi":"GET /v1/key","icon":"key","href":"/api-reference/other/key"}]}]}]},"basePath":"","title":"POST Responses - Polza.ai","deploymentId":"dpl_GdAzCmzmx9W4gre8gBQCspoLrBzA","buildId":"dpl_GdAzCmzmx9W4gre8gBQCspoLrBzA","dynamics":["c2aa737661","2b790eda92","b0f84f53ff","a9bb46feb3"],"chunks":["OpenApiReferenceProvider-D6BRPibu.js","snippetPresets-DsVotmIn.js","utils-JkySM0S9.js","style-to-object-BY3JEAdk.js","utils-2LVMUG-b.js","v4-DIgz8zy6.js","addUniqueKeysToSchema-Cu4GBcqW.js","conditional-requirements-CFM0id0Q.js","cloneDeep-E7nJO2ao.js","_Uint8Array-CrqfV1l9.js","isObject-FP1Yky1u.js","ApiExamples-BZGAm2ku.js","usePlaygroundInputsStore-CPGdvGcU.js","shallow-RUq8jv1c.js","isEqual-Biqx0dfZ.js","CodeSnippets-DRItjFNm.js","CodeSnippet-DCGpIA6_.js","use-playground-group-access-D3hf_5DD.js","Page-Bz_ZNFmj.js","api-description-markdown-4VF3VdSe.js","DynamicMarkdown-CG1SzpW8.js","SectionHeading-Qkn3p9WH.js","MethodPill-1rLYbtHF.js","getPastedJson-rsbWFJUH.js","Check2Icon-DYVgxsyH.js","axios-CsQoIw0U.js","Markdown-fnczw8FV.js","AssistantPageLink-BWJlpE1a.js","dist-DmLaGBKJ.js","lib-DMeTj1gb.js","lib-B8HbPgcC.js","katex-Dbtb6Wk7.js","html-void-elements-mCSPHezU.js","marked.esm-CZWythHk.js"]}