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 const axios = require('axios'); const FormData = require('form-data'); const api_key = "YOUR API-KEY"; const url = "https://api.segmind.com/v1/minimax-ai"; const reqBody = { "prompt": "A woman with long brown hair and light skin smiles at another woman with long blonde hair. The woman with brown hair wears a black jacket and has a small, barely noticeable mole on her right cheek. The camera angle is a close-up, focused on the woman with brown hair's face. The lighting is warm and natural, likely from the setting sun, casting a soft glow on the scene. The scene appears to be real-life footage.", "prompt_optimizer": 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


promptstr *

Text prompt for video generation


prompt_optimizerbool ( default: true )

Use prompt optimizer


first_frame_imagestr ( default: 1 )

First frame image for video generation

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.

Minimax Video-01

MiniMax Video-01 is an innovative AI-native video generation model that allows users to create high-definition videos from text descriptions or images. This model represents a significant advancement in the field of AI video generation, offering capabilities that cater to content creators, marketers, and developers alike.

Key Features of Minimax Video-01

  • High-Definition Output: Video-01 generates videos at a resolution of 1280 x 720 pixels and a frame rate of 25 frames per second. This ensures that the videos maintain cinematic quality, complete with advanced camera movements and stylistic elements

  • Compression and Responsiveness: The model boasts high compression rates and excellent responsiveness to text inputs, allowing for quick generation of visually striking content

  • Video Length: Currently, the model supports video generation of up to 6 seconds, with plans to extend this to 10 seconds in future updates

Applications of Minimax Video-01

  • Content Creation: Streamlining the process of generating high-quality videos and audio content.

  • Marketing Campaigns: Create engaging promotional videos quickly.

  • Content Creation: Ideal for social media influencers and digital content creators looking to enhance their visual storytelling.

  • Educational Materials: Generate informative videos based on textual content for educational purposes.