APIMPAPIMP
用户指南AI 接口图片接口视频接口公共接口

Gemini Omni Flash

通过 APIMart 或 Evolink 生成、引用或编辑带原生同步音频的视频。

POST
/api/generate/submit

Authorization

BearerAuth

AuthorizationBearer <token>

In: header

Request Body

application/json

model*string
Value in"gemini-omni-flash"
prompt*string
Length1 <= length
duration?integer
Range3 <= value <= 10
aspect_ratio?string
Value in"16:9" | "9:16"
image?string

Image-to-Video 的单张输入图。

images?array<string>

Reference-to-Video 的参考图列表。

Items1 <= items <= 6
video_urls?array<string>

Video Edit 的源视频,只支持一个。

Items1 <= items <= 1
[key: string]?never

Response Body

application/json

application/json

curl -X POST "https://api.apimp.ai/api/generate/submit" \  -H "Content-Type: application/json" \  -d '{    "model": "gemini-omni-flash",    "prompt": "A glass marble rolls down a wooden track",    "duration": 10,    "aspect_ratio": "16:9"  }'
{
  "code": 200,
  "data": {
    "task_id": "string",
    "status": "not_started",
    "created_time": "string",
    "error_message": "string"
  }
}
{
  "code": 0,
  "error": {
    "message": "string",
    "type": "string"
  }
}
Empty
Empty
Empty
Empty

这篇文档对您有帮助吗?

最后更新于