APIMart
GccAi

How to Get Started with Wan 2.5 Preview

A quick Wan 2.5 Preview guide for developers — set up the API, write cinematic T2V and I2V prompts, add synced audio, and manage cost for 1080p video.

Tutorial

Wan 2.5 Preview is a video generation tool by Alibaba that turns text descriptions or images into short cinematic clips with synchronized audio. It supports two modes: text-to-video (T2V) and image-to-video (I2V). Other high-performance models like Kling V3 offer similar cinematic capabilities. Key features include one-pass audio-visual creation, precise lip-syncing, and outputs up to 1080p at 24fps for 5- or 10-second videos. Integration is made easy through APIMart, a platform offering a unified API for seamless access. Pricing starts at $0.0336/second for 480p. Here's what you need to know to get started:

  • Modes: T2V for creating videos from text prompts, I2V for adding motion to images.
  • Quality: Outputs in 480p, 720p, or 1080p with 48kHz stereo audio.
  • Pricing: Pay-as-you-go, billed per second of video generated.
  • Setup: Works with Python or Node.js using a REST API. Requires an API key from APIMart.
  • Workflow: Submit a request, get a task ID, and poll for the result.

Start with a 5-second 480p clip to test your setup. Once comfortable, scale up to 1080p for final renders. Use detailed prompts for better results, and incorporate audio instructions for synchronized sound.

This guide covers everything from setting up your environment to crafting prompts and managing costs effectively.

Key Takeaways

  • Wan 2.5 Preview is Alibaba's video generation model that turns text or images into 5- or 10-second clips at up to 1080p and 24fps with synchronized 48kHz stereo audio.
  • Setup uses plain REST calls to https://api.apimart.ai with a Bearer API key from APIMart; a 401 error means a bad key and 402 means low balance.
  • Requests to wan2.5-preview (add image_urls for image-to-video) return a task_id that you poll until the status is completed; generation takes 1–5 minutes, and APIMart keeps the result for 72 hours (see expires_at).
  • Prompts of 80 to 120 words with camera terms, quoted dialogue, and sound cues work best; prompt_extend expands short prompts and a custom audio_url (.wav/.mp3, max 15 MB) is supported.
  • Pricing starts at $0.0336/second for 480p; draft at 480p for 5 seconds (43 credits), then render 1080p at 128 credits for 5 seconds or 255 credits for 10 seconds.
  • Source images for I2V must be 360 to 2,000 pixels per side and under 10 MB, and the output aspect ratio follows the source image.

Wan 2.5 Preview at a Glance

SpecificationDetails
DeveloperAlibaba
Model typeText-to-video (T2V) and image-to-video (I2V) with synchronized audio
InputsText prompt; source image 360–2,000 px per side, max 10 MB; optional audio_url (.wav/.mp3, max 15 MB)
OutputMP4 at 480p, 720p, or 1080p, 24 fps
Clip length5 or 10 seconds (fixed)