Получить список доступных моделей
curl --request GET \
--url https://polza.ai/api/v1/models \
--header 'accept-language: <accept-language>'import requests
url = "https://polza.ai/api/v1/models"
headers = {"accept-language": "<accept-language>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {'accept-language': '<accept-language>'}};
fetch('https://polza.ai/api/v1/models', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://polza.ai/api/v1/models",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"accept-language: <accept-language>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://polza.ai/api/v1/models"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("accept-language", "<accept-language>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://polza.ai/api/v1/models")
.header("accept-language", "<accept-language>")
.asString();require 'uri'
require 'net/http'
url = URI("https://polza.ai/api/v1/models")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["accept-language"] = '<accept-language>'
response = http.request(request)
puts response.read_body{
"object": "list",
"data": [
{
"id": "deepseek-r1",
"object": "model",
"owned_by": "polza-ai",
"name": "DeepSeek R1",
"type": "chat",
"is_fz152_compliant": false,
"stores_data_in_russia": false,
"created": 1765987078,
"architecture": {
"input_modalities": [
"text",
"image"
],
"output_modalities": [
"text"
],
"modality": "text+image->text",
"tokenizer": "GPT",
"instruct_type": "chatml"
},
"top_provider": {
"is_fz152_compliant": false,
"stores_data_in_russia": false,
"is_hosted_on_polza_infrastructure": false,
"is_moderated": true,
"pricing": {
"currency": "RUB",
"prompt_per_million": "15.50",
"completion_per_million": "62.00",
"request_per_thousand": {},
"image_input_per_million": {},
"image_output_per_million": {},
"audio_per_million": {},
"web_search_per_thousand": {},
"internal_reasoning_per_million": {},
"input_cache_read_per_million": {},
"input_cache_write_per_million": {},
"input_audio_cache_per_million": {},
"stt_per_minute": {},
"tts_per_million_characters": "1800.00000000",
"video_per_second": {},
"per_request": {},
"tiers": [
{
"conditions": [
"image_resolution=4K"
],
"cost_rub": "8.25"
}
],
"unitParam": "duration"
},
"name": "openrouter",
"icon_provider_slug": "openai",
"context_length": {},
"max_completion_tokens": {},
"supported_parameters": [
"<string>"
],
"default_parameters": {
"temperature": {},
"top_p": {},
"frequency_penalty": {}
},
"per_request_limits": {
"prompt_tokens": {},
"completion_tokens": {}
},
"parameters": {
"prompt": {
"required": true,
"description": "<string>",
"max_length": 123,
"min": 123,
"max": 123,
"default": {},
"values": [
"<string>"
],
"auto_value": -1
},
"aspect_ratio": {
"required": true,
"description": "<string>",
"max_length": 123,
"min": 123,
"max": 123,
"default": {},
"values": [
"<string>"
],
"auto_value": -1
},
"resolution": {
"required": true,
"description": "<string>",
"max_length": 123,
"min": 123,
"max": 123,
"default": {},
"values": [
"<string>"
],
"auto_value": -1
},
"image_resolution": {
"required": true,
"description": "<string>",
"max_length": 123,
"min": 123,
"max": 123,
"default": {},
"values": [
"<string>"
],
"auto_value": -1
},
"duration": {
"required": true,
"description": "<string>",
"max_length": 123,
"min": 123,
"max": 123,
"default": {},
"values": [
"<string>"
],
"auto_value": -1
},
"output_format": {
"required": true,
"description": "<string>",
"max_length": 123,
"min": 123,
"max": 123,
"default": {},
"values": [
"<string>"
],
"auto_value": -1
},
"seeds": {
"required": true,
"description": "<string>",
"max_length": 123,
"min": 123,
"max": 123,
"default": {},
"values": [
"<string>"
],
"auto_value": -1
},
"watermark": {
"required": true,
"description": "<string>",
"max_length": 123,
"min": 123,
"max": 123,
"default": {},
"values": [
"<string>"
],
"auto_value": -1
},
"images": {
"required": true,
"description": "<string>",
"max_length": 123,
"min": 123,
"max": 123,
"default": {},
"values": [
"<string>"
],
"auto_value": -1
},
"videos": {
"required": true,
"description": "<string>",
"max_length": 123,
"min": 123,
"max": 123,
"default": {},
"values": [
"<string>"
],
"auto_value": -1
},
"quality": {
"required": true,
"description": "<string>",
"max_length": 123,
"min": 123,
"max": 123,
"default": {},
"values": [
"<string>"
],
"auto_value": -1
},
"voice": {
"required": true,
"description": "<string>",
"max_length": 123,
"min": 123,
"max": 123,
"default": {},
"values": [
"<string>"
],
"auto_value": -1
},
"speed": {
"required": true,
"description": "<string>",
"max_length": 123,
"min": 123,
"max": 123,
"default": {},
"values": [
"<string>"
],
"auto_value": -1
},
"stability": {
"required": true,
"description": "<string>",
"max_length": 123,
"min": 123,
"max": 123,
"default": {},
"values": [
"<string>"
],
"auto_value": -1
},
"similarity_boost": {
"required": true,
"description": "<string>",
"max_length": 123,
"min": 123,
"max": 123,
"default": {},
"values": [
"<string>"
],
"auto_value": -1
},
"style": {
"required": true,
"description": "<string>",
"max_length": 123,
"min": 123,
"max": 123,
"default": {},
"values": [
"<string>"
],
"auto_value": -1
},
"timestamps": {
"required": true,
"description": "<string>",
"max_length": 123,
"min": 123,
"max": 123,
"default": {},
"values": [
"<string>"
],
"auto_value": -1
},
"previous_text": {
"required": true,
"description": "<string>",
"max_length": 123,
"min": 123,
"max": 123,
"default": {},
"values": [
"<string>"
],
"auto_value": -1
},
"next_text": {
"required": true,
"description": "<string>",
"max_length": 123,
"min": 123,
"max": 123,
"default": {},
"values": [
"<string>"
],
"auto_value": -1
},
"language_code": {
"required": true,
"description": "<string>",
"max_length": 123,
"min": 123,
"max": 123,
"default": {},
"values": [
"<string>"
],
"auto_value": -1
}
}
},
"endpoints": [
"/v1/chat/completions"
],
"short_description": "Мощная модель для генерации текста",
"icon_provider_slug": "openai",
"task_tags": [
"чат",
"код"
],
"context_length": 1000000,
"max_completion_tokens": 131072,
"providers": [
{
"name": "OpenRouter",
"is_fz152_compliant": false,
"stores_data_in_russia": false,
"is_hosted_on_polza_infrastructure": false,
"is_moderated": true,
"pricing": {
"currency": "RUB",
"prompt_per_million": "15.50",
"completion_per_million": "62.00",
"request_per_thousand": {},
"image_input_per_million": {},
"image_output_per_million": {},
"audio_per_million": {},
"web_search_per_thousand": {},
"internal_reasoning_per_million": {},
"input_cache_read_per_million": {},
"input_cache_write_per_million": {},
"input_audio_cache_per_million": {},
"stt_per_minute": {},
"tts_per_million_characters": "1800.00000000",
"video_per_second": {},
"per_request": {},
"tiers": [
{
"conditions": [
"image_resolution=4K"
],
"cost_rub": "8.25"
}
],
"unitParam": "duration"
},
"supports_native_web_search": true,
"icon_provider_slug": "openai",
"context_length": {},
"max_completion_tokens": {},
"supported_parameters": [
"<string>"
],
"default_parameters": {
"temperature": {},
"top_p": {},
"frequency_penalty": {}
},
"per_request_limits": {
"prompt_tokens": {},
"completion_tokens": {}
},
"parameters": {
"prompt": {
"required": true,
"description": "<string>",
"max_length": 123,
"min": 123,
"max": 123,
"default": {},
"values": [
"<string>"
],
"auto_value": -1
},
"aspect_ratio": {
"required": true,
"description": "<string>",
"max_length": 123,
"min": 123,
"max": 123,
"default": {},
"values": [
"<string>"
],
"auto_value": -1
},
"resolution": {
"required": true,
"description": "<string>",
"max_length": 123,
"min": 123,
"max": 123,
"default": {},
"values": [
"<string>"
],
"auto_value": -1
},
"image_resolution": {
"required": true,
"description": "<string>",
"max_length": 123,
"min": 123,
"max": 123,
"default": {},
"values": [
"<string>"
],
"auto_value": -1
},
"duration": {
"required": true,
"description": "<string>",
"max_length": 123,
"min": 123,
"max": 123,
"default": {},
"values": [
"<string>"
],
"auto_value": -1
},
"output_format": {
"required": true,
"description": "<string>",
"max_length": 123,
"min": 123,
"max": 123,
"default": {},
"values": [
"<string>"
],
"auto_value": -1
},
"seeds": {
"required": true,
"description": "<string>",
"max_length": 123,
"min": 123,
"max": 123,
"default": {},
"values": [
"<string>"
],
"auto_value": -1
},
"watermark": {
"required": true,
"description": "<string>",
"max_length": 123,
"min": 123,
"max": 123,
"default": {},
"values": [
"<string>"
],
"auto_value": -1
},
"images": {
"required": true,
"description": "<string>",
"max_length": 123,
"min": 123,
"max": 123,
"default": {},
"values": [
"<string>"
],
"auto_value": -1
},
"videos": {
"required": true,
"description": "<string>",
"max_length": 123,
"min": 123,
"max": 123,
"default": {},
"values": [
"<string>"
],
"auto_value": -1
},
"quality": {
"required": true,
"description": "<string>",
"max_length": 123,
"min": 123,
"max": 123,
"default": {},
"values": [
"<string>"
],
"auto_value": -1
},
"voice": {
"required": true,
"description": "<string>",
"max_length": 123,
"min": 123,
"max": 123,
"default": {},
"values": [
"<string>"
],
"auto_value": -1
},
"speed": {
"required": true,
"description": "<string>",
"max_length": 123,
"min": 123,
"max": 123,
"default": {},
"values": [
"<string>"
],
"auto_value": -1
},
"stability": {
"required": true,
"description": "<string>",
"max_length": 123,
"min": 123,
"max": 123,
"default": {},
"values": [
"<string>"
],
"auto_value": -1
},
"similarity_boost": {
"required": true,
"description": "<string>",
"max_length": 123,
"min": 123,
"max": 123,
"default": {},
"values": [
"<string>"
],
"auto_value": -1
},
"style": {
"required": true,
"description": "<string>",
"max_length": 123,
"min": 123,
"max": 123,
"default": {},
"values": [
"<string>"
],
"auto_value": -1
},
"timestamps": {
"required": true,
"description": "<string>",
"max_length": 123,
"min": 123,
"max": 123,
"default": {},
"values": [
"<string>"
],
"auto_value": -1
},
"previous_text": {
"required": true,
"description": "<string>",
"max_length": 123,
"min": 123,
"max": 123,
"default": {},
"values": [
"<string>"
],
"auto_value": -1
},
"next_text": {
"required": true,
"description": "<string>",
"max_length": 123,
"min": 123,
"max": 123,
"default": {},
"values": [
"<string>"
],
"auto_value": -1
},
"language_code": {
"required": true,
"description": "<string>",
"max_length": 123,
"min": 123,
"max": 123,
"default": {},
"values": [
"<string>"
],
"auto_value": -1
}
}
}
],
"parameters": {
"prompt": {
"required": true,
"description": "<string>",
"max_length": 123,
"min": 123,
"max": 123,
"default": {},
"values": [
"<string>"
],
"auto_value": -1
},
"aspect_ratio": {
"required": true,
"description": "<string>",
"max_length": 123,
"min": 123,
"max": 123,
"default": {},
"values": [
"<string>"
],
"auto_value": -1
},
"resolution": {
"required": true,
"description": "<string>",
"max_length": 123,
"min": 123,
"max": 123,
"default": {},
"values": [
"<string>"
],
"auto_value": -1
},
"image_resolution": {
"required": true,
"description": "<string>",
"max_length": 123,
"min": 123,
"max": 123,
"default": {},
"values": [
"<string>"
],
"auto_value": -1
},
"duration": {
"required": true,
"description": "<string>",
"max_length": 123,
"min": 123,
"max": 123,
"default": {},
"values": [
"<string>"
],
"auto_value": -1
},
"output_format": {
"required": true,
"description": "<string>",
"max_length": 123,
"min": 123,
"max": 123,
"default": {},
"values": [
"<string>"
],
"auto_value": -1
},
"seeds": {
"required": true,
"description": "<string>",
"max_length": 123,
"min": 123,
"max": 123,
"default": {},
"values": [
"<string>"
],
"auto_value": -1
},
"watermark": {
"required": true,
"description": "<string>",
"max_length": 123,
"min": 123,
"max": 123,
"default": {},
"values": [
"<string>"
],
"auto_value": -1
},
"images": {
"required": true,
"description": "<string>",
"max_length": 123,
"min": 123,
"max": 123,
"default": {},
"values": [
"<string>"
],
"auto_value": -1
},
"videos": {
"required": true,
"description": "<string>",
"max_length": 123,
"min": 123,
"max": 123,
"default": {},
"values": [
"<string>"
],
"auto_value": -1
},
"quality": {
"required": true,
"description": "<string>",
"max_length": 123,
"min": 123,
"max": 123,
"default": {},
"values": [
"<string>"
],
"auto_value": -1
},
"voice": {
"required": true,
"description": "<string>",
"max_length": 123,
"min": 123,
"max": 123,
"default": {},
"values": [
"<string>"
],
"auto_value": -1
},
"speed": {
"required": true,
"description": "<string>",
"max_length": 123,
"min": 123,
"max": 123,
"default": {},
"values": [
"<string>"
],
"auto_value": -1
},
"stability": {
"required": true,
"description": "<string>",
"max_length": 123,
"min": 123,
"max": 123,
"default": {},
"values": [
"<string>"
],
"auto_value": -1
},
"similarity_boost": {
"required": true,
"description": "<string>",
"max_length": 123,
"min": 123,
"max": 123,
"default": {},
"values": [
"<string>"
],
"auto_value": -1
},
"style": {
"required": true,
"description": "<string>",
"max_length": 123,
"min": 123,
"max": 123,
"default": {},
"values": [
"<string>"
],
"auto_value": -1
},
"timestamps": {
"required": true,
"description": "<string>",
"max_length": 123,
"min": 123,
"max": 123,
"default": {},
"values": [
"<string>"
],
"auto_value": -1
},
"previous_text": {
"required": true,
"description": "<string>",
"max_length": 123,
"min": 123,
"max": 123,
"default": {},
"values": [
"<string>"
],
"auto_value": -1
},
"next_text": {
"required": true,
"description": "<string>",
"max_length": 123,
"min": 123,
"max": 123,
"default": {},
"values": [
"<string>"
],
"auto_value": -1
},
"language_code": {
"required": true,
"description": "<string>",
"max_length": 123,
"min": 123,
"max": 123,
"default": {},
"values": [
"<string>"
],
"auto_value": -1
}
},
"operations": [
{
"id": "extend",
"name": "Продление видео",
"async": true,
"description": "<string>",
"pricing": {
"currency": "RUB",
"prompt_per_million": "15.50",
"completion_per_million": "62.00",
"request_per_thousand": {},
"image_input_per_million": {},
"image_output_per_million": {},
"audio_per_million": {},
"web_search_per_thousand": {},
"internal_reasoning_per_million": {},
"input_cache_read_per_million": {},
"input_cache_write_per_million": {},
"input_audio_cache_per_million": {},
"stt_per_minute": {},
"tts_per_million_characters": "1800.00000000",
"video_per_second": {},
"per_request": {},
"tiers": [
{
"conditions": [
"image_resolution=4K"
],
"cost_rub": "8.25"
}
],
"unitParam": "duration"
},
"parameters": {
"prompt": {
"required": true,
"description": "<string>",
"max_length": 123,
"min": 123,
"max": 123,
"default": {},
"values": [
"<string>"
],
"auto_value": -1
},
"aspect_ratio": {
"required": true,
"description": "<string>",
"max_length": 123,
"min": 123,
"max": 123,
"default": {},
"values": [
"<string>"
],
"auto_value": -1
},
"resolution": {
"required": true,
"description": "<string>",
"max_length": 123,
"min": 123,
"max": 123,
"default": {},
"values": [
"<string>"
],
"auto_value": -1
},
"image_resolution": {
"required": true,
"description": "<string>",
"max_length": 123,
"min": 123,
"max": 123,
"default": {},
"values": [
"<string>"
],
"auto_value": -1
},
"duration": {
"required": true,
"description": "<string>",
"max_length": 123,
"min": 123,
"max": 123,
"default": {},
"values": [
"<string>"
],
"auto_value": -1
},
"output_format": {
"required": true,
"description": "<string>",
"max_length": 123,
"min": 123,
"max": 123,
"default": {},
"values": [
"<string>"
],
"auto_value": -1
},
"seeds": {
"required": true,
"description": "<string>",
"max_length": 123,
"min": 123,
"max": 123,
"default": {},
"values": [
"<string>"
],
"auto_value": -1
},
"watermark": {
"required": true,
"description": "<string>",
"max_length": 123,
"min": 123,
"max": 123,
"default": {},
"values": [
"<string>"
],
"auto_value": -1
},
"images": {
"required": true,
"description": "<string>",
"max_length": 123,
"min": 123,
"max": 123,
"default": {},
"values": [
"<string>"
],
"auto_value": -1
},
"videos": {
"required": true,
"description": "<string>",
"max_length": 123,
"min": 123,
"max": 123,
"default": {},
"values": [
"<string>"
],
"auto_value": -1
},
"quality": {
"required": true,
"description": "<string>",
"max_length": 123,
"min": 123,
"max": 123,
"default": {},
"values": [
"<string>"
],
"auto_value": -1
},
"voice": {
"required": true,
"description": "<string>",
"max_length": 123,
"min": 123,
"max": 123,
"default": {},
"values": [
"<string>"
],
"auto_value": -1
},
"speed": {
"required": true,
"description": "<string>",
"max_length": 123,
"min": 123,
"max": 123,
"default": {},
"values": [
"<string>"
],
"auto_value": -1
},
"stability": {
"required": true,
"description": "<string>",
"max_length": 123,
"min": 123,
"max": 123,
"default": {},
"values": [
"<string>"
],
"auto_value": -1
},
"similarity_boost": {
"required": true,
"description": "<string>",
"max_length": 123,
"min": 123,
"max": 123,
"default": {},
"values": [
"<string>"
],
"auto_value": -1
},
"style": {
"required": true,
"description": "<string>",
"max_length": 123,
"min": 123,
"max": 123,
"default": {},
"values": [
"<string>"
],
"auto_value": -1
},
"timestamps": {
"required": true,
"description": "<string>",
"max_length": 123,
"min": 123,
"max": 123,
"default": {},
"values": [
"<string>"
],
"auto_value": -1
},
"previous_text": {
"required": true,
"description": "<string>",
"max_length": 123,
"min": 123,
"max": 123,
"default": {},
"values": [
"<string>"
],
"auto_value": -1
},
"next_text": {
"required": true,
"description": "<string>",
"max_length": 123,
"min": 123,
"max": 123,
"default": {},
"values": [
"<string>"
],
"auto_value": -1
},
"language_code": {
"required": true,
"description": "<string>",
"max_length": 123,
"min": 123,
"max": 123,
"default": {},
"values": [
"<string>"
],
"auto_value": -1
}
}
}
]
}
]
}{
"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"
}Модели
GET Models
Получение списка доступных моделей
GET
/
v1
/
models
Получить список доступных моделей
curl --request GET \
--url https://polza.ai/api/v1/models \
--header 'accept-language: <accept-language>'import requests
url = "https://polza.ai/api/v1/models"
headers = {"accept-language": "<accept-language>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {'accept-language': '<accept-language>'}};
fetch('https://polza.ai/api/v1/models', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://polza.ai/api/v1/models",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"accept-language: <accept-language>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://polza.ai/api/v1/models"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("accept-language", "<accept-language>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://polza.ai/api/v1/models")
.header("accept-language", "<accept-language>")
.asString();require 'uri'
require 'net/http'
url = URI("https://polza.ai/api/v1/models")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["accept-language"] = '<accept-language>'
response = http.request(request)
puts response.read_body{
"object": "list",
"data": [
{
"id": "deepseek-r1",
"object": "model",
"owned_by": "polza-ai",
"name": "DeepSeek R1",
"type": "chat",
"is_fz152_compliant": false,
"stores_data_in_russia": false,
"created": 1765987078,
"architecture": {
"input_modalities": [
"text",
"image"
],
"output_modalities": [
"text"
],
"modality": "text+image->text",
"tokenizer": "GPT",
"instruct_type": "chatml"
},
"top_provider": {
"is_fz152_compliant": false,
"stores_data_in_russia": false,
"is_hosted_on_polza_infrastructure": false,
"is_moderated": true,
"pricing": {
"currency": "RUB",
"prompt_per_million": "15.50",
"completion_per_million": "62.00",
"request_per_thousand": {},
"image_input_per_million": {},
"image_output_per_million": {},
"audio_per_million": {},
"web_search_per_thousand": {},
"internal_reasoning_per_million": {},
"input_cache_read_per_million": {},
"input_cache_write_per_million": {},
"input_audio_cache_per_million": {},
"stt_per_minute": {},
"tts_per_million_characters": "1800.00000000",
"video_per_second": {},
"per_request": {},
"tiers": [
{
"conditions": [
"image_resolution=4K"
],
"cost_rub": "8.25"
}
],
"unitParam": "duration"
},
"name": "openrouter",
"icon_provider_slug": "openai",
"context_length": {},
"max_completion_tokens": {},
"supported_parameters": [
"<string>"
],
"default_parameters": {
"temperature": {},
"top_p": {},
"frequency_penalty": {}
},
"per_request_limits": {
"prompt_tokens": {},
"completion_tokens": {}
},
"parameters": {
"prompt": {
"required": true,
"description": "<string>",
"max_length": 123,
"min": 123,
"max": 123,
"default": {},
"values": [
"<string>"
],
"auto_value": -1
},
"aspect_ratio": {
"required": true,
"description": "<string>",
"max_length": 123,
"min": 123,
"max": 123,
"default": {},
"values": [
"<string>"
],
"auto_value": -1
},
"resolution": {
"required": true,
"description": "<string>",
"max_length": 123,
"min": 123,
"max": 123,
"default": {},
"values": [
"<string>"
],
"auto_value": -1
},
"image_resolution": {
"required": true,
"description": "<string>",
"max_length": 123,
"min": 123,
"max": 123,
"default": {},
"values": [
"<string>"
],
"auto_value": -1
},
"duration": {
"required": true,
"description": "<string>",
"max_length": 123,
"min": 123,
"max": 123,
"default": {},
"values": [
"<string>"
],
"auto_value": -1
},
"output_format": {
"required": true,
"description": "<string>",
"max_length": 123,
"min": 123,
"max": 123,
"default": {},
"values": [
"<string>"
],
"auto_value": -1
},
"seeds": {
"required": true,
"description": "<string>",
"max_length": 123,
"min": 123,
"max": 123,
"default": {},
"values": [
"<string>"
],
"auto_value": -1
},
"watermark": {
"required": true,
"description": "<string>",
"max_length": 123,
"min": 123,
"max": 123,
"default": {},
"values": [
"<string>"
],
"auto_value": -1
},
"images": {
"required": true,
"description": "<string>",
"max_length": 123,
"min": 123,
"max": 123,
"default": {},
"values": [
"<string>"
],
"auto_value": -1
},
"videos": {
"required": true,
"description": "<string>",
"max_length": 123,
"min": 123,
"max": 123,
"default": {},
"values": [
"<string>"
],
"auto_value": -1
},
"quality": {
"required": true,
"description": "<string>",
"max_length": 123,
"min": 123,
"max": 123,
"default": {},
"values": [
"<string>"
],
"auto_value": -1
},
"voice": {
"required": true,
"description": "<string>",
"max_length": 123,
"min": 123,
"max": 123,
"default": {},
"values": [
"<string>"
],
"auto_value": -1
},
"speed": {
"required": true,
"description": "<string>",
"max_length": 123,
"min": 123,
"max": 123,
"default": {},
"values": [
"<string>"
],
"auto_value": -1
},
"stability": {
"required": true,
"description": "<string>",
"max_length": 123,
"min": 123,
"max": 123,
"default": {},
"values": [
"<string>"
],
"auto_value": -1
},
"similarity_boost": {
"required": true,
"description": "<string>",
"max_length": 123,
"min": 123,
"max": 123,
"default": {},
"values": [
"<string>"
],
"auto_value": -1
},
"style": {
"required": true,
"description": "<string>",
"max_length": 123,
"min": 123,
"max": 123,
"default": {},
"values": [
"<string>"
],
"auto_value": -1
},
"timestamps": {
"required": true,
"description": "<string>",
"max_length": 123,
"min": 123,
"max": 123,
"default": {},
"values": [
"<string>"
],
"auto_value": -1
},
"previous_text": {
"required": true,
"description": "<string>",
"max_length": 123,
"min": 123,
"max": 123,
"default": {},
"values": [
"<string>"
],
"auto_value": -1
},
"next_text": {
"required": true,
"description": "<string>",
"max_length": 123,
"min": 123,
"max": 123,
"default": {},
"values": [
"<string>"
],
"auto_value": -1
},
"language_code": {
"required": true,
"description": "<string>",
"max_length": 123,
"min": 123,
"max": 123,
"default": {},
"values": [
"<string>"
],
"auto_value": -1
}
}
},
"endpoints": [
"/v1/chat/completions"
],
"short_description": "Мощная модель для генерации текста",
"icon_provider_slug": "openai",
"task_tags": [
"чат",
"код"
],
"context_length": 1000000,
"max_completion_tokens": 131072,
"providers": [
{
"name": "OpenRouter",
"is_fz152_compliant": false,
"stores_data_in_russia": false,
"is_hosted_on_polza_infrastructure": false,
"is_moderated": true,
"pricing": {
"currency": "RUB",
"prompt_per_million": "15.50",
"completion_per_million": "62.00",
"request_per_thousand": {},
"image_input_per_million": {},
"image_output_per_million": {},
"audio_per_million": {},
"web_search_per_thousand": {},
"internal_reasoning_per_million": {},
"input_cache_read_per_million": {},
"input_cache_write_per_million": {},
"input_audio_cache_per_million": {},
"stt_per_minute": {},
"tts_per_million_characters": "1800.00000000",
"video_per_second": {},
"per_request": {},
"tiers": [
{
"conditions": [
"image_resolution=4K"
],
"cost_rub": "8.25"
}
],
"unitParam": "duration"
},
"supports_native_web_search": true,
"icon_provider_slug": "openai",
"context_length": {},
"max_completion_tokens": {},
"supported_parameters": [
"<string>"
],
"default_parameters": {
"temperature": {},
"top_p": {},
"frequency_penalty": {}
},
"per_request_limits": {
"prompt_tokens": {},
"completion_tokens": {}
},
"parameters": {
"prompt": {
"required": true,
"description": "<string>",
"max_length": 123,
"min": 123,
"max": 123,
"default": {},
"values": [
"<string>"
],
"auto_value": -1
},
"aspect_ratio": {
"required": true,
"description": "<string>",
"max_length": 123,
"min": 123,
"max": 123,
"default": {},
"values": [
"<string>"
],
"auto_value": -1
},
"resolution": {
"required": true,
"description": "<string>",
"max_length": 123,
"min": 123,
"max": 123,
"default": {},
"values": [
"<string>"
],
"auto_value": -1
},
"image_resolution": {
"required": true,
"description": "<string>",
"max_length": 123,
"min": 123,
"max": 123,
"default": {},
"values": [
"<string>"
],
"auto_value": -1
},
"duration": {
"required": true,
"description": "<string>",
"max_length": 123,
"min": 123,
"max": 123,
"default": {},
"values": [
"<string>"
],
"auto_value": -1
},
"output_format": {
"required": true,
"description": "<string>",
"max_length": 123,
"min": 123,
"max": 123,
"default": {},
"values": [
"<string>"
],
"auto_value": -1
},
"seeds": {
"required": true,
"description": "<string>",
"max_length": 123,
"min": 123,
"max": 123,
"default": {},
"values": [
"<string>"
],
"auto_value": -1
},
"watermark": {
"required": true,
"description": "<string>",
"max_length": 123,
"min": 123,
"max": 123,
"default": {},
"values": [
"<string>"
],
"auto_value": -1
},
"images": {
"required": true,
"description": "<string>",
"max_length": 123,
"min": 123,
"max": 123,
"default": {},
"values": [
"<string>"
],
"auto_value": -1
},
"videos": {
"required": true,
"description": "<string>",
"max_length": 123,
"min": 123,
"max": 123,
"default": {},
"values": [
"<string>"
],
"auto_value": -1
},
"quality": {
"required": true,
"description": "<string>",
"max_length": 123,
"min": 123,
"max": 123,
"default": {},
"values": [
"<string>"
],
"auto_value": -1
},
"voice": {
"required": true,
"description": "<string>",
"max_length": 123,
"min": 123,
"max": 123,
"default": {},
"values": [
"<string>"
],
"auto_value": -1
},
"speed": {
"required": true,
"description": "<string>",
"max_length": 123,
"min": 123,
"max": 123,
"default": {},
"values": [
"<string>"
],
"auto_value": -1
},
"stability": {
"required": true,
"description": "<string>",
"max_length": 123,
"min": 123,
"max": 123,
"default": {},
"values": [
"<string>"
],
"auto_value": -1
},
"similarity_boost": {
"required": true,
"description": "<string>",
"max_length": 123,
"min": 123,
"max": 123,
"default": {},
"values": [
"<string>"
],
"auto_value": -1
},
"style": {
"required": true,
"description": "<string>",
"max_length": 123,
"min": 123,
"max": 123,
"default": {},
"values": [
"<string>"
],
"auto_value": -1
},
"timestamps": {
"required": true,
"description": "<string>",
"max_length": 123,
"min": 123,
"max": 123,
"default": {},
"values": [
"<string>"
],
"auto_value": -1
},
"previous_text": {
"required": true,
"description": "<string>",
"max_length": 123,
"min": 123,
"max": 123,
"default": {},
"values": [
"<string>"
],
"auto_value": -1
},
"next_text": {
"required": true,
"description": "<string>",
"max_length": 123,
"min": 123,
"max": 123,
"default": {},
"values": [
"<string>"
],
"auto_value": -1
},
"language_code": {
"required": true,
"description": "<string>",
"max_length": 123,
"min": 123,
"max": 123,
"default": {},
"values": [
"<string>"
],
"auto_value": -1
}
}
}
],
"parameters": {
"prompt": {
"required": true,
"description": "<string>",
"max_length": 123,
"min": 123,
"max": 123,
"default": {},
"values": [
"<string>"
],
"auto_value": -1
},
"aspect_ratio": {
"required": true,
"description": "<string>",
"max_length": 123,
"min": 123,
"max": 123,
"default": {},
"values": [
"<string>"
],
"auto_value": -1
},
"resolution": {
"required": true,
"description": "<string>",
"max_length": 123,
"min": 123,
"max": 123,
"default": {},
"values": [
"<string>"
],
"auto_value": -1
},
"image_resolution": {
"required": true,
"description": "<string>",
"max_length": 123,
"min": 123,
"max": 123,
"default": {},
"values": [
"<string>"
],
"auto_value": -1
},
"duration": {
"required": true,
"description": "<string>",
"max_length": 123,
"min": 123,
"max": 123,
"default": {},
"values": [
"<string>"
],
"auto_value": -1
},
"output_format": {
"required": true,
"description": "<string>",
"max_length": 123,
"min": 123,
"max": 123,
"default": {},
"values": [
"<string>"
],
"auto_value": -1
},
"seeds": {
"required": true,
"description": "<string>",
"max_length": 123,
"min": 123,
"max": 123,
"default": {},
"values": [
"<string>"
],
"auto_value": -1
},
"watermark": {
"required": true,
"description": "<string>",
"max_length": 123,
"min": 123,
"max": 123,
"default": {},
"values": [
"<string>"
],
"auto_value": -1
},
"images": {
"required": true,
"description": "<string>",
"max_length": 123,
"min": 123,
"max": 123,
"default": {},
"values": [
"<string>"
],
"auto_value": -1
},
"videos": {
"required": true,
"description": "<string>",
"max_length": 123,
"min": 123,
"max": 123,
"default": {},
"values": [
"<string>"
],
"auto_value": -1
},
"quality": {
"required": true,
"description": "<string>",
"max_length": 123,
"min": 123,
"max": 123,
"default": {},
"values": [
"<string>"
],
"auto_value": -1
},
"voice": {
"required": true,
"description": "<string>",
"max_length": 123,
"min": 123,
"max": 123,
"default": {},
"values": [
"<string>"
],
"auto_value": -1
},
"speed": {
"required": true,
"description": "<string>",
"max_length": 123,
"min": 123,
"max": 123,
"default": {},
"values": [
"<string>"
],
"auto_value": -1
},
"stability": {
"required": true,
"description": "<string>",
"max_length": 123,
"min": 123,
"max": 123,
"default": {},
"values": [
"<string>"
],
"auto_value": -1
},
"similarity_boost": {
"required": true,
"description": "<string>",
"max_length": 123,
"min": 123,
"max": 123,
"default": {},
"values": [
"<string>"
],
"auto_value": -1
},
"style": {
"required": true,
"description": "<string>",
"max_length": 123,
"min": 123,
"max": 123,
"default": {},
"values": [
"<string>"
],
"auto_value": -1
},
"timestamps": {
"required": true,
"description": "<string>",
"max_length": 123,
"min": 123,
"max": 123,
"default": {},
"values": [
"<string>"
],
"auto_value": -1
},
"previous_text": {
"required": true,
"description": "<string>",
"max_length": 123,
"min": 123,
"max": 123,
"default": {},
"values": [
"<string>"
],
"auto_value": -1
},
"next_text": {
"required": true,
"description": "<string>",
"max_length": 123,
"min": 123,
"max": 123,
"default": {},
"values": [
"<string>"
],
"auto_value": -1
},
"language_code": {
"required": true,
"description": "<string>",
"max_length": 123,
"min": 123,
"max": 123,
"default": {},
"values": [
"<string>"
],
"auto_value": -1
}
},
"operations": [
{
"id": "extend",
"name": "Продление видео",
"async": true,
"description": "<string>",
"pricing": {
"currency": "RUB",
"prompt_per_million": "15.50",
"completion_per_million": "62.00",
"request_per_thousand": {},
"image_input_per_million": {},
"image_output_per_million": {},
"audio_per_million": {},
"web_search_per_thousand": {},
"internal_reasoning_per_million": {},
"input_cache_read_per_million": {},
"input_cache_write_per_million": {},
"input_audio_cache_per_million": {},
"stt_per_minute": {},
"tts_per_million_characters": "1800.00000000",
"video_per_second": {},
"per_request": {},
"tiers": [
{
"conditions": [
"image_resolution=4K"
],
"cost_rub": "8.25"
}
],
"unitParam": "duration"
},
"parameters": {
"prompt": {
"required": true,
"description": "<string>",
"max_length": 123,
"min": 123,
"max": 123,
"default": {},
"values": [
"<string>"
],
"auto_value": -1
},
"aspect_ratio": {
"required": true,
"description": "<string>",
"max_length": 123,
"min": 123,
"max": 123,
"default": {},
"values": [
"<string>"
],
"auto_value": -1
},
"resolution": {
"required": true,
"description": "<string>",
"max_length": 123,
"min": 123,
"max": 123,
"default": {},
"values": [
"<string>"
],
"auto_value": -1
},
"image_resolution": {
"required": true,
"description": "<string>",
"max_length": 123,
"min": 123,
"max": 123,
"default": {},
"values": [
"<string>"
],
"auto_value": -1
},
"duration": {
"required": true,
"description": "<string>",
"max_length": 123,
"min": 123,
"max": 123,
"default": {},
"values": [
"<string>"
],
"auto_value": -1
},
"output_format": {
"required": true,
"description": "<string>",
"max_length": 123,
"min": 123,
"max": 123,
"default": {},
"values": [
"<string>"
],
"auto_value": -1
},
"seeds": {
"required": true,
"description": "<string>",
"max_length": 123,
"min": 123,
"max": 123,
"default": {},
"values": [
"<string>"
],
"auto_value": -1
},
"watermark": {
"required": true,
"description": "<string>",
"max_length": 123,
"min": 123,
"max": 123,
"default": {},
"values": [
"<string>"
],
"auto_value": -1
},
"images": {
"required": true,
"description": "<string>",
"max_length": 123,
"min": 123,
"max": 123,
"default": {},
"values": [
"<string>"
],
"auto_value": -1
},
"videos": {
"required": true,
"description": "<string>",
"max_length": 123,
"min": 123,
"max": 123,
"default": {},
"values": [
"<string>"
],
"auto_value": -1
},
"quality": {
"required": true,
"description": "<string>",
"max_length": 123,
"min": 123,
"max": 123,
"default": {},
"values": [
"<string>"
],
"auto_value": -1
},
"voice": {
"required": true,
"description": "<string>",
"max_length": 123,
"min": 123,
"max": 123,
"default": {},
"values": [
"<string>"
],
"auto_value": -1
},
"speed": {
"required": true,
"description": "<string>",
"max_length": 123,
"min": 123,
"max": 123,
"default": {},
"values": [
"<string>"
],
"auto_value": -1
},
"stability": {
"required": true,
"description": "<string>",
"max_length": 123,
"min": 123,
"max": 123,
"default": {},
"values": [
"<string>"
],
"auto_value": -1
},
"similarity_boost": {
"required": true,
"description": "<string>",
"max_length": 123,
"min": 123,
"max": 123,
"default": {},
"values": [
"<string>"
],
"auto_value": -1
},
"style": {
"required": true,
"description": "<string>",
"max_length": 123,
"min": 123,
"max": 123,
"default": {},
"values": [
"<string>"
],
"auto_value": -1
},
"timestamps": {
"required": true,
"description": "<string>",
"max_length": 123,
"min": 123,
"max": 123,
"default": {},
"values": [
"<string>"
],
"auto_value": -1
},
"previous_text": {
"required": true,
"description": "<string>",
"max_length": 123,
"min": 123,
"max": 123,
"default": {},
"values": [
"<string>"
],
"auto_value": -1
},
"next_text": {
"required": true,
"description": "<string>",
"max_length": 123,
"min": 123,
"max": 123,
"default": {},
"values": [
"<string>"
],
"auto_value": -1
},
"language_code": {
"required": true,
"description": "<string>",
"max_length": 123,
"min": 123,
"max": 123,
"default": {},
"values": [
"<string>"
],
"auto_value": -1
}
}
}
]
}
]
}{
"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"
}Этот эндпоинт не требует аутентификации и доступен всем пользователям.
Параметры запроса
| Параметр | Тип | Описание |
|---|---|---|
type | string | Фильтр по типу: chat, image, embedding, video, audio |
include_providers | boolean | Включить массив провайдеров для каждой модели |
Примеры
curl "https://polza.ai/api/v1/models"
curl "https://polza.ai/api/v1/models?type=chat"
curl "https://polza.ai/api/v1/models?type=chat&include_providers=true"
from openai import OpenAI
client = OpenAI(
base_url="https://polza.ai/api/v1",
api_key="YOUR_API_KEY"
)
models = client.models.list()
for model in models.data:
print(model.id)
Поля модели
Основные
| Поле | Описание |
|---|---|
id | Уникальный идентификатор для API |
name | Человекочитаемое название |
context_length | Максимальная длина контекста в токенах |
created | Unix timestamp создания |
Архитектура
| Поле | Описание |
|---|---|
input_modalities | Поддерживаемые входные типы: text, image, audio, video |
output_modalities | Поддерживаемые выходные типы: text, image, audio, embeddings |
tokenizer | Используемый токенизатор |
instruct_type | Тип инструкций |
Ценообразование (в рублях за токен)
| Поле | Описание |
|---|---|
prompt | Входные токены |
completion | Выходные токены |
image | Обработка изображений |
internal_reasoning | Reasoning токены |
input_cache_read | Чтение из кеша |
input_cache_write | Запись в кеш |
Примеры фильтрации
Мультимодальные модели
multimodal = [
m for m in models
if 'image' in m.get('architecture', {}).get('input_modalities', [])
]
Модели с большим контекстом
large_context = [
m for m in models
if m.get('context_length', 0) > 100000
]
Модели конкретного провайдера
anthropic = [m for m in models if m['id'].startswith('anthropic/')]
google = [m for m in models if m['id'].startswith('google/')]
meta = [m for m in models if m['id'].startswith('meta-llama/')]
Использование ID моделей
ID модели напрямую используется в запросах:response = client.chat.completions.create(
model="anthropic/claude-3-5-sonnet",
messages=[{"role": "user", "content": "Привет!"}]
)
Заголовки
Параметры запроса
Фильтр по типу модели (chat, image, embedding и т.д.)
Включить массив провайдеров в ответ
Была ли эта страница полезной?