{
"model": "gemini-omni-flash-preview",
"input": "生成一段 9:16 的城市清晨视频,固定机位,不出现文字。",
"response_format": { "type": "video", "aspect_ratio": "9:16", "delivery": "uri" }
}curl --location 'https://api.miaoshenghua.com/v1beta/interactions' \
--header 'Authorization: Bearer {{YOUR_API_KEY}}' \
--header 'Api-Revision: 2026-05-20' \
--header 'Content-Type: application/json' \
--data '{
"model": "gemini-omni-flash-preview",
"input": "生成一段 9:16 的城市清晨视频,固定机位,不出现文字。",
"response_format": { "type": "video", "aspect_ratio": "9:16", "delivery": "uri" }
}'{
"id": "v1_example_interaction_id",
"status": "completed",
"object": "interaction",
"model": "gemini-omni-flash-preview",
"steps": [
{
"type": "model_output",
"content": [
{
"type": "video",
"mime_type": "video/mp4",
"uri": "https://generativelanguage.googleapis.com/v1beta/files/example-file-id:download?alt=media"
}
]
}
],
"usage": {
"total_input_tokens": 30,
"total_output_tokens": 58717,
"total_thought_tokens": 659,
"total_tokens": 59406,
"output_tokens_by_modality": [ { "modality": "video", "tokens": 57920 } ]
}
}