Payment confirmed — your credits are live in your studio balance.Start Generating
Your checkout is finalizing. Credits appear automatically within seconds once confirmed.Check Account
Video Generation API Architecture
Seedance 2.0 & MAGI-2 Video API Template Reference
Production patterns for text-to-video and image-to-video endpoints—covering idempotency, async polling, fail-closed moderation, and cost-per-second budgeting.
1. Asynchronous Video Generation Pattern
Frontier video models take 45–90 seconds per clip and must never be called synchronously inside short edge timeouts:
Pre-screen uploads (fail-closed): For image-to-video, validate MIME type (JPG/PNG/WebP ≤ 5 MB) and run nsfw-filter-2 before deducting credits or submitting to the video model.
Submit once with Idempotency-Key: Generate a unique UUID per job so network retries never trigger duplicate upstream GPU billing.
Receive signed callback + poll fallback: Verify webhook HMAC signatures on your backend and poll job status every 3–5 seconds as a fallback.
Atomic credit refund on failure: If status resolves to failed, canceled, or expired, immediately refund 100% of deducted credits to the originating credit bucket.
2. Parameter Matrix (Seedance 2.0 vs MAGI-2 Reference)
Parameter
Seedance 2.0 (Live on HungerG)
MAGI-2 Reference API (Sand.ai)
Modalities
text-to-video, image-to-video
text-to-video, image-to-video, omni-reference (up to 20 items)