Text-to-Video
Overview
- API:
POST /task/minimax/v1/video_generation - Category: Video Models (Video) / Hailuo Video
- Authentication: Bearer Token
- Base URL:
https://api.gpt.ge
Request Parameters
Request body (application/json):
model(string, required): model name, options includeMiniMax-Hailuo-2.3,MiniMax-Hailuo-02,T2V-01-Director,T2V-01.prompt(string, required): text description for the video, up to 2000 characters. ForMiniMax-Hailuo-2.3,MiniMax-Hailuo-02, and*-Directorseries, prompt may include bracketed directives like[推进],[上升],[固定]to control camera movement. Directives can be combined or sequenced.prompt_optimizer(boolean, optional, defaulttrue): whether to auto-optimize the prompt. Set tofalsefor more precise control.fast_pretreatment(boolean, optional, defaultfalse): whether to shorten prompt optimizer runtime (effective for some models only).duration(integer, required): video duration in seconds, supports6or10, default is6; available values depend on model and resolution.resolution(string, required): video resolution, available values depend on model (e.g.720P,768P,1080P).callback_url(string, optional): callback URL for task status updates. When configured, the server sends a verification request containingchallenge; the callback endpoint must return the same value within 3 seconds. After verification passes, status updates are pushed to the URL with the same payload as the query API response. Callbackstatusvalues may includeprocessing,success, orfailed.
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":"MiniMax-Hailuo-02",
"prompt":"A woman picks up a book [上升], then reads it [固定].",
"duration":6,
"resolution":"1080P"
}'Success Response Example
json
{
"task_id": "106916112212032",
"base_resp": {"status_code": 0, "status_msg": "success"}
}Response Fields
task_id(string): task ID for querying results.base_resp.status_code(integer): internal status code,0means success.base_resp.status_msg(string): short status description.
Notes
- Required fields include
model,prompt,duration, andresolution. - If you use callback notifications, ensure
callback_urlcan respond to verification requests by returning the receivedchallengevalue.