Buckets:
EllipsesMark/MiniMax-H3-bucket / scripts /readme /full-2k-i2va-reference-768p-result-by-directly-calling-open-platform-api.sh
| set -euo pipefail | |
| # Create an 8-second 768P FL2VA 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": "Pull focus to the people in the background and add more steam to the ramen bowl." | |
| }, | |
| { | |
| "type": "image_url", | |
| "image_url": { | |
| "url": "https://cdn.hailuoai.com/prod/hailuo_demo/testsets/H3_AA_I2VA/gallery/sr_v17_variants_seed42_43_20260724/inputs/4a3a90bf9100_KDmcbkhzYo5sjjxr9FqcVmWVnzb.png" | |
| }, | |
| "role": "first_frame" | |
| } | |
| ], | |
| "resolution": "768P", | |
| "duration": 8, | |
| "ratio": "adaptive" | |
| }' | | |
| jq -er '.task_id' | |
| ) | |
| # Query again while the task is queued or running. | |
| generation_result=$( | |
| curl --silent --show-error \ | |
| --request GET \ | |
| --url "$MINIMAX_API_BASE/v2/query/video_generation/$task_id" \ | |
| --header "Authorization: Bearer $TOKEN" | |
| ) | |
| echo "$generation_result" | jq '{status: .task.status}' | |
| # Download the 768P MP4 after the task succeeds. | |
| video_url=$(echo "$generation_result" | jq -er '.task.content.url') | |
| curl --location "$video_url" --output i2va_direct_768p.mp4 | |
Xet Storage Details
- Size:
- 1.35 kB
- Xet hash:
- 6f4c1ea32552a65ab712b61d3f090e244422139c884a554fea8a42a83a1824f9
·
Xet efficiently stores files, intelligently splitting them into unique chunks and accelerating uploads and downloads. More info.