wan2.7-r2v API
Generate videos from reference images and videos with Alibaba’s wan2.7-r2v on APISea.
wan2.7-r2vBảng giá API wan2.7-r2v
Tất cả giá đều tính bằng USD. So sánh mức giá của APISea với giá niêm yết chính thức cho cùng đơn vị.
| Tùy chọn | APISea | Chính thức | Tiết kiệm |
|---|---|---|---|
| Mặc địnhMặc định | $0.07304 | $0.0833 | −12% |
| 1080P | $0.1206 | $0.1389 | −13% |
Giá tính theo mỗi giây.
wan2.7-r2v là gì?
wan2.7-r2v is Alibaba’s Wan reference-to-video model for generating new videos from existing visual assets. It supports character consistency, style transfer, and combining multiple assets, making it useful for workflows that start with a character image, scene reference, or video clip. Supply a required text prompt and at least one reference image or video. You can also attach a reference voice to a character image or specify a first-frame image to guide the opening frame.
Controls include 720P or 1080P output, duration, aspect ratio, negative prompts, intelligent prompt rewriting, watermarking, and a seed. Requests go to the video generation endpoint on APISea and return a submitted task identifier. APISea offers pay-as-you-go billing only for successful requests: APISea Default costs $0.07304 per second, about 12% below the provider list price, while APISea 1080P costs $0.1206 per second.
Điểm nổi bật của wan2.7-r2v
Reference-Based Video Generation
Generate new videos using reference images, reference videos, or a combination of both. The model supports consistent characters, styles, and scenes.
Multi-Asset Scene Composition
Combine up to five images and videos in one request. Refer to assets by input order in your prompt, such as “image 1” or “video 1.”
Character Voice Reference
Attach a reference_voice audio URL to a character’s image entry to control that character’s voice in the generated video.
First-Frame and Output Controls
Specify a first_frame image to guide the opening frame and determine the aspect ratio. Other controls include resolution, duration, negative prompts, watermarking, and seed.
Cách gọi API wan2.7-r2v trong 4 bước
- 01
Tạo API key
Đăng nhập APISea, nạp tối thiểu $50 rồi tạo key sk-sea trong bảng điều khiển.
- 02
Đặt base URL
Dùng https://api.apisea.ai/v1 làm base URL trong SDK hoặc HTTP client.
- 03
Gửi request
Gọi POST /v1/videos/generations với "model": "wan2.7-r2v" và các tham số bên dưới.
- 04
Xử lý phản hồi
Phản hồi có chứa task_id. Gửi GET /v1/tasks/{task_id} định kỳ cho đến khi trạng thái là completed, sau đó tải xuống từ các URL kết quả.
Ví dụ request
Tài liệu: Wan2.7-R2V Reference-to-Videocurl --request POST \
--url https://api.apisea.ai/v1/videos/generations \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '{
"model": "wan2.7-r2v",
"prompt": "This person walks down the street surrounded by heavy traffic",
"image_with_roles": [{"url": "https://cdn.example.com/character.jpg", "role": "reference_image"}],
"resolution": "1080P",
"duration": 8
}'Tham số
| Tham số | Loại | Bắt buộc | Mặc định | Mô tả |
|---|---|---|---|---|
model | string | Bắt buộc | — | Video generation model name, fixed as `wan2.7-r2v` |
nsfw_check | boolean | Tùy chọn | false | Whether to run content moderation before submitting the video task. |
prompt | string | Bắt buộc | — | Video content description, up to 5000 characters |
image_with_roles | array\<object\> | Tùy chọn | — | Image array with roles; at least one of this and `video_urls` must be provided |
video_urls | array\<string\> | Tùy chọn | — | Reference video URL array, up to 5 videos (total images + videos ≤ 5) |
negative_prompt | string | Tùy chọn | — | Negative prompt describing unwanted content, up to 500 characters |
resolution | string | Tùy chọn | 1080P | Video resolution |
duration | integer | Tùy chọn | 5 | Video duration (seconds) |
size | string | Tùy chọn | 16:9 | Aspect ratio |
prompt_extend | boolean | Tùy chọn | true | Whether to enable intelligent prompt rewriting |
watermark | boolean | Tùy chọn | false | Whether to add "AI Generated" watermark to the generated video |
seed | integer | Tùy chọn | — | Seed integer used to control the randomness of generated content |
Bạn có thể xây dựng gì với wan2.7-r2v
Character-Based Video Workflows
Build a workflow that uses a character reference image across new video scenes, with an optional voice sample to guide the character’s voice.
Style-Guided Creative Production
Generate new clips using reference assets to guide visual style, characters, and scene design.
Multi-Asset Storyboarding
Combine character and environment references, then describe how they interact using numbered asset references in the prompt.
Opening-Frame Video Creation
Turn a specified opening image into a video, adding reference images to guide the characters or visual style.
Mẹo để có kết quả tốt hơn
- 01
Name Assets Explicitly
For multiple references, use “image 1,” “image 2,” or “video 1” in the prompt to identify each asset in input order.
- 02
Set Duration and Resolution
Set duration and resolution explicitly rather than relying on the defaults of 5 seconds and 1080P. APISea 1080P is priced at $0.1206 per second; requests containing reference videos support only 2–10 seconds.
- 03
Choose Prompt Rewriting Deliberately
prompt_extend defaults to true and can improve short prompts, but it increases processing time. Set it to false when you do not want intelligent prompt rewriting.
- 04
Use Seeds for Iteration
Reuse a nonnegative seed with identical request settings to seek similar results. Exact consistency is not guaranteed, even when the seed stays the same.
Giới hạn và những điều cần biết
Provide at least one reference image or video, with no more than five images and videos combined.
Output duration is 2–15 seconds without reference videos and 2–10 seconds when reference videos are included.
Reference videos must be mp4 or mov, 1–30 seconds long, and no larger than 100MB.
Câu hỏi thường gặp về API wan2.7-r2v
How much does wan2.7-r2v cost on APISea?
APISea Default costs $0.07304 per second, compared with the provider list price of $0.0833 per second—about 12% below list price. APISea 1080P costs $0.1206 per second, compared with the provider list price of $0.1389 per second. Billing is pay-as-you-go and only for successful requests.
How do I call wan2.7-r2v through the API?
Send a POST request to https://api.apisea.ai/v1/videos/generations with Bearer Token authentication and model set to wan2.7-r2v. Include a prompt and at least one of image_with_roles or video_urls; the initial response returns status submitted and a task_id.
Which resolutions and aspect ratios does wan2.7-r2v support?
Resolution options are 720P and 1080P, with 1080P as the default. Aspect ratio options are 16:9, 9:16, 1:1, 4:3, and 3:4; a first_frame image overrides size and determines the aspect ratio.
How many references can I use, and how long can the output be?
You can supply up to five images and videos combined. Generated video duration is 2–15 seconds for image-only references and 2–10 seconds when a reference video is included; the default is 5 seconds.
Can wan2.7-r2v use a reference voice?
Yes. Add a reference_voice audio URL to the relevant object in image_with_roles to control the reference character’s voice in the generated video.
Can I use wan2.7-r2v outputs commercially?
Commercial use is subject to the provider’s terms. Check the applicable terms and your rights to reference images, videos, and voice samples before using outputs commercially.
Model liên quan
wan2.5-preview
wan2.6
wan2.6-i2v
wan2.6-i2v-flash
wan2.7
wan2.7-videoedit
wan3.0-video
wan3.0-video-prime
Bắt đầu xây dựng với wan2.7-r2v
Chỉ cần một key, thanh toán theo mức sử dụng từ $50; chỉ tính phí cho các request thành công.