APIMart
Wan 2.7 R2V model icon
Video

Wan 2.7 R2V API

Wan 2.7 R2V API (wan2.7-r2v) on APIMart runs Alibaba's Wan 2.7 reference-to-video model. Give it up to 5 reference images and videos of characters, props or scenes, cite them in the prompt, and it generates a new 2 to 15 second shot at 720P or 1080P that keeps their look, with an optional reference voice for each character.

Reference to VideoUp to 5 References2–15 SecondsReference Voice

Service Highlights

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

Click to upload reference audio

WAV, MP3 (max 15MB)

Output

Video link valid for 72 hours

Wan 2.7 R2V API Pricing

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

VariantTierGoldCurrent pricePlatinumDiamondOfficialYour savings
wan2.7-r2v720P0.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 R2V API - Alibaba Wan Reference to Video

Use the Wan 2.7 R2V API on APIMart to turn reference images or videos of characters, props and scenes into a new 2 to 15 second video at 720P or 1080P, with an optional voice sample per character and per-second billing.

50K+

Active Users

99.9%

Uptime

2x

Faster

—

Cost Savings

Wan 2.7 R2V API Example: Reference Image and Reference Video

Call the Wan 2.7 R2V 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 R2V 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 R2V task

    POST /v1/videos/generations with model wan2.7-r2v, a prompt that cites your references, and image_with_roles or video_urls. The task ID is in data[0].task_id.

  3. 3

    Get the Wan 2.7 R2V video

    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 R2V API reference for every parameter, reference 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-r2v",
    "prompt": "The character in image 1 walks through a sunlit flower market, waves at the camera and smiles, gentle handheld shot",
    "image_with_roles": [
      {
        "url": "https://example.com/character.jpg",
        "role": "reference_image"
      }
    ],
    "duration": 5,
    "resolution": "720P",
    "size": "16:9"
  }'

Wan 2.7 R2V API Parameters

ParameterTypeRequiredDefaultDescription
modelstringRequiredDefault: wan2.7-r2vUse wan2.7-r2v.
promptstringRequiredDefault: —Scene description up to 5,000 characters. Cite references as image 1, image 2, video 1 in input order.
image_with_rolesarrayOptionalDefault: —Images with url and role (reference_image or first_frame), plus an optional reference_voice URL. Required if video_urls is empty.
video_urlsarrayOptionalDefault: —Reference clips (mp4 or mov, 1–30 seconds, up to 100 MB). Images plus videos up to 5. Required if image_with_roles is empty.
negative_promptstringOptionalDefault: —Content to avoid, up to 500 characters.
resolutionstringOptionalDefault: 1080P720P or 1080P.
durationintegerOptionalDefault: 52 to 15 seconds, or 2 to 10 when a reference video is included.
sizestringOptionalDefault: 16:916:9, 9:16, 1:1, 4:3 or 3:4. Ignored when a first_frame image is set.
prompt_extendbooleanOptionalDefault: trueRewrite and enrich the prompt. Helps short prompts but adds time.
seedintegerOptionalDefault: —0 or higher. 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 APIText to video, first and last frames, video continuation and audio-driven clips720P / 1080P2–15 s
Wan 2.7 R2V APIThis pageKeeping 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.