GetRun by Getcore API Documentation

Docs / video / MAGI-2 Text to Video

MAGI-2 Text to Video maintenance

Buat video dari deskripsi adegan dan suara.

Rp Mulai Rp4.427 / video Rp6.324 −30% magi-2/text-to-video model id

1 · Create a task

Kirim permintaan untuk membuat tugas generasi video. Wajib header Idempotency-Key. Saldo direservasi sebesar estimasi; task gagal tidak ditagih.

POSThttps://getrun.id/v1/tasks
curl -X POST https://getrun.id/v1/tasks \
  -H "Authorization: Bearer YOUR_API_KEY" \
  -H "Idempotency-Key: my-task-001" \
  -H "Content-Type: application/json" \
  -d '{
    "model": "magi-2/text-to-video",
    "input": {
      "prompt": "A fishing boat at sunrise on Lake Toba."
    }
  }'
const res = await fetch('https://getrun.id/v1/tasks', {
  method: 'POST',
  headers: {
    Authorization: 'Bearer YOUR_API_KEY',
    'Idempotency-Key': 'my-task-001',
    'Content-Type': 'application/json',
  },
  body: JSON.stringify({
    "model": "magi-2/text-to-video",
    "input": {
      "prompt": "A fishing boat at sunrise on Lake Toba."
    }
  }),
});
const task = await res.json();
import requests

res = requests.post(
    "https://getrun.id/v1/tasks",
    headers={
        "Authorization": "Bearer YOUR_API_KEY",
        "Idempotency-Key": "my-task-001",
    },
    json={
      "model": "magi-2/text-to-video",
      "input": {
        "prompt": "A fishing boat at sunrise on Lake Toba."
      }
    },
)
task = res.json()

Input parameters

NameTypeRequiredDescriptionExample
seed integer No (min 0, max 2147483647) —
prompt string Yes (max 15000 chars) A fishing boat at sunrise on Lake Toba.
duration integer No (min 4, max 30) 5
resolution string No
Opsi: 1080p
1080p
aspect_ratio string No
Opsi: 21:9 16:9 4:3 1:1 3:4 9:16
16:9
generate_audio boolean No true

2 · Poll the result

Ambil status tugas hingga selesai — poll tiap 2–5 detik.

GEThttps://getrun.id/v1/tasks/{task_id}

Respons saat sukses:

{
  "id": "task_9f2c…",
  "status": "succeeded",
  "model": "magi-2/text-to-video",
  "price": {
    "currency": "IDR",
    "estimated": 4427,
    "reserved": 4427,
    "final": 4427
  },
  "output": {
    "urls": [
      "https://storage.getcore.id/outputs/task_9f2c…/0.mp4"
    ],
    "expires_at": "(7 hari setelah selesai)"
  }
}

Status values

StatusKeterangan
queuedTugas sedang diantrikan.
processingSedang diproses.
succeededBerhasil.
failedGagal — lihat error detail, tidak ditagih.
Output bertipe video/mp4, dilayani dari CDN kami dan berlaku 7 hari — salin ke penyimpananmu sendiri untuk jangka panjang.

Best practices

Bila generation gagal, task berstatus failed dengan error.code ternormalisasi (mis. moderation_blocked, upstream_error) dan price.final = 0 — saldo dikembalikan otomatis. Daftar lengkap kode error ada di Error handling. Selalu kirim Idempotency-Key unik per tugas agar retry aman.

Coba tanpa kode: jalankan model ini langsung dari Playground atau lihat di API Market.

On this page
1 · Create a task Input parameters 2 · Poll the result Status values Best practices
Pricing summary
MAGI-2 Text to Video
Mulai Rp4.427 / video
  • Harga jelas, pembayaran mudah.
  • Transparan, tanpa biaya tersembunyi.
  • Hemat 30% dibanding harga pembanding.
Try in Playground ↗

Eksperimen model ini langsung di Playground untuk hasil instan.

Model details
Model IDmagi-2/text-to-video
Modalityvideo
Output typevideo/mp4
API versionv1
Need help?

Lihat daftar error umum di Error handling atau hubungi support@getcore.id.