You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
# Create a 10-second 2K video directly and capture its runtime task ID.
task_id=$(
curl --silent --show-error \
--request POST \
--url "$MINIMAX_API_BASE/v2/video_generation" \
--header "Authorization: Bearer $TOKEN" \
--header 'Content-Type: application/json' \
--data '{
"model": "MiniMax-H3",
"content": [
{
"type": "text",
"text": "Epic space-opera theatrical teaser: a female captain stands alone before a massive observation window as the last fleet gathers and jumps away in a blinding flash, the bridge shaking, leaving her behind."
}
],
"resolution": "2K",
"duration": 10,
"ratio": "16:9"
}'|
jq -er '.task_id'
)
# Query again while the task is queued or running.