Wiring an AI video API into an agentic creative pipeline is a different job from prompting a chat model. Video generation is asynchronous, billed by the second or by a token formula, and fenced by reference-asset rules that reject naive requests — so the integration layer, not the model, decides whether your creative ops actually work.
The timing matters because two major video models arrived on the same day — July 31, 2026 — with genuinely different API economics. MiniMax’s H3 shipped with a live endpoint and flat per-second pricing; ByteDance’s Seedance 2.5 launched as a consumer product while its BytePlus ModelArk API access is still listed as coming soon. Any team building creative automation this quarter has to integrate against both patterns.
This guide treats video APIs as agent tools: the create-and-poll job lifecycle, a worked request anatomy for H3, the ModelArk contrast, the two billing primitives, the cost guards and review gates that keep an autonomous pipeline from burning budget or embarrassing a client, and how to route premium versus cheap models. Everything is sourced from vendor documentation retrieved July 31, 2026, with the unverified edges flagged as such.
- 01Every serious video API is now an async job queue.Create a task, get an ID back, then poll or take a webhook — MiniMax H3, BytePlus ModelArk, and Replicate all document the same shape, because rendering outlasts an HTTP timeout. Design the agent around jobs, not calls.
- 02Billing primitives diverge — cost guards must be model-aware.H3 bills a flat rate per second by resolution tier ($0.13/s at 2K, $0.09/s at 768P). ModelArk bills tokens: duration × width × height × fps ÷ 1024, at per-model rates. One global cost formula will misprice one of them.
- 03Resolution laddering is vendor-supported, not a hack.H3 publishes a cheaper 768P tier, and Seedance 1.5 Pro has a documented draft mode billed at ×0.6-0.7 of normal token consumption. Draft cheap with a reviewer in the loop, then re-render approved concepts at full quality.
- 04Reference assets are governed inputs, not free-form uploads.H3 caps references at 9 images, 3 videos, and 3 audio clips per request; ModelArk blocks direct upload of real-face images on Seedance 2.0-series models. Pipelines need per-vendor validation and a consent step before submission.
- 05Route video models the way you already route LLMs.Premium tier for client-facing hero renders, floor-price models (Seedance 1.0 Pro Fast at $1.00/M tokens) for variant exploration, aggregators when model count outgrows direct integrations. Seedance 2.5's API is still pending — plan for it, don't ship against it.
01 — Why NowVideo generation just became an agent tool, not a destination.
For most of 2025, AI video meant a creative sitting in a web UI, prompting and re-prompting. The July 31 double launch marks the point where the API surface is strong enough to fold video generation into an automated creative-ops pipeline — an agent that drafts concepts, submits render jobs, tracks spend, and queues outputs for human review before anything reaches a client.
The two launches split cleanly along the build-versus-wait line. MiniMax H3 shipped with a live v2 endpoint on day one — you can integrate it this afternoon. ByteDance’s Seedance 2.5 launched as a consumer product first, with its ModelArk API access still listed as pending. And for what the new per-second rates do to ad economics specifically, we ran the numbers in our price-war breakdown of 2K at $0.13/second.
This post is the durable companion to that news cycle: the integration patterns that will outlive this week’s model names. The vendors will keep leapfrogging each other; the job lifecycle, billing primitives, and governance gates below change far more slowly.
02 — The Job LifecycleOne de facto standard: create a job, then poll or take the webhook.
No production video API returns a video in the HTTP response. Rendering takes longer than a request timeout, so every vendor has converged on the same shape: POST a task, get an ID back immediately, then either poll a status endpoint or register a webhook for completion. MiniMax’s H3 create endpoint returns a task_id and nothing else. Replicate’s prediction API documents the identical pattern — a prediction object that moves through starting and processing to a terminal succeeded, failed, or canceled state, consumed via polling or a webhook with a webhook_events_filter. BytePlus ModelArk’s task API is built the same way.
Three independent vendors documenting the same lifecycle is enough to design against it as a standard. For an agent, that means video generation is a stateful tool: the tool call ends at submission, and a separate loop — or a webhook handler — owns completion, retries, and budget accounting. Teams that already run durable agent workflows will recognize this as the same discipline covered in our agent rollback and checkpoint patterns reference — every submitted job is a side effect your pipeline must be able to track, cancel, or write off.
# 1 — create the job (returns immediately)
POST https://api.minimax.io/v2/video_generation
Authorization: Bearer $MINIMAX_API_KEY
{
"model": "MiniMax-H3",
"content": [
{ "type": "text",
"text": "Product hero: slow dolly-in on the bottle, studio lighting" }
],
"resolution": "2K",
"duration": 12,
"ratio": "16:9",
"callback_url": "https://pipeline.example.com/hooks/minimax"
}
# response — a handle, not a video
{ "task_id": "..." }
# 2 — a separate query-task endpoint is polled with the task_id
# status flow (per MiniMax docs, field names illustrative):
# queued -> running -> succeeded | failed | expiredTwo integration notes on that sample. First, the content-item field names are illustrative — verify the exact request schema against the live MiniMax reference before shipping, since prose docs and machine schemas drift (more on that in the next section). Second, the webhook path has a concrete gotcha: MiniMax’s server sends a verification challenge that your receiving endpoint must answer within 3 seconds, or callback registration fails. A cold-starting serverless function can miss that window — keep the handler warm or answer the challenge before doing any work.
03 — Worked ExampleMiniMax H3: request anatomy and its hard limits.
H3’s v2/video_generation endpoint takes bearer-token auth and four required parameters: model (currently only MiniMax-H3 on this endpoint), content (a multimodal array that must include at least one non-empty text item, capped at 7,000 characters, with the whole request body limited to 64 MB), resolution, and duration — an integer from 4 to 15 seconds. The optional ratio defaults to adaptive and also accepts 21:9, 16:9, 4:3, 1:1, 3:4, and 9:16. Error codes are conventional: 400 invalid params, 401 auth, 402 insufficient balance, 422 sensitive-content rejection, 429 rate limit, 500 server error.
The interesting part is the reference-input system — the mechanism that makes H3 usable for brand-consistent creative rather than one-off clips.
Image-to-video
Anchor the clip's opening or closing frame to a supplied image. Image constraints: JPG/JPEG/PNG/WEBP/HEIC/HEIF, up to 30 MB per file, 256-5760px on each side, aspect ratio between 0.4 and 2.5.
Reference-to-video
Condition generation on up to 9 reference images, 3 reference video clips (2-15s each, 15s combined), and 3 reference audio clips. Video: MP4/MOV, H.264/H.265, up to 50 MB per file. Audio: WAV/MP3, up to 15 MB.
Billing is pay-as-you-go only — MiniMax’s docs state that existing prepaid Hailuo packages do not cover H3 yet, which matters if your finance team assumed the old plan carried over. Reference images are free for the first 5 per request, then $0.04 per image; reference audio input is free. MiniMax’s own marketing describes 2K generation as less than one-third the cost of unnamed mainstream rivals — treat that as vendor positioning, not an independent benchmark.
04 — Second ExampleBytePlus ModelArk: stricter combinations, different rules.
The Seedance family runs through BytePlus ModelArk’s video-generation task API. Same async job shape — but the input rules are stricter, and they break the naive assumption that every video API accepts any combination of inputs. Content combinations are mutually exclusive: a request can use first-frame-only, first-plus-last-frame, or multimodal reference mode (image + video + audio) — but cannot mix frame anchoring with reference mode in one call. An agent that assembles requests dynamically needs per-mode validation, or it will generate 400s instead of videos.
The model roster matters too. Available on the endpoint today: the Seedance 2.0 series, Seedance 1.5 Pro, Seedance 1.0 Pro, and Seedance 1.0 Pro Fast — each supporting different subsets of text-to-video and frame-anchored modes. Seedance 2.5, the model that launched to consumers today, is not yet callable. Multimodal-reference limits mirror H3’s pattern at different ceilings: 1–9 images, up to 3 video clips (2–15s each, 15s combined, 480p–4K, up to 200 MB per file, 24–60fps), aspect ratio 0.4–2.5.
05 — BillingPer-second vs tokens: two billing primitives, one pipeline.
Here is where a single global cost formula fails. MiniMax bills H3 at a flat rate per output second, tiered by resolution. BytePlus bills by estimated token consumption: (input video duration + output video duration) × output width × output height × output frame rate ÷ 1024, multiplied by a per-model token rate. Your pipeline’s budget-cap logic has to price each job with the correct vendor’s function before submission — the table below is the reference card.
| Billing dimension | MiniMax H3 | BytePlus ModelArk (Seedance) | What your pipeline must do |
|---|---|---|---|
| Pricing unit | Flat rate per output second, tiered by resolution | Tokens: (input + output duration) × width × height × fps ÷ 1024, × per-model rate | One cost function per vendor — a global formula misprices one of them |
| Published rates | 2K $0.13/s · 768P $0.09/s · pay-as-you-go only (prepaid Hailuo packages excluded) | Seedance 2.5: $10.70/M tokens (480p/720p, no video input) · $6.40/M with video input · Seedance 1.0 Pro Fast $1.00/M | Load rates from config at submit time — hardcoded prices go stale silently |
| Reference inputs | First 5 images free, then $0.04/image; audio input free | Priced through the token formula; minimum-token floors apply when input includes video | Validate counts pre-submit; floors mean short test clips are not always cheap |
| Failed jobs | No free-on-failure language in the docs as fetched — assume billed and cap retries | Free — only successfully generated videos are charged | Enforce client-side retry caps regardless of vendor policy |
| Cheap-draft path | 768P tier at $0.09/s — about 31% below the 2K rate per second ($0.09 vs $0.13) | Draft mode (Seedance 1.5 Pro): tokens × 0.7 silent, × 0.6 with audio | Ladder every concept: draft cheap, final render only after sign-off |
ModelArk video-model token rates · USD per 1M tokens
Source: BytePlus ModelArk pricing documentation, retrieved July 31, 2026 · USD per million tokens, online inferenceTwo counterintuitive readings of that chart, both derived from BytePlus’s own published formula. First, video-conditioned generation is cheaper per token — Seedance 2.5 drops from $10.70/M to $6.40/M when input includes video, roughly 40% lower per token ($6.40 vs $10.70). Second, the 4K rate on Seedance 2.0 ($4.00/M vs $7.00/M at 480p/720p) does not make 4K cheap: token count scales with width × height, and a standard 3840×2160 UHD frame carries nine times the pixels of 1280×720 — so by the published formula the same clip at 4K still costs roughly five times the 720p total despite the lower rate. Per-token prices are not per-video prices.
A worked example of the formula: a five-second 720p (1280×720) output at 24fps with no video input is 5 × 1280 × 720 × 24 ÷ 1024 = 108,000 tokens — about $1.16 at Seedance 2.5’s published $10.70/M no-video rate, a rate BytePlus lists ahead of that endpoint going GA. Treat that as an estimate, not an invoice: BytePlus applies minimum-token floors on Seedance 2.0/2.5 when input includes video, and points builders at model-specific pricing calculators rather than the flat formula for those cases.
"You are only charged for successfully generated videos. No fee is charged if generation fails due to reasons such as content moderation."— BytePlus ModelArk pricing documentation
06 — Cost GuardsBudget caps and resolution laddering, enforced client-side.
That free-on-failure policy is generous — and it is the exception. MiniMax’s H3 docs, as fetched, contain no equivalent statement, so the safe engineering assumption is that failed or rejected attempts can still cost you. The scenario that actually burns budget is an autonomous agent retrying: a 15-second 2K H3 render is $1.95 in raw compute per attempt (15s × $0.13), and an agent that blindly re-submits on a 422 content-moderation rejection multiplies that with every loop. This is Digital Applied’s operating playbook rather than any vendor’s recommendation, but the guards are simple and cheap to build.
Per 15-second 2K attempt
15 seconds × $0.13/s on H3's published 2K rate — before any retry. Give every job a hard attempt cap and a per-job budget ceiling the agent cannot override; treat a 422 as a prompt problem, not a transient error.
768P vs 2K per second
$0.09 against $0.13 per second on H3's published tiers — $1.35 vs $1.95 for a 15-second clip. Iterate concepts at the cheap tier with a reviewer in the loop; re-render only the approved cut at 2K.
Seedance 1.5 Pro draft mode
ModelArk's documented draft pass bills token consumption at ×0.6 with audio (×0.7 silent) — the token-billing version of resolution laddering, supported by the vendor rather than improvised by you.
The deeper principle: laddering is not a workaround, it is how both vendors expect you to work. H3 prices a draft tier; ModelArk documents a draft mode. The same spend discipline we apply to LLM routing — covered in our AI cost-optimization routing playbook — transfers to video almost unchanged: cheap tier for iteration volume, premium tier for the deliverable, and telemetry on every job. Replicate even hands you the telemetry directly — its prediction responses include metrics.predict_time and metrics.total_time, actual compute-time figures you can feed straight into a cost-per-asset dashboard.
07 — GovernanceReference assets and the human review gate.
An agentic pipeline’s asset library is not a folder — it is a validated, per-vendor input contract. Exceeding H3’s reference caps (9 images, 3 videos, 3 audio clips), submitting a 60 MB video where the limit is 50 MB, or mixing ModelArk’s frame-anchoring mode with reference mode returns a hard 400 rather than degrading gracefully. Validation belongs in your pipeline, before the API call — every rejected submission is wasted wall-clock time in a queue-based system even when it costs nothing in fees.
That restriction is also the strongest argument for the review gate. The vendors are effectively forcing a governance checkpoint into any pipeline that touches recognizable people — so make it explicit: no render reaches a client without a named human approving it. In practice the gate slots naturally at the ladder boundary — a reviewer approves the cheap draft before the premium re-render, and approves the premium render before delivery. Two clicks, and the agent handles everything between them. We use the same two-gate shape in product-swap ad workflows for ecommerce, where brand safety and product accuracy carry real commercial risk.
What about the vendor case studies promising order-of-magnitude gains from exactly these pipelines? Vendor-published blogs claim agencies have multiplied video output or cut production costs dramatically — but none we reviewed publish an auditable methodology, so we treat them as marketing color rather than planning inputs. Budget from your own draft-to-approval ratios after the first month of telemetry, not from a vendor’s blog.
08 — RoutingPremium vs cheap, direct vs aggregator.
With the mechanics in place, the last design decision is routing: which jobs go to which model, and whether you integrate vendors directly or through an aggregation layer. Replicate is the primary-documented example of the latter — one auth scheme, one prediction lifecycle, many models. fal.ai plays the same role; third-party commentary describes it as a single API surface over a 600-plus-model catalog and has dubbed it “the OpenRouter of Media,” with client SDKs that wrap the queue-and-poll dance in a single subscribe-style call (we did not audit fal.ai’s own reference in this pass — verify its exact endpoint shapes before building against them).
Client-facing finals
Route to the vendor's top tier — H3 at 2K today, Seedance 2.5 once ModelArk access opens. This is the spend that carries the brand; the premium is small next to the media budget behind the asset.
Iteration with a reviewer in the loop
768P on H3, or a documented draft mode where the vendor offers one. Cheap enough to explore five directions per brief, gated so only the approved concept graduates to a full-quality render.
A/B batches and internal concepting
Floor-price models — Seedance 1.0 Pro Fast at $1.00/M tokens is less than a tenth of Seedance 2.5's $10.70/M no-video rate. The classification-model tier of video: volume work where per-unit quality matters less than coverage.
Direct vendor vs aggregator
Direct integration gets day-one access to launches like H3 and the vendor's full parameter surface. Aggregators like Replicate and fal.ai trade some of that for one lifecycle across many models. Two direct vendors is manageable; five is an argument for the aggregator.
Looking forward, expect the two billing primitives to persist even as prices fall — per-second is easy to explain to a CMO, token formulas price resolution and frame rate more honestly, and neither vendor has an incentive to blink first. The practical consequence: the cost-guard layer you build now is durable infrastructure, not launch-week scaffolding. If you want the model-side view of how a frontier LLM plus a video model combine into one storyboard-first workflow, our Fable 5 + Seedance ad-creative pipeline guide covers the creative-direction half of this architecture — and if you would rather have the whole pipeline designed and operated for you, that is exactly what our AI transformation engagements build.
09 — ConclusionThe pipeline is the product.
Models will keep leapfrogging. The integration layer is what compounds.
The July 31 double launch is a milestone for video models — but for creative operations, the durable story is the API pattern underneath. Create-a-job, poll-or-webhook, terminal statuses: that shape is now consistent across MiniMax, BytePlus, and the aggregators, which means you can architect an agentic pipeline once and swap models as the leaderboard churns.
The parts that reward engineering care are exactly the parts this post inventoried: model-aware cost functions (flat per-second vs token formulas), client-side budget caps and retry limits, vendor-supported draft ladders, per-vendor asset validation, and a human review gate at the draft and delivery boundaries. None of it is glamorous. All of it is the difference between a pipeline that quietly produces approved creative and an agent that burns a month’s render budget on rejected moderation retries.
Start small: one vendor, one draft tier, one reviewer, full telemetry. Add the second vendor when Seedance 2.5’s API goes GA and you can benchmark the two billing primitives on your own briefs — measured, gated, and priced per job rather than per hope.