POST
javascript
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 const axios = require('axios'); const FormData = require('form-data'); const api_key = "YOUR API-KEY"; const url = "https://api.segmind.com/v1/wan-2.5-t2v"; const reqBody = { "seed": 42, "size": "1280*720", "prompt": "A vibrant young woman in her early 20s rushes toward the camera in Shibuya Crossing at night, ecstatic and wide-eyed, shouting passionately into a sleek silver microphone. She wears a bright orange bomber jacket and has wireless earbuds in her ears. She yells: “wan2.5 is live on Segmind — insane detail and flow, you gotta try it today!” rain-slicked crosswalks, glowing neon red-cyan-yellow billboards, blurred crowds in motion, cinematic handheld follow-shot, sharp face focus, shallow depth of field. 4K UHD, bold saturated tones, viral UGC vibe.", "duration": 5, "negative_prompt": "No rainy scenes.", "enable_prompt_expansion": true }; (async function() { try { const formData = new FormData(); // Append regular fields for (const key in reqBody) { if (reqBody.hasOwnProperty(key)) { formData.append(key, reqBody[key]); } } // Convert and append images as Base64 if necessary const response = await axios.post(url, formData, { headers: { 'x-api-key': api_key, ...formData.getHeaders() } }); console.log(response.data); } catch (error) { console.error('Error:', error.response ? error.response.data : error.message); } })();
RESPONSE
image/jpeg
HTTP Response Codes
200 - OKImage Generated
401 - UnauthorizedUser authentication failed
404 - Not FoundThe requested URL does not exist
405 - Method Not AllowedThe requested HTTP method is not allowed
406 - Not AcceptableNot enough credits
500 - Server ErrorServer had some issue with processing

Attributes


seedint ( default: 42 )

Sets random seed for consistency. Use 42 for default or randomize for new results.


sizeenum:str ( default: 1280*720 )

Determines video resolution. For high-quality use 1920x1080; for quick previews use 832x480.

Allowed values:


audiostr ( default: 1 )

Upload audio for sync. Use a short loop for repetitive elements or music for dynamic output.


promptstr *

Input descriptive text for generation. Use vivid imagery for creative outputs or concise text for focused results.


durationenum:str ( default: 5 )

Sets video length. Use 5s for short notes, 10s for comprehensive views.

Allowed values:


negative_promptstr ( default: No rainy scenes. )

Avoid specific elements in output. Mention unwanted elements for clarity.


enable_prompt_expansionbool ( default: true )

Toggle prompt enhancement. Use true for richer outputs or false for original input only.

To keep track of your credit usage, you can inspect the response headers of each API call. The x-remaining-credits property will indicate the number of remaining credits in your account. Ensure you monitor this value to avoid any disruptions in your API usage.

Wan2.5-Preview: Multimodal Generation Model

Edited by Segmind Team September 28, 2025.

What is Wan2.5-Preview?

Wan2.5-Preview is an exceptionally advanced AI model that boasts multimodal functionality to consolidate text, image, video, and audio generation within a unified system. This model produces high-resolution 1080p cinematic videos that can be up to 10 seconds long and synchronized, sans any faults, with multiple audio elements, such as voices, music, and sound effects. Wan2.5-Preview's architecture supports deep cross-modal alignment, making it ideal for professional-level multimedia content creation required by developers and creators across multiple fields.

Key Features of Wan2.5-Preview

  • High-fidelity 1080p video generation: The AI model is designed to create 1080p videos that can be up to 10 seconds in length.
  • Synchronized multi-track audio capability: It produces videos that are perfectly synced with multi-layered audio tracks.
  • Text-to-image generation with style diversity: This advanced model can convert text into images that can be in a variety of styles.
  • Precise dialog-based image editing: It can refine images by following the user's requests, making image modification a simple task.
  • Multi-concept fusion support: It understands multiple ideas and can blend them into one clear, cohesive output.
  • Multiple resolution options: It supports video resolutions from 832x480 to 1920x1080 for different creative requirements.
  • Customizable random seeds: Users can set seeds to reproduce the same creative results with consistent outputs.
  • Prompt enhancement system: The model is equipped with the option to improve upon the provided prompts to render high-end multimedia.

Best Use Cases

  • Content Creation: It can create professional video content with synchronized audio.
  • Digital Marketing: It is optimal for designing engaging multimedia assets needed for successful campaigns.
  • Game Development: It is an excellent platform for developing and testing prototypes of cinematics and visual elements.
  • UI/UX Design: It can generate diverse visual styles and professional charts that fit different user needs.
  • Film Production: It can be a great option to create quick previews and concept visualizations before the final product is released.
  • Educational Content: It can be used to produce synchronized audio-visual learning materials and boost the teaching-learning experience.

Prompt Tips and Output Quality

  • Use clear, descriptive prompts for creative scenes
  • Include specific style references for consistent results
  • Provide negative prompts to avoid unwanted elements
  • For best video results:
    • Set duration to 10s for complex scenes
    • Use 1920x1080 resolution for professional quality
    • Upload high-quality audio for better synchronization
  • Enable prompt expansion for enhanced detail and creativity

FAQs

How does Wan2.5-Preview handle audio synchronization?

  • Wan2.5-Preview supports the audio and video synchronization to align audio elements like voice and music with visuals. It gives the option to upload audio files as URLs, and the model ensures perfect timing is maintained for a seamless and professional final video.

What resolutions are supported?

  • The Wan2.5-Preview supports multiple resolutions from 832x480 to 1920x1080, in landscape and portrait orientations. You can select the resolution based on your output needs and processing requirements.

Can I control the consistency of outputs?

  • Yes, using the seed parameter (default: 42), you can easily control the output's consistency by keeping the same seed for uniformity in results or randomizing it for variation.

How does prompt expansion work?

  • If you enable the prompt expansion feature, it enriches your prompt or input with additional context and details to render more nuanced and enhanced outputs. You can disable the prompt expansion if you want the model to follow your prompts strictly.

What types of image editing are supported? You can use dialog-based instructions to execute complex editing tasks, including style transfers, material changes, and multi-concept fusion.