APIMart
Wan 2.7 model icon
Video

Wan 2.7 API

Wan 2.7 API (Wan2.7) on APIMart runs Alibaba's Wan 2.7 video model with one model ID, wan2.7. It creates 2–15 second videos at 720P or 1080P from a text prompt, a first frame, first and last frames or a source clip to continue, and can follow a reference audio track.

2–15 Seconds720P / 1080PFirst & Last FrameVideo Continuation

Service Highlights

  • Official Discounts
  • Pay-as-you-go
  • Fast & Low Latency
Input
28/5000
5s
Prompt Extend
Watermark
  

Upload audio file

WAV, MP3 (max 15MB)

Output

Video link valid for 72 hours

Wan 2.7 API Pricing

Transparent pricing with no hidden fees. Pay only for what you use.

VariantTierGoldCurrent pricePlatinumDiamondOfficialYour savings
wan2.7720P0.664Credits(~$0.0664)/sec0.6308Credits(~$0.0631)/sec0.5976Credits(~$0.0598)/sec0.83Credits(~$0.083)/sec20%
1080P1.096Credits(~$0.1096)/sec1.0412Credits(~$0.1041)/sec0.9864Credits(~$0.0986)/sec1.37Credits(~$0.137)/sec20%

* Actual costs are subject to final output.

Wan 2.7 API - Alibaba Wan2.7 Video Generation

Wan 2.7 API access on APIMart: turn a prompt, a first frame, first and last frames or an existing clip into a 2–15 second video at 720P or 1080P, with optional driving audio and per-second billing.

50K+

Active Users

99.9%

Uptime

2x

Faster

—

Cost Savings

Wan 2.7 API Example: Text to Video and First and Last Frame

Call the Wan 2.7 API on APIMart with one POST request. Generation is asynchronous: submit a task, then poll the task endpoint for the video URL.

  1. 1

    Authenticate Wan 2.7 API requests

    Save your APIMart key in the APIMART_API_KEY environment variable and send it as Authorization: Bearer <key> on every request.

  2. 2

    Submit a Wan 2.7 task

    POST /v1/videos/generations with model wan2.7, your prompt, duration, resolution and size. Add one or two image_urls for image to video. The task ID is in data[0].task_id.

  3. 3

    Get the Wan 2.7 video result

    Poll GET /v1/tasks/{task_id} until status is completed, then read the video URL from data.result.videos[0].url[0] and save the file to your own storage.

    See the Wan 2.7 API reference for every parameter, mode rule and response field.

POST /v1/videos/generations
curl -X POST https://api.apimart.ai/v1/videos/generations \
  -H "Authorization: Bearer $APIMART_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "model": "wan2.7",
    "prompt": "A red kite rises over a windy beach at sunrise, children running below, handheld camera, warm golden light",
    "duration": 5,
    "resolution": "720P",
    "size": "16:9"
  }'

Wan 2.7 API Parameters

ParameterTypeRequiredDefaultDescription
modelstringRequiredDefault: wan2.7Use wan2.7 for every Wan 2.7 generation mode.
promptstringRequiredDefault: —Scene and motion description, up to 5,000 characters. Optional for image to video.
negative_promptstringOptionalDefault: —Content to avoid, up to 500 characters.
resolutionstringOptionalDefault: 1080P720P or 1080P.
durationintegerOptionalDefault: 5Length in seconds, any whole number from 2 to 15.
sizestringOptionalDefault: 16:916:9, 9:16, 1:1, 4:3 or 3:4. Text to video only; image to video follows the input image.
image_urlsarrayOptionalDefault: —One image for a first frame, or two for first and last frames. Not combinable with video_urls.
image_with_rolesarrayOptionalDefault: —Images labeled first_frame or last_frame. Use instead of image_urls.
video_urlsarrayOptionalDefault: —A 2–10 second mp4 or mov (up to 100 MB) to continue. Only the first video is used.
audio_urlstringOptionalDefault: —wav or mp3, 2–30 seconds, up to 15 MB. Background music for text to video, driving audio for image to video.
prompt_extendbooleanOptionalDefault: trueRewrite and enrich the prompt. Helps short prompts but adds latency.
seedintegerOptionalDefault: —0 or greater. The same seed gives similar, not identical, results.
watermarkbooleanOptionalDefault: falseAdd an AI-generated watermark.
nsfw_checkbooleanOptionalDefault: falseModerate the prompt and input images with omni-moderation-latest before submission.

Compare Alibaba Wan Video Models

Compare every Alibaba Wan video model on APIMart. One API key calls all of them, billed per second of video.

ModelBest forResolutionDuration
Wan 3.0 APILongest Wan clips, with first and last frames or image, video, audio, document and webpage references480P / 720P / 1080P2–30 s
Wan 3.0 Prime APISame parameters as Wan 3.0 under a separate model and price480P / 720P / 1080P2–30 s
Wan 2.7 APIThis pageText to video, first and last frames, video continuation and audio-driven clips720P / 1080P2–15 s
Wan 2.7 R2V APIKeeping characters consistent from reference images or videos720P / 1080P2–15 s
Wan 2.7 Video Edit APIEditing or restyling an existing video with an instruction720P / 1080PFollows source, up to 10 s
Wan 2.6 APIMulti-shot text to video and image to video with audio and effect templates720p / 1080p5 / 10 / 15 s
Wan 2.6 I2V APIDedicated image to video from a single first frame720p / 1080p5 / 10 / 15 s
Wan 2.6 I2V Flash APIImage to video at any length from 2 to 15 seconds, with or without audio720p / 1080p2–15 s
Wan 2.5 APIShort clips that always include sound, with a low-cost 480p tier480p / 720p / 1080p5 / 10 s

Guides, comparisons and pricing analysis from the APIMart blog.