Wan and Gemini Omni
Wan Video and Image
Wan 3.0 and 2.x API models, first and last frames, driving audio, image generation, and pricing
POST
Send a JSON body to
POST https://api.maxapi.io/api/v1/task/submit with an API key. Set model to an ID below and put generation settings in the input object. To receive a webhook, optionally add a top-level callBackUrl string.
Video models
Video request fields
Video modes and media
Pass media as JSON arrays of direct, publicly fetchable HTTP(S) file URLs. Use an array even for a single file, for example"imageUrls": ["https://cdn.example.com/start.jpg"]. Replace the example URLs with your own. Signed URLs must remain readable for the duration of the task without extra headers or cookies.
Without
mode, zero images select text-to-video and one image selects image-to-video on models supporting those modes. Two images on 3.0 or Prime select reference mode. Two images on 2.7 select first/last frame mode. Flash requires one opening image. The public Wan API currently accepts image references only in reference mode. Omit videoUrls for all Wan models.
Driving audio
On Wan 2.x video, put one public audio file URL inaudioUrls[0] to guide the video with a supplied track. This works with text-to-video and image-to-video where supported, and with first/last frames on Wan 2.7. A text-to-video request on those models can send a prompt and an audio URL without images. On 2.6 Flash, use audio: false and omit audioUrls for a silent clip. Wan 3.0 and Prime use input.audio to toggle generated sound.
Image models
Each task returns one image. Omit
imageUrls for text-to-image. Provide up to nine URLs for image-to-image and describe the changes in prompt. Image models infer the task from imageUrls; omit mode.
Request examples
Choose a mode in the examples. The first example fixes both frames withwan-3.0. The image-to-video example passes a driving audio track with wan-2.7.
Get the result
Readdata.taskId after submission, then query the task or use a webhook. When data.status reaches SUCCESS, read the video or image URL from data.result.urls[0]. Stop polling on SUCCESS, FAILURE, TIMEOUT or CANCELLED.
Video pricing (USD per second)
Multiply the rate by the output duration and round the total up to a whole credit. One credit is $0.01. For example, a five-second 720p clip from
wan-3.0 costs 58 credits.