Получить список доступных моделей
curl --request GET \
--url https://polza.ai/api/v1/modelsimport requests
url = "https://polza.ai/api/v1/models"
response = requests.get(url)
print(response.text)const options = {method: 'GET'};
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",
]);
$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)
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")
.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)
response = http.request(request)
puts response.read_body{
"data": [
{
"id": "deepseek-r1",
"name": "DeepSeek R1",
"type": "chat",
"created": 1765987078,
"architecture": {
"input_modalities": [
"text",
"image"
],
"output_modalities": [
"text"
],
"modality": "text+image->text",
"tokenizer": "GPT",
"instruct_type": "chatml"
},
"top_provider": {
"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"
},
"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>"
]
},
"aspect_ratio": {
"required": true,
"description": "<string>",
"max_length": 123,
"min": 123,
"max": 123,
"default": {},
"values": [
"<string>"
]
},
"resolution": {
"required": true,
"description": "<string>",
"max_length": 123,
"min": 123,
"max": 123,
"default": {},
"values": [
"<string>"
]
},
"image_resolution": {
"required": true,
"description": "<string>",
"max_length": 123,
"min": 123,
"max": 123,
"default": {},
"values": [
"<string>"
]
},
"duration": {
"required": true,
"description": "<string>",
"max_length": 123,
"min": 123,
"max": 123,
"default": {},
"values": [
"<string>"
]
},
"output_format": {
"required": true,
"description": "<string>",
"max_length": 123,
"min": 123,
"max": 123,
"default": {},
"values": [
"<string>"
]
},
"seeds": {
"required": true,
"description": "<string>",
"max_length": 123,
"min": 123,
"max": 123,
"default": {},
"values": [
"<string>"
]
},
"watermark": {
"required": true,
"description": "<string>",
"max_length": 123,
"min": 123,
"max": 123,
"default": {},
"values": [
"<string>"
]
},
"images": {
"required": true,
"description": "<string>",
"max_length": 123,
"min": 123,
"max": 123,
"default": {},
"values": [
"<string>"
]
},
"videos": {
"required": true,
"description": "<string>",
"max_length": 123,
"min": 123,
"max": 123,
"default": {},
"values": [
"<string>"
]
},
"quality": {
"required": true,
"description": "<string>",
"max_length": 123,
"min": 123,
"max": 123,
"default": {},
"values": [
"<string>"
]
},
"voice": {
"required": true,
"description": "<string>",
"max_length": 123,
"min": 123,
"max": 123,
"default": {},
"values": [
"<string>"
]
},
"speed": {
"required": true,
"description": "<string>",
"max_length": 123,
"min": 123,
"max": 123,
"default": {},
"values": [
"<string>"
]
},
"stability": {
"required": true,
"description": "<string>",
"max_length": 123,
"min": 123,
"max": 123,
"default": {},
"values": [
"<string>"
]
},
"similarity_boost": {
"required": true,
"description": "<string>",
"max_length": 123,
"min": 123,
"max": 123,
"default": {},
"values": [
"<string>"
]
},
"style": {
"required": true,
"description": "<string>",
"max_length": 123,
"min": 123,
"max": 123,
"default": {},
"values": [
"<string>"
]
},
"timestamps": {
"required": true,
"description": "<string>",
"max_length": 123,
"min": 123,
"max": 123,
"default": {},
"values": [
"<string>"
]
},
"previous_text": {
"required": true,
"description": "<string>",
"max_length": 123,
"min": 123,
"max": 123,
"default": {},
"values": [
"<string>"
]
},
"next_text": {
"required": true,
"description": "<string>",
"max_length": 123,
"min": 123,
"max": 123,
"default": {},
"values": [
"<string>"
]
},
"language_code": {
"required": true,
"description": "<string>",
"max_length": 123,
"min": 123,
"max": 123,
"default": {},
"values": [
"<string>"
]
}
}
},
"endpoints": [
"/v1/chat/completions"
],
"short_description": "Мощная модель для генерации текста",
"providers": [
{
"name": "OpenRouter",
"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"
},
"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>"
]
},
"aspect_ratio": {
"required": true,
"description": "<string>",
"max_length": 123,
"min": 123,
"max": 123,
"default": {},
"values": [
"<string>"
]
},
"resolution": {
"required": true,
"description": "<string>",
"max_length": 123,
"min": 123,
"max": 123,
"default": {},
"values": [
"<string>"
]
},
"image_resolution": {
"required": true,
"description": "<string>",
"max_length": 123,
"min": 123,
"max": 123,
"default": {},
"values": [
"<string>"
]
},
"duration": {
"required": true,
"description": "<string>",
"max_length": 123,
"min": 123,
"max": 123,
"default": {},
"values": [
"<string>"
]
},
"output_format": {
"required": true,
"description": "<string>",
"max_length": 123,
"min": 123,
"max": 123,
"default": {},
"values": [
"<string>"
]
},
"seeds": {
"required": true,
"description": "<string>",
"max_length": 123,
"min": 123,
"max": 123,
"default": {},
"values": [
"<string>"
]
},
"watermark": {
"required": true,
"description": "<string>",
"max_length": 123,
"min": 123,
"max": 123,
"default": {},
"values": [
"<string>"
]
},
"images": {
"required": true,
"description": "<string>",
"max_length": 123,
"min": 123,
"max": 123,
"default": {},
"values": [
"<string>"
]
},
"videos": {
"required": true,
"description": "<string>",
"max_length": 123,
"min": 123,
"max": 123,
"default": {},
"values": [
"<string>"
]
},
"quality": {
"required": true,
"description": "<string>",
"max_length": 123,
"min": 123,
"max": 123,
"default": {},
"values": [
"<string>"
]
},
"voice": {
"required": true,
"description": "<string>",
"max_length": 123,
"min": 123,
"max": 123,
"default": {},
"values": [
"<string>"
]
},
"speed": {
"required": true,
"description": "<string>",
"max_length": 123,
"min": 123,
"max": 123,
"default": {},
"values": [
"<string>"
]
},
"stability": {
"required": true,
"description": "<string>",
"max_length": 123,
"min": 123,
"max": 123,
"default": {},
"values": [
"<string>"
]
},
"similarity_boost": {
"required": true,
"description": "<string>",
"max_length": 123,
"min": 123,
"max": 123,
"default": {},
"values": [
"<string>"
]
},
"style": {
"required": true,
"description": "<string>",
"max_length": 123,
"min": 123,
"max": 123,
"default": {},
"values": [
"<string>"
]
},
"timestamps": {
"required": true,
"description": "<string>",
"max_length": 123,
"min": 123,
"max": 123,
"default": {},
"values": [
"<string>"
]
},
"previous_text": {
"required": true,
"description": "<string>",
"max_length": 123,
"min": 123,
"max": 123,
"default": {},
"values": [
"<string>"
]
},
"next_text": {
"required": true,
"description": "<string>",
"max_length": 123,
"min": 123,
"max": 123,
"default": {},
"values": [
"<string>"
]
},
"language_code": {
"required": true,
"description": "<string>",
"max_length": 123,
"min": 123,
"max": 123,
"default": {},
"values": [
"<string>"
]
}
}
}
],
"parameters": {
"prompt": {
"required": true,
"description": "<string>",
"max_length": 123,
"min": 123,
"max": 123,
"default": {},
"values": [
"<string>"
]
},
"aspect_ratio": {
"required": true,
"description": "<string>",
"max_length": 123,
"min": 123,
"max": 123,
"default": {},
"values": [
"<string>"
]
},
"resolution": {
"required": true,
"description": "<string>",
"max_length": 123,
"min": 123,
"max": 123,
"default": {},
"values": [
"<string>"
]
},
"image_resolution": {
"required": true,
"description": "<string>",
"max_length": 123,
"min": 123,
"max": 123,
"default": {},
"values": [
"<string>"
]
},
"duration": {
"required": true,
"description": "<string>",
"max_length": 123,
"min": 123,
"max": 123,
"default": {},
"values": [
"<string>"
]
},
"output_format": {
"required": true,
"description": "<string>",
"max_length": 123,
"min": 123,
"max": 123,
"default": {},
"values": [
"<string>"
]
},
"seeds": {
"required": true,
"description": "<string>",
"max_length": 123,
"min": 123,
"max": 123,
"default": {},
"values": [
"<string>"
]
},
"watermark": {
"required": true,
"description": "<string>",
"max_length": 123,
"min": 123,
"max": 123,
"default": {},
"values": [
"<string>"
]
},
"images": {
"required": true,
"description": "<string>",
"max_length": 123,
"min": 123,
"max": 123,
"default": {},
"values": [
"<string>"
]
},
"videos": {
"required": true,
"description": "<string>",
"max_length": 123,
"min": 123,
"max": 123,
"default": {},
"values": [
"<string>"
]
},
"quality": {
"required": true,
"description": "<string>",
"max_length": 123,
"min": 123,
"max": 123,
"default": {},
"values": [
"<string>"
]
},
"voice": {
"required": true,
"description": "<string>",
"max_length": 123,
"min": 123,
"max": 123,
"default": {},
"values": [
"<string>"
]
},
"speed": {
"required": true,
"description": "<string>",
"max_length": 123,
"min": 123,
"max": 123,
"default": {},
"values": [
"<string>"
]
},
"stability": {
"required": true,
"description": "<string>",
"max_length": 123,
"min": 123,
"max": 123,
"default": {},
"values": [
"<string>"
]
},
"similarity_boost": {
"required": true,
"description": "<string>",
"max_length": 123,
"min": 123,
"max": 123,
"default": {},
"values": [
"<string>"
]
},
"style": {
"required": true,
"description": "<string>",
"max_length": 123,
"min": 123,
"max": 123,
"default": {},
"values": [
"<string>"
]
},
"timestamps": {
"required": true,
"description": "<string>",
"max_length": 123,
"min": 123,
"max": 123,
"default": {},
"values": [
"<string>"
]
},
"previous_text": {
"required": true,
"description": "<string>",
"max_length": 123,
"min": 123,
"max": 123,
"default": {},
"values": [
"<string>"
]
},
"next_text": {
"required": true,
"description": "<string>",
"max_length": 123,
"min": 123,
"max": 123,
"default": {},
"values": [
"<string>"
]
},
"language_code": {
"required": true,
"description": "<string>",
"max_length": 123,
"min": 123,
"max": 123,
"default": {},
"values": [
"<string>"
]
}
},
"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>"
]
},
"aspect_ratio": {
"required": true,
"description": "<string>",
"max_length": 123,
"min": 123,
"max": 123,
"default": {},
"values": [
"<string>"
]
},
"resolution": {
"required": true,
"description": "<string>",
"max_length": 123,
"min": 123,
"max": 123,
"default": {},
"values": [
"<string>"
]
},
"image_resolution": {
"required": true,
"description": "<string>",
"max_length": 123,
"min": 123,
"max": 123,
"default": {},
"values": [
"<string>"
]
},
"duration": {
"required": true,
"description": "<string>",
"max_length": 123,
"min": 123,
"max": 123,
"default": {},
"values": [
"<string>"
]
},
"output_format": {
"required": true,
"description": "<string>",
"max_length": 123,
"min": 123,
"max": 123,
"default": {},
"values": [
"<string>"
]
},
"seeds": {
"required": true,
"description": "<string>",
"max_length": 123,
"min": 123,
"max": 123,
"default": {},
"values": [
"<string>"
]
},
"watermark": {
"required": true,
"description": "<string>",
"max_length": 123,
"min": 123,
"max": 123,
"default": {},
"values": [
"<string>"
]
},
"images": {
"required": true,
"description": "<string>",
"max_length": 123,
"min": 123,
"max": 123,
"default": {},
"values": [
"<string>"
]
},
"videos": {
"required": true,
"description": "<string>",
"max_length": 123,
"min": 123,
"max": 123,
"default": {},
"values": [
"<string>"
]
},
"quality": {
"required": true,
"description": "<string>",
"max_length": 123,
"min": 123,
"max": 123,
"default": {},
"values": [
"<string>"
]
},
"voice": {
"required": true,
"description": "<string>",
"max_length": 123,
"min": 123,
"max": 123,
"default": {},
"values": [
"<string>"
]
},
"speed": {
"required": true,
"description": "<string>",
"max_length": 123,
"min": 123,
"max": 123,
"default": {},
"values": [
"<string>"
]
},
"stability": {
"required": true,
"description": "<string>",
"max_length": 123,
"min": 123,
"max": 123,
"default": {},
"values": [
"<string>"
]
},
"similarity_boost": {
"required": true,
"description": "<string>",
"max_length": 123,
"min": 123,
"max": 123,
"default": {},
"values": [
"<string>"
]
},
"style": {
"required": true,
"description": "<string>",
"max_length": 123,
"min": 123,
"max": 123,
"default": {},
"values": [
"<string>"
]
},
"timestamps": {
"required": true,
"description": "<string>",
"max_length": 123,
"min": 123,
"max": 123,
"default": {},
"values": [
"<string>"
]
},
"previous_text": {
"required": true,
"description": "<string>",
"max_length": 123,
"min": 123,
"max": 123,
"default": {},
"values": [
"<string>"
]
},
"next_text": {
"required": true,
"description": "<string>",
"max_length": 123,
"min": 123,
"max": 123,
"default": {},
"values": [
"<string>"
]
},
"language_code": {
"required": true,
"description": "<string>",
"max_length": 123,
"min": 123,
"max": 123,
"default": {},
"values": [
"<string>"
]
}
}
}
]
}
]
}Модели
GET Models
Получение списка доступных моделей
GET
/
v1
/
models
Получить список доступных моделей
curl --request GET \
--url https://polza.ai/api/v1/modelsimport requests
url = "https://polza.ai/api/v1/models"
response = requests.get(url)
print(response.text)const options = {method: 'GET'};
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",
]);
$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)
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")
.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)
response = http.request(request)
puts response.read_body{
"data": [
{
"id": "deepseek-r1",
"name": "DeepSeek R1",
"type": "chat",
"created": 1765987078,
"architecture": {
"input_modalities": [
"text",
"image"
],
"output_modalities": [
"text"
],
"modality": "text+image->text",
"tokenizer": "GPT",
"instruct_type": "chatml"
},
"top_provider": {
"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"
},
"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>"
]
},
"aspect_ratio": {
"required": true,
"description": "<string>",
"max_length": 123,
"min": 123,
"max": 123,
"default": {},
"values": [
"<string>"
]
},
"resolution": {
"required": true,
"description": "<string>",
"max_length": 123,
"min": 123,
"max": 123,
"default": {},
"values": [
"<string>"
]
},
"image_resolution": {
"required": true,
"description": "<string>",
"max_length": 123,
"min": 123,
"max": 123,
"default": {},
"values": [
"<string>"
]
},
"duration": {
"required": true,
"description": "<string>",
"max_length": 123,
"min": 123,
"max": 123,
"default": {},
"values": [
"<string>"
]
},
"output_format": {
"required": true,
"description": "<string>",
"max_length": 123,
"min": 123,
"max": 123,
"default": {},
"values": [
"<string>"
]
},
"seeds": {
"required": true,
"description": "<string>",
"max_length": 123,
"min": 123,
"max": 123,
"default": {},
"values": [
"<string>"
]
},
"watermark": {
"required": true,
"description": "<string>",
"max_length": 123,
"min": 123,
"max": 123,
"default": {},
"values": [
"<string>"
]
},
"images": {
"required": true,
"description": "<string>",
"max_length": 123,
"min": 123,
"max": 123,
"default": {},
"values": [
"<string>"
]
},
"videos": {
"required": true,
"description": "<string>",
"max_length": 123,
"min": 123,
"max": 123,
"default": {},
"values": [
"<string>"
]
},
"quality": {
"required": true,
"description": "<string>",
"max_length": 123,
"min": 123,
"max": 123,
"default": {},
"values": [
"<string>"
]
},
"voice": {
"required": true,
"description": "<string>",
"max_length": 123,
"min": 123,
"max": 123,
"default": {},
"values": [
"<string>"
]
},
"speed": {
"required": true,
"description": "<string>",
"max_length": 123,
"min": 123,
"max": 123,
"default": {},
"values": [
"<string>"
]
},
"stability": {
"required": true,
"description": "<string>",
"max_length": 123,
"min": 123,
"max": 123,
"default": {},
"values": [
"<string>"
]
},
"similarity_boost": {
"required": true,
"description": "<string>",
"max_length": 123,
"min": 123,
"max": 123,
"default": {},
"values": [
"<string>"
]
},
"style": {
"required": true,
"description": "<string>",
"max_length": 123,
"min": 123,
"max": 123,
"default": {},
"values": [
"<string>"
]
},
"timestamps": {
"required": true,
"description": "<string>",
"max_length": 123,
"min": 123,
"max": 123,
"default": {},
"values": [
"<string>"
]
},
"previous_text": {
"required": true,
"description": "<string>",
"max_length": 123,
"min": 123,
"max": 123,
"default": {},
"values": [
"<string>"
]
},
"next_text": {
"required": true,
"description": "<string>",
"max_length": 123,
"min": 123,
"max": 123,
"default": {},
"values": [
"<string>"
]
},
"language_code": {
"required": true,
"description": "<string>",
"max_length": 123,
"min": 123,
"max": 123,
"default": {},
"values": [
"<string>"
]
}
}
},
"endpoints": [
"/v1/chat/completions"
],
"short_description": "Мощная модель для генерации текста",
"providers": [
{
"name": "OpenRouter",
"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"
},
"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>"
]
},
"aspect_ratio": {
"required": true,
"description": "<string>",
"max_length": 123,
"min": 123,
"max": 123,
"default": {},
"values": [
"<string>"
]
},
"resolution": {
"required": true,
"description": "<string>",
"max_length": 123,
"min": 123,
"max": 123,
"default": {},
"values": [
"<string>"
]
},
"image_resolution": {
"required": true,
"description": "<string>",
"max_length": 123,
"min": 123,
"max": 123,
"default": {},
"values": [
"<string>"
]
},
"duration": {
"required": true,
"description": "<string>",
"max_length": 123,
"min": 123,
"max": 123,
"default": {},
"values": [
"<string>"
]
},
"output_format": {
"required": true,
"description": "<string>",
"max_length": 123,
"min": 123,
"max": 123,
"default": {},
"values": [
"<string>"
]
},
"seeds": {
"required": true,
"description": "<string>",
"max_length": 123,
"min": 123,
"max": 123,
"default": {},
"values": [
"<string>"
]
},
"watermark": {
"required": true,
"description": "<string>",
"max_length": 123,
"min": 123,
"max": 123,
"default": {},
"values": [
"<string>"
]
},
"images": {
"required": true,
"description": "<string>",
"max_length": 123,
"min": 123,
"max": 123,
"default": {},
"values": [
"<string>"
]
},
"videos": {
"required": true,
"description": "<string>",
"max_length": 123,
"min": 123,
"max": 123,
"default": {},
"values": [
"<string>"
]
},
"quality": {
"required": true,
"description": "<string>",
"max_length": 123,
"min": 123,
"max": 123,
"default": {},
"values": [
"<string>"
]
},
"voice": {
"required": true,
"description": "<string>",
"max_length": 123,
"min": 123,
"max": 123,
"default": {},
"values": [
"<string>"
]
},
"speed": {
"required": true,
"description": "<string>",
"max_length": 123,
"min": 123,
"max": 123,
"default": {},
"values": [
"<string>"
]
},
"stability": {
"required": true,
"description": "<string>",
"max_length": 123,
"min": 123,
"max": 123,
"default": {},
"values": [
"<string>"
]
},
"similarity_boost": {
"required": true,
"description": "<string>",
"max_length": 123,
"min": 123,
"max": 123,
"default": {},
"values": [
"<string>"
]
},
"style": {
"required": true,
"description": "<string>",
"max_length": 123,
"min": 123,
"max": 123,
"default": {},
"values": [
"<string>"
]
},
"timestamps": {
"required": true,
"description": "<string>",
"max_length": 123,
"min": 123,
"max": 123,
"default": {},
"values": [
"<string>"
]
},
"previous_text": {
"required": true,
"description": "<string>",
"max_length": 123,
"min": 123,
"max": 123,
"default": {},
"values": [
"<string>"
]
},
"next_text": {
"required": true,
"description": "<string>",
"max_length": 123,
"min": 123,
"max": 123,
"default": {},
"values": [
"<string>"
]
},
"language_code": {
"required": true,
"description": "<string>",
"max_length": 123,
"min": 123,
"max": 123,
"default": {},
"values": [
"<string>"
]
}
}
}
],
"parameters": {
"prompt": {
"required": true,
"description": "<string>",
"max_length": 123,
"min": 123,
"max": 123,
"default": {},
"values": [
"<string>"
]
},
"aspect_ratio": {
"required": true,
"description": "<string>",
"max_length": 123,
"min": 123,
"max": 123,
"default": {},
"values": [
"<string>"
]
},
"resolution": {
"required": true,
"description": "<string>",
"max_length": 123,
"min": 123,
"max": 123,
"default": {},
"values": [
"<string>"
]
},
"image_resolution": {
"required": true,
"description": "<string>",
"max_length": 123,
"min": 123,
"max": 123,
"default": {},
"values": [
"<string>"
]
},
"duration": {
"required": true,
"description": "<string>",
"max_length": 123,
"min": 123,
"max": 123,
"default": {},
"values": [
"<string>"
]
},
"output_format": {
"required": true,
"description": "<string>",
"max_length": 123,
"min": 123,
"max": 123,
"default": {},
"values": [
"<string>"
]
},
"seeds": {
"required": true,
"description": "<string>",
"max_length": 123,
"min": 123,
"max": 123,
"default": {},
"values": [
"<string>"
]
},
"watermark": {
"required": true,
"description": "<string>",
"max_length": 123,
"min": 123,
"max": 123,
"default": {},
"values": [
"<string>"
]
},
"images": {
"required": true,
"description": "<string>",
"max_length": 123,
"min": 123,
"max": 123,
"default": {},
"values": [
"<string>"
]
},
"videos": {
"required": true,
"description": "<string>",
"max_length": 123,
"min": 123,
"max": 123,
"default": {},
"values": [
"<string>"
]
},
"quality": {
"required": true,
"description": "<string>",
"max_length": 123,
"min": 123,
"max": 123,
"default": {},
"values": [
"<string>"
]
},
"voice": {
"required": true,
"description": "<string>",
"max_length": 123,
"min": 123,
"max": 123,
"default": {},
"values": [
"<string>"
]
},
"speed": {
"required": true,
"description": "<string>",
"max_length": 123,
"min": 123,
"max": 123,
"default": {},
"values": [
"<string>"
]
},
"stability": {
"required": true,
"description": "<string>",
"max_length": 123,
"min": 123,
"max": 123,
"default": {},
"values": [
"<string>"
]
},
"similarity_boost": {
"required": true,
"description": "<string>",
"max_length": 123,
"min": 123,
"max": 123,
"default": {},
"values": [
"<string>"
]
},
"style": {
"required": true,
"description": "<string>",
"max_length": 123,
"min": 123,
"max": 123,
"default": {},
"values": [
"<string>"
]
},
"timestamps": {
"required": true,
"description": "<string>",
"max_length": 123,
"min": 123,
"max": 123,
"default": {},
"values": [
"<string>"
]
},
"previous_text": {
"required": true,
"description": "<string>",
"max_length": 123,
"min": 123,
"max": 123,
"default": {},
"values": [
"<string>"
]
},
"next_text": {
"required": true,
"description": "<string>",
"max_length": 123,
"min": 123,
"max": 123,
"default": {},
"values": [
"<string>"
]
},
"language_code": {
"required": true,
"description": "<string>",
"max_length": 123,
"min": 123,
"max": 123,
"default": {},
"values": [
"<string>"
]
}
},
"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>"
]
},
"aspect_ratio": {
"required": true,
"description": "<string>",
"max_length": 123,
"min": 123,
"max": 123,
"default": {},
"values": [
"<string>"
]
},
"resolution": {
"required": true,
"description": "<string>",
"max_length": 123,
"min": 123,
"max": 123,
"default": {},
"values": [
"<string>"
]
},
"image_resolution": {
"required": true,
"description": "<string>",
"max_length": 123,
"min": 123,
"max": 123,
"default": {},
"values": [
"<string>"
]
},
"duration": {
"required": true,
"description": "<string>",
"max_length": 123,
"min": 123,
"max": 123,
"default": {},
"values": [
"<string>"
]
},
"output_format": {
"required": true,
"description": "<string>",
"max_length": 123,
"min": 123,
"max": 123,
"default": {},
"values": [
"<string>"
]
},
"seeds": {
"required": true,
"description": "<string>",
"max_length": 123,
"min": 123,
"max": 123,
"default": {},
"values": [
"<string>"
]
},
"watermark": {
"required": true,
"description": "<string>",
"max_length": 123,
"min": 123,
"max": 123,
"default": {},
"values": [
"<string>"
]
},
"images": {
"required": true,
"description": "<string>",
"max_length": 123,
"min": 123,
"max": 123,
"default": {},
"values": [
"<string>"
]
},
"videos": {
"required": true,
"description": "<string>",
"max_length": 123,
"min": 123,
"max": 123,
"default": {},
"values": [
"<string>"
]
},
"quality": {
"required": true,
"description": "<string>",
"max_length": 123,
"min": 123,
"max": 123,
"default": {},
"values": [
"<string>"
]
},
"voice": {
"required": true,
"description": "<string>",
"max_length": 123,
"min": 123,
"max": 123,
"default": {},
"values": [
"<string>"
]
},
"speed": {
"required": true,
"description": "<string>",
"max_length": 123,
"min": 123,
"max": 123,
"default": {},
"values": [
"<string>"
]
},
"stability": {
"required": true,
"description": "<string>",
"max_length": 123,
"min": 123,
"max": 123,
"default": {},
"values": [
"<string>"
]
},
"similarity_boost": {
"required": true,
"description": "<string>",
"max_length": 123,
"min": 123,
"max": 123,
"default": {},
"values": [
"<string>"
]
},
"style": {
"required": true,
"description": "<string>",
"max_length": 123,
"min": 123,
"max": 123,
"default": {},
"values": [
"<string>"
]
},
"timestamps": {
"required": true,
"description": "<string>",
"max_length": 123,
"min": 123,
"max": 123,
"default": {},
"values": [
"<string>"
]
},
"previous_text": {
"required": true,
"description": "<string>",
"max_length": 123,
"min": 123,
"max": 123,
"default": {},
"values": [
"<string>"
]
},
"next_text": {
"required": true,
"description": "<string>",
"max_length": 123,
"min": 123,
"max": 123,
"default": {},
"values": [
"<string>"
]
},
"language_code": {
"required": true,
"description": "<string>",
"max_length": 123,
"min": 123,
"max": 123,
"default": {},
"values": [
"<string>"
]
}
}
}
]
}
]
}Этот эндпоинт не требует аутентификации и доступен всем пользователям.
Параметры запроса
| Параметр | Тип | Описание |
|---|---|---|
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 |
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": "Привет!"}]
)
Была ли эта страница полезной?
⌘I