Перейти к основному содержанию
GET
/
v1
/
media
/
models
Получить список media models
curl --request GET \
  --url https://speshu.ai/api/v1/media/models \
  --header 'Authorization: Bearer <token>'
{
  "object": "list",
  "data": [
    {
      "id": "flux-2/pro-text-to-image",
      "object": "model",
      "media_type": "image",
      "input_schema": {},
      "owned_by": "kie",
      "pricing": {
        "currency": "RUB",
        "type": "tiered"
      }
    }
  ]
}

Documentation Index

Fetch the complete documentation index at: https://speshu.ai/docs/llms.txt

Use this file to discover all available pages before exploring further.

Эндпоинт возвращает доступные модели для изображений, видео, музыки и аудио. У каждой модели есть input_schema. Используйте её как источник правды для поля input.

Пример

curl "https://speshu.ai/api/v1/media/models" \
  -H "Authorization: Bearer <SPESHU_AI_API_KEY>"

Ответ

{
  "object": "list",
  "data": [
    {
      "id": "flux-2/pro-text-to-image",
      "object": "model",
      "owned_by": "speshu",
      "media_type": "image",
      "pricing": {
        "currency": "RUB",
        "type": "tiered",
        "tiers": [
          { "params": { "resolution": "1K" }, "price": "15.00" }
        ]
      },
      "input_schema": {
        "type": "object",
        "properties": {
          "prompt": { "type": "string" },
          "aspect_ratio": { "type": "string" },
          "resolution": { "type": "string" }
        },
        "required": ["prompt", "aspect_ratio", "resolution"]
      }
    }
  ]
}

Поля модели

ПолеОписание
idID модели для POST /async/media/tasks.
owned_byПровайдер или владелец модели.
media_typeТип медиа: image, video, music или audio.
pricingИнформация о стоимости.
input_schemaJSON Schema для поля input.

Категории

Изображения

Text-to-image, image-to-image, редактирование, апскейл и фон.

Видео

Text-to-video, image-to-video, motion control, extend и upscale.

Музыка и аудио

TTS, STT, sound effects и генерация музыки.

Авторизации

Authorization
string
header
обязательно

API ключ передаётся в заголовке: Authorization: Bearer <SPESHU_AI_API_KEY>

Ответ

Каталог моделей

object
string
обязательно
Пример:

"list"

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