{"servers":[{"url":"https://api.modellix.ai/api/v1/minimax/minimax-s2v-01"}],"post":{"description":"[Core Function] MiniMax S2V-01 is a Subject-to-Video generation model. [Strengths] It excels at maintaining strict identity consistency of a specific subject (provided via reference images) while generating a video of that subject performing actions described in a text prompt. [Best For] Highly recommended for: character-consistent storytelling, generating multiple videos with the same actor, and brand mascot animation. [Limitations] Do NOT use this model if you just want to animate the provided image exactly as it is (use standard I2V). This model generates *new* scenes featuring the referenced subject. [Routing] Use this model when the user provides reference images of a character/subject and wants a video of them doing a specific new action based on a text prompt.","operationId":"minimaxS2V01Async","requestBody":{"content":{"application/json":{"examples":{"base64_image":{"summary":"Base64 encoded image","value":{"prompt":"动作描述","subject_reference_images":["data:image/jpeg;base64,/9j/4AAQSkZJRgABAQAAAQABAAD..."]}},"basic":{"summary":"Basic subject reference video","value":{"prompt":"A girl runs toward the camera and winks with a smile.","subject_reference_images":["https://cdn.hailuoai.com/prod/2025-08-12-17/video_cover/1754990600020238321-411603868533342214-cover.jpg"]}},"precise_control":{"summary":"Precise control (optimizer disabled)","value":{"prompt":"Precise action description for exact control.","prompt_optimizer":false,"subject_reference_images":["https://example.com/character.jpg"]}},"with_prompt_optimizer":{"summary":"With prompt optimizer enabled","value":{"prompt":"The character walks through a forest, looking around curiously.","prompt_optimizer":true,"subject_reference_images":["https://example.com/character.jpg"]}}},"schema":{"properties":{"prompt":{"description":"Video content description (optional). Describe the subject's actions, scenes, etc. Supports Chinese and English. Max 2000 characters.","example":"A girl runs toward the camera and winks with a smile.","maxLength":2000,"minLength":1,"type":"string"},"prompt_optimizer":{"default":true,"description":"Whether to automatically optimize the prompt. Default is true. Set to false for more precise control.","example":true,"type":"boolean"},"subject_reference_images":{"description":"Subject reference image URLs. Supports publicly accessible HTTP/HTTPS URLs or Base64 Data URLs. Used to maintain the appearance characteristics of the reference subject in the generated video.","example":["https://example.com/character.jpg"],"items":{"description":"Image URL or Base64 Data URL. Image format: JPG/JPEG/PNG/WebP, <20MB, recommended short side >300px.","example":"https://cdn.hailuoai.com/prod/2025-08-12-17/video_cover/1754990600020238321-411603868533342214-cover.jpg","minLength":1,"type":"string"},"maxItems":10,"minItems":1,"type":"array"}},"required":["subject_reference_images"],"type":"object"}}},"required":true},"responses":{"200":{"content":{"application/json":{"example":{"data":{"get_result":{"method":"GET","url":"https://api.modellix.ai/api/v1/tasks/task-s2v-abc123"},"model_id":"model-123","status":"pending","task_id":"task-s2v-abc123"},"success":true},"schema":{"properties":{"code":{"description":"Response code, 0 indicates success","example":0,"type":"integer"},"data":{"description":"Detailed data about the submitted asynchronous task.","properties":{"get_result":{"description":"API information to query the task result","properties":{"method":{"description":"HTTP method","example":"GET","type":"string"},"url":{"description":"Full URL to query the task result","example":"https://api.modellix.ai/api/v1/tasks/task-abc123","type":"string"}},"type":"object"},"model_id":{"description":"Model ID","example":"model-123","type":"string"},"status":{"description":"Task status","enum":["pending","processing"],"example":"pending","type":"string"},"task_id":{"description":"Unique task identifier","example":"task-abc123","type":"string"}},"required":["status","task_id","model_id"],"type":"object"},"message":{"description":"Response message","example":"success","type":"string"}},"required":["code","message","data"],"type":"object"}}},"description":"Successful response with task ID"},"400":{"content":{"application/json":{"examples":{"invalid_duration":{"summary":"Invalid duration value","value":{"code":400,"message":"Invalid parameters: duration must be one of [6, 10]"}},"invalid_image":{"summary":"Invalid image format or size","value":{"code":400,"message":"Invalid parameters: image size exceeds 20MB or format not supported"}},"invalid_resolution":{"summary":"Invalid resolution for duration","value":{"code":400,"message":"Invalid parameters: 10 seconds duration only supports 768P resolution"}},"missing_first_frame":{"summary":"Missing required first_frame_image","value":{"code":400,"message":"Invalid parameters: parameter 'first_frame_image' is required"}}},"schema":{"properties":{"code":{"description":"Error code (equals HTTP status code)","example":400,"type":"integer"},"message":{"description":"Error message in format 'Category: detail'","example":"Invalid parameters: parameter 'first_frame_image' is required","type":"string"}},"required":["code","message"],"type":"object"}}},"description":"Invalid request parameters"},"401":{"content":{"application/json":{"example":{"code":401,"message":"Authentication failed: invalid API key"},"schema":{"properties":{"code":{"description":"Error code (equals HTTP status code)","example":400,"type":"integer"},"message":{"description":"Error message in format 'Category: detail'","example":"Invalid parameters: parameter 'first_frame_image' is required","type":"string"}},"required":["code","message"],"type":"object"}}},"description":"Unauthorized - Invalid or missing API Key"},"429":{"content":{"application/json":{"example":{"code":429,"message":"Rate limit exceeded: 100 requests per minute, retry after 60 seconds"},"schema":{"properties":{"code":{"description":"Error code (equals HTTP status code)","example":400,"type":"integer"},"message":{"description":"Error message in format 'Category: detail'","example":"Invalid parameters: parameter 'first_frame_image' is required","type":"string"}},"required":["code","message"],"type":"object"}}},"description":"Too many requests - Rate limit exceeded","headers":{"X-RateLimit-Limit":{"description":"Maximum requests per minute","schema":{"example":100,"type":"integer"}},"X-RateLimit-Remaining":{"description":"Remaining quota in current window","schema":{"example":0,"type":"integer"}},"X-RateLimit-Reset":{"description":"Rate limit window reset time (Unix timestamp)","schema":{"example":1704067260,"type":"integer"}}}},"500":{"content":{"application/json":{"example":{"code":500,"message":"Internal server error"},"schema":{"properties":{"code":{"description":"Error code (equals HTTP status code)","example":400,"type":"integer"},"message":{"description":"Error message in format 'Category: detail'","example":"Invalid parameters: parameter 'first_frame_image' is required","type":"string"}},"required":["code","message"],"type":"object"}}},"description":"Internal server error"}},"summary":"MiniMax S2V-01","x-mint":{"href":"minimax/minimax-s2v-01"}}}