Tasks
Buat generation task
Memvalidasi input terhadap parameter schema model, menyimpan price snapshot, mereservasi saldo maksimum, lalu mengantrekan task.
Task gagal tidak ditagih; reservasi dilepas otomatis.
post/tasks
Request
- Base URL: https://getrun.id/v1
- URL: https://getrun.id/v1/tasks
- Auth: HTTP bearer
Headers
Idempotency-Keystring required
Key unik per operasi (maks 255 karakter, disimpan 24 jam). Request ulang dengan key sama mengembalikan response asli tanpa efek ganda.
Request body
Example request
{
"model": "google/veo-3.1",
"input": {
"prompt": "A cinematic sunrise above Jakarta",
"duration_seconds": 8,
"aspect_ratio": "16:9"
}
}Response
Task diterima dan berstatus queued.
Example response
{
"id": "task_01J8Z3N0V9X2M4K6P8Q0R2S4T6",
"model": "google/veo-3.1",
"price": {
"estimated": 22500,
"reserved": 22500
}
}Changes
No recorded changes to this operation across all 1 revision of this API.