A genuinely unified public contract
Applications switch among text, frame control, references, documents, and web context by changing standard input fields, while retaining one model ID, task endpoint, callback format, and billing account.
One Wan 3.0 Video API for text, frames, rich media, files, and web pages.
Wan 3.0 All-in-One unifies text-to-video, first/last-frame animation, multimodal reference generation, and content understanding for documents and public web pages. AI Video API exposes the invited Beijing Workspace model through one asynchronous endpoint, exact pre-charging, callbacks, and a consistent task response.
Read the official model and pricing documentationModel capabilities
Use Wan 3.0 from the same platform surface as the rest of your video and image stack: API keys, credits, logs, webhooks, and docs stay consistent across providers.
Use the same wan-3.0-video model ID for text-only generation, a strict first frame, first and last frames, or rich multimodal references. Mode selection follows the supplied media instead of requiring separate public model names.
Attach up to 10 images, five videos, and five audio files. Wan 3.0 preserves each media array's order so prompts can refer to Image 1, Video 1, or Audio 1 while combining visual identity, motion, and sound intent.
Use a supported public document URL or a login-free web page as source material. The model can interpret the content and turn it into a video brief without first converting every page into image references.
Choose an integer duration from 2 to 30 seconds and keep generated audio enabled by default. When reference video is used, its detected total plus output duration must remain within the official 30-second limit.
The API probes every reference video and audio file before charging. It pre-charges for the requested output plus detected input-video duration, refunds confirmed failures, and never refunds a successful generation.
Write a prompt up to 20,000 characters or provide public HTTP(S) media. Frame mode stays separate from reference media, files, and web links, while file_url and link_url remain mutually exclusive.
Choose 2–30 seconds, adaptive or a supported fixed ratio, and 480p, 720p, or 1080p. Auto duration (-1) is intentionally rejected so the platform can pre-charge accurately.
Submit the generation request directly. The platform detects reference-video duration before charging and applies the selected resolution rate.
Track the task through GET /v1/tasks/{taskId} or a callback URL. Wan 3.0 tasks run to a completed or failed terminal state and do not expose task cancellation.
curl -X POST https://api.aivideoapi.ai/v1/videos/generations -H "Authorization: Bearer sk-your-api-key" -H "Content-Type: application/json" -d '{
"model": "wan-3.0-video",
"callback_url": "https://your-server.com/webhook",
"input": {
"prompt": "Video 1 provides the camera move, Image 1 provides the product identity, and Audio 1 guides the soundtrack",
"image_urls": ["https://example.com/product.png"],
"video_urls": ["https://example.com/camera.mp4"],
"audio_urls": ["https://example.com/music.mp3"],
"resolution": "720p",
"aspect_ratio": "adaptive",
"duration": 5,
"audio": true
}
}'Why choose Wan 3.0
Applications switch among text, frame control, references, documents, and web context by changing standard input fields, while retaining one model ID, task endpoint, callback format, and billing account.
Server-side duration detection runs during generation submission. A 4.5-second reference plus five seconds of 720p output produces a 228-credit charge.
The public contract accepts only public HTTP(S) URLs, enforces individual and combined media limits, and documents temporary 24-hour provider links so production systems know when to download or enable storage mirroring.
Frequently asked questions
The Wan 3.0 API is AI Video API's integration for Alibaba's Wan 3.0 All-in-One video model. Use POST /v1/videos/generations with model wan-3.0-video for text, first/last frames, multimodal references, documents, or public web pages, then receive an asynchronous task ID.
The documented tiers are 480p, 720p, and 1080p. The default is 1080p. This integration does not claim native 4K support because Alibaba's current Wan 3.0 API documentation lists only those three resolution tiers.
Wan 3.0 costs 12 credits per second at 480p, 24 at 720p, and 48 at 1080p. Reference-video requests bill detected input video seconds plus requested output seconds. Images, audio, files, and web pages do not add input-video seconds.
A request supports up to 10 reference images, five reference videos, and five reference audio files. Each video or audio item must be 1–15 seconds and each category can total at most 15 seconds. Input video plus output video cannot exceed 30 seconds.
No. First/last-frame mode is mutually exclusive with reference images, videos, audio, file_url, and link_url. A last frame also requires a first frame, and file_url cannot be combined with link_url.
Alibaba's upstream result link is available for about 24 hours. Accounts with Bailian R2 mirroring enabled receive a stored copy; otherwise download the result promptly after the task completes.
Pricing and usage
60 credits for 5 seconds without input video
120 credits for 5 seconds without input video
240 credits for 5 seconds; default tier
Both use the selected resolution rate
Create one API key, use one credit balance, and switch between video and image models without provider-specific plumbing.