curl --location "https://api.mixroute.ai/v1/video/generations" \ --header "Authorization: Bearer $MIXROUTE_API_KEY" \ --header "Content-Type: application/json" \ --data '{ "model": "MiniMax-H3", "prompt": "A professor is teaching a class in a classroom.", "metadata": { "content": [ { "type": "text", "text": "A professor is teaching a class in a classroom." } ], "resolution": "768P", "duration": 4, "ratio": "9:16" }}'
Python
import jsonimport osimport requestspayload = json.loads(r'''{ "model": "MiniMax-H3", "prompt": "A professor is teaching a class in a classroom.", "metadata": { "content": [ { "type": "text", "text": "A professor is teaching a class in a classroom." } ], "resolution": "768P", "duration": 4, "ratio": "9:16" }}''')response = requests.post( "https://api.mixroute.ai/v1/video/generations", headers={"Authorization": "Bearer " + os.environ["MIXROUTE_API_KEY"]}, json=payload, timeout=60,)response.raise_for_status()print(response.json())