Перейти к основному содержанию
GET
/
v1
/
models
/
catalog
Получить каталог моделей с фильтрацией
curl --request GET \
  --url https://polza.ai/api/v1/models/catalog
{
  "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"
              ],
              "costRub": "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"
                ],
                "costRub": "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"
                ],
                "costRub": "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>"
              ]
            }
          }
        }
      ]
    }
  ],
  "meta": {
    "page": 1,
    "limit": 20,
    "total": 288,
    "totalPages": 15
  }
}

О каталоге моделей

Расширенный эндпоинт для получения каталога моделей с поддержкой поиска, фильтрации и пагинации.

Параметры запроса

ПараметрТипПо умолчаниюОписание
searchstringПоиск по названию модели
typestringТип: chat, image, embedding, video, audio
inputModalitiesstring[]Входные модальности: text, image
outputModalitiesstring[]Выходные модальности: text, image
providersstring[]Фильтр по провайдерам
contextLengthMinnumberМинимальная длина контекста
contextLengthMaxnumberМаксимальная длина контекста
pagenumber1Номер страницы
limitnumber20Количество на странице
sortBystringСортировка: price, name, created_at
sortOrderstringdescПорядок: asc, desc

Примеры

curl "https://polza.ai/api/v1/models/catalog?search=claude&type=chat"

Ответ (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
  }
}

Параметры запроса

page
number
по умолчанию:1

Номер страницы

Пример:

1

limit
number
по умолчанию:20

Количество на странице

Пример:

20

Поиск по названию и ID модели

Пример:

"gpt-4"

type
string[]

Тип модели (через запятую)

inputModalities
string[]

Способы ввода (через запятую)

outputModalities
string[]

Способы вывода (через запятую)

providers
string[]

Провайдеры (через запятую)

contextLengthMin
number

Минимальная длина контекста

Пример:

8000

contextLengthMax
number

Максимальная длина контекста

Пример:

128000

sortBy
enum<string>
по умолчанию:name

Поле сортировки

Доступные опции:
name,
price,
createdAt
Пример:

"name"

sortOrder
enum<string>
по умолчанию:asc

Направление сортировки

Доступные опции:
asc,
desc
Пример:

"asc"

Ответ

data
object[]
обязательно

Список моделей

meta
object
обязательно

Информация о пагинации