Skip to main content
  • Endpoint: POST https://refillapi.com/v1/videos (async task)
  • Prices

Request

string
required
Bearer YOUR_API_KEY
string
required
One of the IDs above.
string
Picture and motion. Required for text to video; recommended otherwise.
integer
default:"5"
Length in whole seconds — see the table above.
string
default:"1080P"
See the table above.
string
16:9, 9:16, 1:1, 4:3 or 3:4. Wan 3.0 also accepts adaptive (follow the first frame, the default). For wan2.7-i2v the ratio always follows the first frame.
string[]
Public image URLs: the first is the first frame, the second (optional) is the last frame. Required for wan2.7-i2v; not used by wan2.7-t2v.
object[]
Wan 3.0 only. Reference media, each {"type": "reference_image", "url": "https://..."}. type is reference_image (up to 10), reference_video (up to 5) or reference_audio (up to 5). Do not combine with images.
string
What you do not want to see.
integer
Random seed.
boolean
default:"true"
Let the model rewrite and expand the prompt.

Text to video

First and last frame

Reference media (Wan 3.0)

Polling and download work as in Video generation. Wan tasks usually take 1–3 minutes.

Billing

Per second of output, with one price per resolution. On Wan 3.0, reference videos are billed by their length at the same price; reference images and audio are free. The requested length is held when you submit — 30 seconds when seconds is -1 or a reference video is attached — and settled when the task finishes. Failed tasks are refunded in full.

Errors