Получить каталог моделей с фильтрацией
curl --request GET \
--url https://polza.ai/api/v1/models/catalog \
--header 'accept-language: <accept-language>'import requests
url = "https://polza.ai/api/v1/models/catalog"
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/catalog', 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/catalog",
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/catalog"
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/catalog")
.header("accept-language", "<accept-language>")
.asString();require 'uri'
require 'net/http'
url = URI("https://polza.ai/api/v1/models/catalog")
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{
"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
}
}
}
]
}
],
"meta": {
"page": 1,
"limit": 20,
"total": 288,
"totalPages": 15,
"availableProviders": [
"anthropic",
"google",
"openai"
],
"availableTaskTags": [
"чат",
"код"
]
}
}{
"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 Catalog
Каталог моделей с фильтрацией и пагинацией
GET
/
v1
/
models
/
catalog
Получить каталог моделей с фильтрацией
curl --request GET \
--url https://polza.ai/api/v1/models/catalog \
--header 'accept-language: <accept-language>'import requests
url = "https://polza.ai/api/v1/models/catalog"
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/catalog', 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/catalog",
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/catalog"
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/catalog")
.header("accept-language", "<accept-language>")
.asString();require 'uri'
require 'net/http'
url = URI("https://polza.ai/api/v1/models/catalog")
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{
"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
}
}
}
]
}
],
"meta": {
"page": 1,
"limit": 20,
"total": 288,
"totalPages": 15,
"availableProviders": [
"anthropic",
"google",
"openai"
],
"availableTaskTags": [
"чат",
"код"
]
}
}{
"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"
}О каталоге моделей
Расширенный эндпоинт для получения каталога моделей с поддержкой поиска, фильтрации и пагинации.Параметры запроса
| Параметр | Тип | По умолчанию | Описание |
|---|---|---|---|
search | string | — | Поиск по названию модели |
type | string | — | Тип: chat, image, embedding, video, audio |
inputModalities | string[] | — | Входные модальности: text, image |
outputModalities | string[] | — | Выходные модальности: text, image |
providers | string[] | — | Фильтр по провайдерам |
contextLengthMin | number | — | Минимальная длина контекста |
contextLengthMax | number | — | Максимальная длина контекста |
page | number | 1 | Номер страницы |
limit | number | 20 | Количество на странице |
sortBy | string | — | Сортировка: price, name, created_at |
sortOrder | string | desc | Порядок: asc, desc |
Примеры
curl "https://polza.ai/api/v1/models/catalog?search=claude&type=chat"
curl "https://polza.ai/api/v1/models/catalog?inputModalities=image&type=chat&sortBy=price&sortOrder=asc"
curl "https://polza.ai/api/v1/models/catalog?type=chat&page=2&limit=10"
Ответ (200)
{
"data": [
{
"id": "anthropic/claude-3-5-sonnet",
"name": "Claude 3.5 Sonnet",
"type": "chat",
"created": 1677652288,
"architecture": {
"input_modalities": ["text", "image"],
"output_modalities": ["text"]
},
"top_provider": {
"context_length": 200000,
"max_completion_tokens": 8192,
"pricing": {
"prompt_per_million": "0.27",
"completion_per_million": "1.35",
"currency": "RUB"
}
}
}
],
"meta": {
"page": 1,
"limit": 20,
"total": 150,
"totalPages": 8
}
}
Заголовки
Параметры запроса
Номер страницы
Пример:
1
Количество на странице
Пример:
20
Поиск по названию и ID модели
Пример:
"gpt-4"
Тип модели (через запятую)
Способы ввода (через запятую)
Способы вывода (через запятую)
Провайдеры (через запятую)
Только модели с флагом «данные хранятся в РФ» (РФ-щит в каталоге)
Пример:
true
Минимальная длина контекста
Пример:
8000
Максимальная длина контекста
Пример:
128000
Поле сортировки
Доступные опции:
name, price, createdAt, popular Пример:
"name"
Catalog sort key
Доступные опции:
price_asc, price_desc Пример:
"price_asc"
Направление сортировки
Доступные опции:
asc, desc Пример:
"asc"
Была ли эта страница полезной?