Subject Reference-to-Video
Overview
- API: Subject Reference-to-Video
- Description: Generate a video clip using a subject reference image (currently supports only a person portrait) combined with a text description.
- Model:
S2V-01(available only whenmodelisS2V-01).
Authentication
- Use Bearer Token in the request header:
Authorization: Bearer <token>.
Request Parameters
Request Content-Type:
application/jsonRequest body fields:
model(string, required)- Model name, valid value:
S2V-01.
- Model name, valid value:
prompt(string)- Text description for the video, up to 2000 characters.
prompt_optimizer(boolean, optional, defaulttrue)- Whether to auto-optimize the prompt. Set to
falsefor finer control.
- Whether to auto-optimize the prompt. Set to
subject_reference(array, required)- Array containing the subject reference images (currently only a single image is supported).
- Item structure:
type(string, required): subject type, currently onlycharacter(person portrait) is supported.image(string, required): image URL or Base64-encoded data.
- Image requirements:
- Formats: JPG, JPEG, PNG, WebP
- Size: under 20MB
- Dimensions: short side greater than 300px, aspect ratio between 2:5 and 5:2
callback_url(string, optional)- Callback URL for task status updates. When configured, MiniMax will send a verification request containing
challenge. The server must return the samechallengevalue within 3 seconds to pass verification. - After verification succeeds, the server will push task status updates to the URL when the status changes. The payload matches the query API response structure. Status values include
processing,success, andfailed.
- Callback URL for task status updates. When configured, MiniMax will send a verification request containing
Request Example
bash
curl -X POST "https://api.gpt.ge/task/minimax/v1/video_generation" \
-H "Authorization: Bearer $YOUR_TOKEN" \
-H "Content-Type: application/json" \
-d '{
"model": "S2V-01",
"prompt": "A girl runs toward the camera and smiles while blinking.",
"subject_reference": [
{
"type": "character",
"image": "https://cdn.hailuoai.com/prod/2025-08-12-17/video_cover/1754990600020238321-411603868533342214-cover.jpg"
}
]
}'Request Body Example
json
{
"model": "S2V-01",
"prompt": "A girl runs toward the camera and smiles while blinking.",
"subject_reference": [
{
"type": "character",
"image": "https://cdn.hailuoai.com/prod/2025-08-12-17/video_cover/1754990600020238321-411603868533342214-cover.jpg"
}
]
}Success Response Example
json
{
"task_id": "106916112212032",
"base_resp": {
"status_code": 0,
"status_msg": "success"
}
}Response Fields
task_id(string): task ID to query status and results.base_resp(object): basic response information, includesstatus_code(integer) andstatus_msg(string).
Notes
- Make sure required parameters are provided, otherwise model name recognition may fail.
subject_referencecurrently supports only a single subject (person portrait).- Follow the image format and size limits to ensure good results.