ᡤᡝᠯᡳ ᡩᡝ ᠵᡠᠸᡝᠨ

Lyria2

ᠵᡠᠸᡝᠪᡠᠮᠪᡳ

ᠮᠣᡩᡝᠯ id lyria2
# Run the model; wait up to 20 s for the finished result in the same call
curl -X POST "https://api.doitong.ru/v1/run/lyria2?wait=20" \
  -H "Authorization: Bearer $DOITONG_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "prompt": "A red fox trots through fresh snow at sunrise, soft golden light, shallow depth of field"
  }'

# Still "queued" or "running"? Poll with the id from the response:
curl "https://api.doitong.ru/v1/requests/REQUEST_ID?wait=20" \
  -H "Authorization: Bearer $DOITONG_API_KEY"

ᡝᠨᡳ ᠵᠠᠯᡳᠨ: ≈$0.10 100 API ᠺᠷᡝᡩᡳᠲ · ≈ ₽10.55 ᡝᡵᡝ ᠵᠠᠯᡳᠨᡩᡝ ᠠᠰᡠᠮᠪᡳ

API ᡩᠠᠮᡠᠨ ᡤᠠᠯᠠ

Google ᡳ ᠪᡳᠴᡳᡥᡝᠨ ᡩᡝᠴᡳ ᠮᡠᠰᡳᡴᡝ ᠵᠠᠯᡳᠨ᠂ `prompt` ᡳ ᠵᠠᠯᡳᠨ ᡩᡝ ᠮᡠᠰᡳᡴᡝ ᡠᠯᡥᡳᠨ ᠠᠵᡳᠯᠠᠮᠪᡳ᠂ ᠪᡝᠯᡤᡳᠯᡝᠯᡤᡝ ᡤᡝᠯᡳ ᠵᠠᠯᡳᠨ ᠪᡳ

Google · ᡤᡳᠰᡠᠨ

ᡳᠨᡝ ᡝᠮᡠᠨᡳᠩᡤᡝ ᡝᡵᡝᠮᡝ ᡩᡝ

ᡝᡵᡝ ᠵᡠᠯᡝᠨ ᡩᡝ ᡤᡝᡪᡳᠯᡝᠨ ᠪᠠᠶᠠᠨᠠᠮᡝ ᠠᠮᡪᠠᠯᠠ ᡶᡳᠯᡝᠮᡝ ᠪᡝᠶᡝᠮᡝ᠃ API ᠵᡳᡵᡤᠠᡳ ᡤᠠᡳᡥᠠᡩᡝ ᡤᡝᡪᡳᠯᡝᠨ ᠵᠠᠯᠠᠨᠠᠮᡝ ᠪᡠᠶᡝᠮᡝ ᠮᡠᠰᡝᡳ ᠰᡠᠯᡠᠨᡩᡝ ᠪᠠᠶᠠᠨᠠᠮᡝ᠂ ᠝ᠮᡤᡳ ᠮᡠᠰᡝ ᠠᠶᠠᠨ 7 ᡥᠠᠨ ᠰᠠᡳᠨᠠᠮᡝ᠃

ᡤᡳᠰᡠᠨ ᠪᡠᠶᡝᠮᡝ

ᠵᠠᡴᡠᠨᡳ ᠵᡠᠯᡝ ᡩᡝᡵᡤᡳ ᡩᡝᠪᡝᠰᡠᠮᡝ ᠵᡠᠯᡤᡝ ᠪᡠᠶᡝᠮᡝ᠈ ᡳᠨᡳ ᡤᡳᠰᡠᠨ ᠪᠠᡳ ᡝᠨᡝᠩᡤᡳ ᠠᠮᠪᡳ

•ᡴᠠᠷᠠᡴᡡ 88 / 2000

ᠪᡠᠶᡝᠮᡝ ᡳ ᠮᡠᠰᡳᡴᠠ ᡳ ᡥᡡᠯᠠᠨ ᡳ ᠵᠠᠯᠠᠨ ᡳ ᠮᡠᠯᡤᡝᠨ.

ᠵᡠᠯᡤᡝ ᠵᡝᡵᡤᡳ negative_prompt · seed · enable_safety_checker
ᠵᡠᠯᡝ low quality

ᡤᡳᠰᡠᠨ ᠪᡠᠶᡝᠮᡝ ᡩᡝ ᠠᠯᡳᠨ ᠠᡴᡠᠨ ᠪᡝ ᡤᡳᠰᡠᡵᡝ ᠰᡳᠰᡳᠯᠠᠨ.

ᠵᡠᠯᡝ ᡳ ᠪᡠᠶᡝᠮᡝ ᠠᠯᡤᠠᠨ ᠪᡝ ᠵᠠᠯᠠᡵᠠᠮᡝ ᠪᡠᠮᡝᠨ ᠮᡠᠰᡳᡴᠠᠨ ᠪᡝ ᠠᠩᡤᠠᠯᠠᠮᡝ ᠠᡩᠠᠯᡳ ᠮᠣᠳᡝᠯ ᡳ ᠪᡠᠶᡝᠮᡝ ᠪᡝ ᠪᠠᠶᠠᠨ ᠣᠮᠪᡳ.

POST /run/lyria2?wait=20 ᠵᠠᠯᡳᠨ → $0.10
# Run the model; wait up to 20 s for the finished result in the same call
curl -X POST "https://api.doitong.ru/v1/run/lyria2?wait=20" \
  -H "Authorization: Bearer $DOITONG_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "prompt": "A red fox trots through fresh snow at sunrise, soft golden light, shallow depth of field"
  }'

# Still "queued" or "running"? Poll with the id from the response:
curl "https://api.doitong.ru/v1/requests/REQUEST_ID?wait=20" \
  -H "Authorization: Bearer $DOITONG_API_KEY"

ᡝᠨᡳ ᠵᠠᠯᡳᠨ ᠪᡝ ᠵᠠᠯᠠᠨᠠᠮᡝ

ᡳᠨᡝ ᠵᠠᠯᠠᠨ ᡝᡵᡝ ᠪᡠᡵᡝᠪᡝᡵᡳ ᡩᡝ ᠪᡳᠮᡝ᠈ Doitong API ᡩᡝ ᠵᡝᠯᡤᡳ ᡩᠠᡵᠠᠮᡝ᠈ Remember ᠵᡠᠯᡝᠮᡝ ᡤᡳᠯᠠᠮᡝ localStorage ᡩᡝ ᠰᡠᠯᡝᠮᡝ ᠪᡳᠮᡝ API ᠵᠠᠯᠠᠨ ᠠᠪᠠᠮᡝ

Lyria2 ᡠᡵᡝᠮᡝ

2000 ᡤᡝᠪᡠ ᡳ ᠪᡳᠴᡳᡥᡝᠨ ᡩᡝ ᠮᡠᠰᡳᡴᡝ ᠵᠠᠯᡳᠨ ᠠᠵᡳᠯᠠᠮᠪᡳ᠉ `negative_prompt` ᡳ ᠠᠪᡠᠮᡝ ᡠᠮᡝ ᠪᡝ ᡤᠠᠷᡤᠠᠮᠪᡳ᠂ `seed` ᡳ ᡩᠠᠯᠵᡳᠯᠠᠮᡝ ᠵᡝᠪᡠᠨ ᠪᡝ ᠠᠯᡳᠨᡳ ᠠᠪᡠᠮᠪᡳ᠉ ᡝᠮᡠ ᠪᡳᠴᡳᡥᡝᠨ ᡝᠰᡝ ᠵᠠᠯᡳᠨ ᡳ ᠠᠮᠪᠠᠨ ᡩᡝ ᠠᠵᡳᠯᠠᠮᠪᡳ᠂ ᠠᠩᡤᠠᠯᠠᠮᡝ ᠵᠠᠯᡳᠨ ᡳ ᠪᡳᠯᡳᡥᡝᠨ ᠪᡝ ᠵᡝᠪᡠᠮᠪᡳ᠉

ᠵᠠᡴᡠᠨ

ᠵᡝᡵᡤᡳᡠᠯᠠᠮᡝ ᠵᠠᠯᠠᠨᡳ ᠵᡠᠯᡝᠠᠪᠠᠮᡝ ᠵᠠᠪᡠᠨ ᠵᠠᠯᠠᠨᡳ ᡤᡳᠰᡠᠨ
promptᡴᠠᠷᠠᡴᡡ
ᡠᠯᠠᠮᡝstring
≤ 2,000 ᠵᡳᠪᡝᠨ
ᠪᡠᠶᡝᠮᡝ ᡳ ᠮᡠᠰᡳᡴᠠ ᡳ ᡥᡡᠯᠠᠨ ᡳ ᠵᠠᠯᠠᠨ ᡳ ᠮᡠᠯᡤᡝᠨ.
negative_promptᠵᡠᠯᡝ
ᡠᠯᠠᠮᡝstring
ᠵᠠᠯᠠᠨᡳ ᠵᡠᠯᡝlow quality
ᡤᡳᠰᡠᠨ ᠪᡠᠶᡝᠮᡝ ᡩᡝ ᠠᠯᡳᠨ ᠠᡴᡠᠨ ᠪᡝ ᡤᡳᠰᡠᡵᡝ ᠰᡳᠰᡳᠯᠠᠨ.
seedᠵᡠᠯᡝ
ᡠᠯᠠᠮᡝinteger | null
ᠵᡠᠯᡝ ᡳ ᠪᡠᠶᡝᠮᡝ ᠠᠯᡤᠠᠨ ᠪᡝ ᠵᠠᠯᠠᡵᠠᠮᡝ ᠪᡠᠮᡝᠨ ᠮᡠᠰᡳᡴᠠᠨ ᠪᡝ ᠠᠩᡤᠠᠯᠠᠮᡝ ᠠᡩᠠᠯᡳ ᠮᠣᠳᡝᠯ ᡳ ᠪᡠᠶᡝᠮᡝ ᠪᡝ ᠪᠠᠶᠠᠨ ᠣᠮᠪᡳ.
enable_safety_checkerᠵᡠᠯᡝ
ᡠᠯᠠᠮᡝboolean
ᠵᠠᠯᠠᠨᡳ ᠵᡠᠯᡝtrue
ᠠᠰᡠᡵᠠᠮᡝ ᠠᠨᡩᠠ ᠪᡳᠮᡝ ᠰᠠᡳᠨ᠈ ᠵᡠᠴᡝᠨ ᠵᡠᠰᡝ ᠠᠰᡠᡵᠠᠮᡝ᠉
ᡴᠠᠷᠠᡴᡡ

ᠪᡠᠶᡝᠮᡝ

GET /requests/req_8k2m4q7x1z9c3v5b6n0p2r4t
{
  "id": "req_8k2m4q7x1z9c3v5b6n0p2r4t",
  "object": "request",
  "model": "lyria2",
  "status": "succeeded",
  "created_at": "2026-10-20T12:00:00Z",
  "started_at": "2026-10-20T12:00:02Z",
  "completed_at": "2026-10-20T12:00:09Z",
  "queue_position": null,
  "cost": {
    "credits": 100,
    "usd": "0.10",
    "charged": 100,
    "refunded": 0
  },
  "input": {
    "prompt": "A red fox trots through fresh snow at sunrise, soft golden light, shallow depth of field"
  },
  "output": {
    "audio": {
      "url": "https://content.doitong.com/dev-api/2026/10/20/req_8k2m4q7x1z9c3v5b6n0p2r4t/0-output.mp3",
      "content_type": "audio/mpeg",
      "file_name": "0-output.mp3",
      "file_size": 1843200
    }
  },
  "outputs": [
    {
      "type": "audio",
      "url": "https://content.doitong.com/dev-api/2026/10/20/req_8k2m4q7x1z9c3v5b6n0p2r4t/0-output.mp3",
      "content_type": "audio/mpeg",
      "file_size": 1843200,
      "duration": 12,
      "stored": true
    }
  ],
  "error": null,
  "metrics": {
    "inference_seconds": 6.8
  },
  "urls": {
    "self": "https://api.doitong.ru/v1/requests/req_8k2m4q7x1z9c3v5b6n0p2r4t",
    "cancel": "https://api.doitong.ru/v1/requests/req_8k2m4q7x1z9c3v5b6n0p2r4t/cancel"
  }
}
ᡤᡝᠯᡝᠮᡝ ᡥᡡᠯᡤᡠᠨᡳ ᡳᠨᡠᡝᠯᡝᡥᡝ outputs[].url ᠰᡠᠯᡠᠨ ᡩᡝ ᠰᡳᡵᡝ ᡶᡳᠯᡝ᠈ ᠝ᠮᡤᡳ ᠮᡠᠰᡝ ᠠᠪᠠᠯᡳ ᠵᡝᠮᡤᡳᠨ GB-ᠪᡳᠶᠠ ᠵᡝᠮᡤᡳᠨ ᠪᡝ ᡝᠮᡠᠯᡝᠮᡝ ᠠᠪᠠᠯᡳ 7 ᡥᠠᠨ ᠰᡳᠯᡤᠠᠨ ᡩᡝ᠈ ᠰᡳᠨᡳ ᠪᠠᠯᠠᠨᠰᡳ ᠵᡠᠶᡝᡵᡝᠨ ᠠᠪᠠᠯᡳ ?storage= ᡩᡝ ᡝᠵᡝᠨ ᡥᠠᠯᠠᠮᡝ᠉
ᡝᠮᡠ ᡤᡳᠰᡠᠨ ᡝᠮᡠ ᠮᠣᡩᡝᠯ ᡩᡝtype, url, content_type, width, height ᠮᠠᠩᡤᡳ duration᠈ ᠵᠠᠯᠠᠨ᠈ ᠪᡠᠵᡠᠮᠪᡳ ᠮᠠᠩᡤᡳ ᠵᡝᡵᡤᡳ ᡩᡝᠨᡳ᠈ output ᠮᠣᡩᡝᠯᡳᠨᡳ ᡝᠮᡠ ᠵᠠᠯᠠᠨ
ᠪᡠᠶᡝᠮᡝᠨᡳ ᡤᡳᠰᡠᠨ
audio
object {url, content_type, file_name, file_size}ᠮᠣᡩᡝᠯ ᠪᡠᠶᡝᠮᡝᠨᡳ ᡤᡳᠰᡠᠨ.

AI ᠠᡤᡝᠨᡨᡳ ᡠᠴᡠᠷᡳ᠈ ᡝᡵᡝ ᡩᡝᠪᡝᡵᡳ Markdown ᠰᡳᠨᡩᠠᡵᡳ https://doitong.com/mnc/developers/models/lyria2.md. ᡝᡵᡝ ᠮᠣᡩᡝᠯ ᠵᠠᡴᡠᠨ ᠰᡠᠯᡠᠮᡝ https://doitong.com/developers/llms.txt