Skip to content

Wan 3.0 (DashScope)

POST /v1/videos

Wan 3.0 video generation through the DashScope-format integration: asynchronous tasks, native synchronized audio, 2–30-second generation (or -1 for model-decided duration), and first/last-frame, reference-image, reference-video, and reference-audio inputs.

Model IDPositioning
tk-wan3.0-videoStandard
tk-wan3.0-video-primeFaster generation, higher rate

Both models share the same capabilities and parameters; only speed and price differ.

Checked against the API request validator on November 10, 2026.

API fieldTypeRequiredValues / limit
modelstringYestk-wan3.0-video or tk-wan3.0-video-prime
promptstringYesNonempty; at most 6,000 characters
secondsintegerNo2–30, or -1 for model-decided duration; default 5
metadata.resolutionstringNo480P, 720P, 1080P; default 1080P — omitted resolution bills at the 1080P rate
metadata.ratiostringNoadaptive (default), 16:9, 9:16, 1:1, 4:3, 3:4, 21:9
metadata.mediaarrayNo{type, url} entries; see reference media below
metadata.audiobooleanNoGenerated audio track; default true
metadata.watermarkbooleanNo“AI-generated” watermark; default false
metadata.seedintegerNoRandom seed
metadata.prompt_extendbooleanNoModel rewrites/expands the prompt; default true

Each metadata.media entry contains type and url:

typeLimitNotes
first_frame1—
last_frame1Requires first_frame in the same request
reference_image10—
reference_video51–15 s per clip, 15 s total; also used for video editing/extension
reference_audio51–15 s per clip, 15 s total
  • First/last frames and reference media are mutually exclusive; reference images, videos, and audios combine freely.
  • Prompt-referencing: “Image 1”, “Video 1”, “Audio 1” by order within each type.
  • URLs must be directly downloadable over public HTTP(S).
  • file and link media types are not supported and are rejected.
Terminal window
curl https://api.apimart.cc/v1/videos \
-H "Authorization: Bearer $HIPIX_API_KEY" \
-H "Content-Type: application/json" \
--data-raw '{"model": "tk-wan3.0-video", "prompt": "A cat running on a moonlit rooftop, neon lights in the distance", "seconds": 5, "metadata": {"resolution": "720P", "ratio": "16:9", "audio": true}}'

Save the returned id and poll GET /v1/videos/{id}. On completed, url points to the HiPix content endpoint; you can also request /v1/videos/{id}/content. Check usage logs for the actual charge.

  • Billed per second at the output resolution rate (see the model square for current rates).
  • Reference-video input seconds are billed too, at the same resolution rate: billed seconds = output seconds + reference-video input seconds. The completion response’s resolution (SR) is the rate actually charged.
  • First/last frames, reference images, and reference audio are not billed.
  • Generated audio, watermark, seed, and prompt_extend do not change the price.
  • Failed tasks are not billed. Content-moderation failures (DataInspectionFailed) and suspected IP infringement (IPInfringementSuspect) surface as task failures.
  • Parameter-range violations may fail at submission or as a task failure — both are handled as failures and not billed.
  • An unspecified metadata.resolution bills at the 1080P rate; always pass resolution explicitly.
  • duration: -1 (model-decided) bills the actual generated seconds; the reservation uses the documented 30-second maximum and is reconciled after completion.