# Wan 2.7 I2V > Alibaba Wan 2.7 image-to-video model. Animates a first frame (and optional last frame or continuation clip) with audio synchronization, up to 15 seconds, at 720p or 1080p. - **Provider**: replicate - **Model ID**: wan-video/wan-2.7-i2v - **Category**: video_generation - **Credits**: 1740 per request - **Pricing Type**: input_based ## API Endpoint Base URL: https://api.core.today/v1 ### Create Prediction POST /predictions ### Get Status GET /predictions/{job_id} ### Cancel DELETE /predictions/{job_id} ## Authentication Header: `X-API-Key: YOUR_API_KEY` ## Input Parameters - `duration` (integer, optional): Duration of the generated video in seconds (Default: `5`; Range: min: 2, max: 15) - `seed` (integer, optional): Random seed for reproducible generation. Range: 0-2147483647 - `negative_prompt` (string, optional): Negative prompt — describes content that should not appear in the video (Default: ``) - `last_frame` (string, optional): Last frame image for first-and-last-frame video generation (jpg/png/bmp/webp, ≤20MB). Requires first_frame. - `audio` (string, optional): Audio file (wav/mp3, 3-30s, ≤15MB) for voice/music synchronization. If not provided, the model auto-generates matching audio. - `prompt` (string, optional): Text prompt for video generation (Default: ``) - `first_clip` (string, optional): Video clip to continue from (mp4/mov, 2-10s, ≤100MB). Cannot be combined with first_frame. - `resolution` (string, optional): Output video resolution (Default: `1080p`; Options: `720p`, `1080p`) - `first_frame` (string, optional): First frame image to animate into video (jpg/png/bmp/webp, ≤20MB) - `enable_prompt_expansion` (boolean, optional): Automatically expand and optimize the prompt for better results. Improves quality for short prompts but increases latency. (Default: `True`) ## Example Request ```json { "model": "wan-video/wan-2.7-i2v", "input": { "prompt": "your prompt here" } } ``` ## Response Format ```json { "job_id": "abc123", "status": "pending", "provider": "replicate", "model": "black-forest-labs/flux-schnell", "created_at": "2026-01-01T00:00:00Z", "result": null, "error": null } ``` Status values: `pending`, `processing`, `completed`, `failed`, `cancelled` ## Usage Flow 1. POST /predictions with model and input → receive job_id 2. Poll GET /predictions/{job_id} until status is `completed` or `failed` 3. Result contains output URL(s) or data ## Output Type url ## Tags wan, alibaba, video-generation, image-to-video, audio-sync ## Documentation https://replicate.com/wan-video/wan-2.7-i2v