Minimax AI Director
Minimax video-01-director: Create high-quality videos with control camera movements precisely using text prompts.
1import requests
2import json
3
4url = "https://api.segmind.com/v1/minimax-ai-director"
5headers = {
6 "x-api-key": "YOUR_API_KEY",
7 "Content-Type": "application/json"
8}
9
10data = {
11 "prompt": "A bear playfully poses for a selfie with a man, who smiles and says, ‘Hi!’ as he looks into the camera, [Pedestal up] sharing a lighthearted moment with his friend.[Zoom out]",
12 "first_frame_image": "https://segmind-resources.s3.amazonaws.com/input/7aaa699e-d5d1-417d-93e3-42e8b0ff0adf-minimax-v2-input.png",
13 "prompt_optimizer": true
14}
15
16response = requests.post(url, headers=headers, json=data)
17
18if response.status_code == 200:
19 result = response.json()
20 print(json.dumps(result, indent=2))
21else:
22 print(f"Error: {response.status_code}")
23 print(response.text)
1import requests
2import json
3
4url = "https://api.segmind.com/v1/minimax-ai-director"
5headers = {
6 "x-api-key": "YOUR_API_KEY",
7 "Content-Type": "application/json"
8}
9
10data = {
11 "prompt": "A bear playfully poses for a selfie with a man, who smiles and says, ‘Hi!’ as he looks into the camera, [Pedestal up] sharing a lighthearted moment with his friend.[Zoom out]",
12 "first_frame_image": "https://segmind-resources.s3.amazonaws.com/input/7aaa699e-d5d1-417d-93e3-42e8b0ff0adf-minimax-v2-input.png",
13 "prompt_optimizer": true
14}
15
16response = requests.post(url, headers=headers, json=data)
17
18if response.status_code == 200:
19 result = response.json()
20 print(json.dumps(result, indent=2))
21else:
22 print(f"Error: {response.status_code}")
23 print(response.text)
API Endpoint
https://api.segmind.com/v1/minimax-ai-director
Parameters
first_frame_image
requiredstring (uri)
First frame image for video generation
"https://segmind-resources.s3.amazonaws.com/input/7aaa699e-d5d1-417d-93e3-42e8b0ff0adf-minimax-v2-input.png"
prompt
requiredstring
Text prompt for video generation. Camera movement instructions can be added using square brackets (e.g. [Pan left] or [Zoom in]). You can use up to 3 combined movements per prompt. Supported movements: Truck left/right, Pan left/right, Push in/Pull out, Pedestal up/down, Tilt up/down, Zoom in/out, Shake, Tracking shot, Static shot. For example: [Truck left, Pan right, Zoom in]
prompt_optimizer
optionalboolean
Use prompt optimizer
true
Response Type
Returns: Video
Common Error Codes
The API returns standard HTTP status codes. Detailed error messages are provided in the response body.
Bad Request
Invalid parameters or request format
Unauthorized
Missing or invalid API key
Forbidden
Insufficient permissions
Not Found
Model or endpoint not found
Insufficient Credits
Not enough credits to process request
Rate Limited
Too many requests
Server Error
Internal server error
Bad Gateway
Service temporarily unavailable
Timeout
Request timed out