Omni 1.1 Flash
文字轉影片,可選 4/6/8/10 秒、360p/720p,必選直式或橫式。
- Ailoot · 影片
POST /v1/videos/generationsgoogle/omni-1.1-flash - Ailoot · 影片
POST /v1/videos/generationsomni-featured
關於模型
此說明介紹模型的能力。Ailoot 可用的輸入、輸出與選項,依所選方法列於下方。
google/omni-1.1-flash 可選 4、6、8、10 秒,必填 360p 或 720p,以及 aspect_ratio 的 VIDEO_ASPECT_RATIO_LANDSCAPE 或 VIDEO_ASPECT_RATIO_PORTRAIT。可做短直式商品預告,在 prompt 指定主體及可見動作。
提交 /v1/videos/generations,收集原工作結果。n、count 限一個輸出請求,未列圖片參考。因此是有界短片流程,不是任意長度編輯器。Flash 不保證延遲,完成收集時應保留實際回傳的每個輸出。
Ailoot · 影片 POST /v1/videos/generations google/omni-1.1-flash
google/omni-1.1-flashgoogle/omni-1.1-flashomni-featured
入門
文字轉影片,可選 4/6/8/10 秒、360p/720p,必選直式或橫式。
- 接受的輸入
- 文字
- 結果
- 影片
Ailoot 可用 · 輸入與方法
Ailoot · 影片 POST /v1/videos/generations
- 輸入
text- 輸出
video- 輸出格式
- mp4
| 欄位 | 類型 | 要求 | 值與限制 | 預設值 |
|---|---|---|---|---|
欄位model | 類型string | 要求必填 | 值與限制 google/omni-1.1-flash | 預設值— |
欄位prompt | 類型string | 要求必填 | 值與限制 長度下限: 1 | 預設值— |
欄位duration | 類型integer | 要求替代選項之一必填 | 值與限制 4, 6, 8, 10 替代選項: duration_s;若同時提供兩個欄位,其值必須一致 符合以下條件時必填: 未提供 duration_s 至少一項必填: duration, duration_s 單位: 秒 | 預設值— |
欄位duration_s | 類型integer | 要求選填 | 值與限制 4, 6, 8, 10 替代選項: duration 單位: 秒 | 預設值— |
欄位resolution | 類型string | 要求必填 | 值與限制 360p, 720p | 預設值— |
欄位aspect_ratio | 類型string | 要求必填 | 值與限制 VIDEO_ASPECT_RATIO_LANDSCAPE, VIDEO_ASPECT_RATIO_PORTRAIT | 預設值— |
欄位n | 類型integer | 要求選填 | 值與限制 1 | 預設值1 |
欄位count | 類型integer | 要求選填 | 值與限制 1 適用條件: 若也提供 n,值必須一致 | 預設值— |
輸入素材組合
文字生成影片 · 必填: prompt
方法參數與生命週期
| 參數 | 規格 |
|---|---|
參數material_types | 規格text |
參數required | 規格null |
參數optional_controls | 規格null |
生命週期: submit_once_poll_original
GET /v1/videos/{request_id}
GET /v1/videos/generations/{request_id}
GET /v1/videos/{request_id}/content
GET /v1/videos/generations/{request_id}/content
方法結構與 ID 均為精確值;供應商能力與准入狀態分開。
方案
Ailoot 方法費率
POST /v1/videos/generations- 輸出
- US$0.03 360p 每秒
Ailoot 會在請求前預留估算金額。取得結果後,依實測用量結算最終費用。串流結算採用最終用量紀錄。預留金額與結算的運作方式 →
請求範例
Ailoot · 影片
set -eu
: "${AILOOT_API_KEY:?Set your Ailoot API key}"
curl https://api.ailoot.ai/v1/videos/generations \
-H "Authorization: Bearer $AILOOT_API_KEY" \
-H "Content-Type: application/json" \
-d '{"model": "google/omni-1.1-flash", "prompt": "A person walks slowly through a quiet garden as the camera tracks from the side."}'接收並儲存結果
Ailoot · 影片
mp4
GET /v1/videos/{request_id}GET /v1/videos/generations/{request_id}GET /v1/videos/{request_id}/contentGET /v1/videos/generations/{request_id}/content
查看工作狀態
set -eu
: "${AILOOT_API_KEY:?Set your Ailoot API key}"
: "${AILOOT_VIDEO_ID:?Set the actual Ailoot operation ID returned by creation}"
export AILOOT_VIDEO_ID
video_id=$(python3 -c 'import os, urllib.parse; print(urllib.parse.quote(os.environ["AILOOT_VIDEO_ID"], safe=""))') || exit 1
curl "https://api.ailoot.ai/v1/videos/generations/$video_id" \
-H "Authorization: Bearer $AILOOT_API_KEY"其他內容讀取方式
set -eu
: "${AILOOT_API_KEY:?Set your Ailoot API key}"
: "${AILOOT_VIDEO_ID:?Set the actual Ailoot operation ID returned by creation}"
export AILOOT_VIDEO_ID
video_id=$(python3 -c 'import os, urllib.parse; print(urllib.parse.quote(os.environ["AILOOT_VIDEO_ID"], safe=""))') || exit 1
curl "https://api.ailoot.ai/v1/videos/generations/$video_id/content" \
-H "Authorization: Bearer $AILOOT_API_KEY" \
--output video.mp4保留所有已完成的結果
請儲存每部已完成的影片或傳回的檔案,並從實際傳回的每個素材 URL 取得素材。
data[] 包含所有回傳的內容路徑;content_url 僅代表第一個輸出
需要檢查原始回應時
請讀取現有的原始作業;切勿重新提交傳送結果不明的請求。
錯誤與後續步驟
| 回應 | 條件 | 下一步 |
|---|---|---|
回應400 · invalid_request_error | 條件必要的 prompt/resolution/aspect/duration 缺漏或無效 | 下一步提交新的請求前,請先修正無效的請求欄位。 |
回應409 · video_not_ready | 條件原始影片內容尚無法取得 | 下一步請輪詢原始回傳的 ID,並遵守 Retry-After。 |
回應503 · server_error | 條件結果需要查核 | 下一步請保留原始 ID 與請求紀錄憑證;切勿重新建立此操作。 |
回應server_error | 條件回傳的回應表示該作業或結果需要檢查 | 下一步保留原始回傳的作業/任務 ID、請求標頭與回應;繼續以支援的方式讀取該原始作業。請勿重新提交建立請求。 |
別名
模型別名
Ailoot google/omni-1.1-flash, omni-featured
方法路徑別名
請使用上方列出的 API 方法路徑。
相關呼叫用 ID
Ailoot · 影片 POST /v1/videos/generations omni-featured
omni-featuredgoogle/omni-1.1-flashomni-featured
入門
文字轉影片,可選 4/6/8/10 秒、360p/720p,必選直式或橫式。
- 接受的輸入
- 文字
- 結果
- 影片
Ailoot 可用 · 輸入與方法
Ailoot · 影片 POST /v1/videos/generations
- 輸入
text- 輸出
video- 輸出格式
- mp4
| 欄位 | 類型 | 要求 | 值與限制 | 預設值 |
|---|---|---|---|---|
欄位model | 類型string | 要求必填 | 值與限制 omni-featured | 預設值— |
欄位prompt | 類型string | 要求必填 | 值與限制 長度下限: 1 | 預設值— |
欄位duration | 類型integer | 要求替代選項之一必填 | 值與限制 4, 6, 8, 10 替代選項: duration_s;若同時提供兩個欄位,其值必須一致 符合以下條件時必填: 未提供 duration_s 至少一項必填: duration, duration_s 單位: 秒 | 預設值— |
欄位duration_s | 類型integer | 要求選填 | 值與限制 4, 6, 8, 10 替代選項: duration 單位: 秒 | 預設值— |
欄位resolution | 類型string | 要求必填 | 值與限制 360p, 720p | 預設值— |
欄位aspect_ratio | 類型string | 要求必填 | 值與限制 VIDEO_ASPECT_RATIO_LANDSCAPE, VIDEO_ASPECT_RATIO_PORTRAIT | 預設值— |
欄位n | 類型integer | 要求選填 | 值與限制 1 | 預設值1 |
欄位count | 類型integer | 要求選填 | 值與限制 1 適用條件: 若也提供 n,值必須一致 | 預設值— |
輸入素材組合
文字生成影片 · 必填: prompt
方法參數與生命週期
| 參數 | 規格 |
|---|---|
參數material_types | 規格text |
參數required | 規格null |
參數optional_controls | 規格null |
生命週期: submit_once_poll_original
GET /v1/videos/{request_id}
GET /v1/videos/generations/{request_id}
GET /v1/videos/{request_id}/content
GET /v1/videos/generations/{request_id}/content
方法結構與 ID 均為精確值;供應商能力與准入狀態分開。
方案
Ailoot 方法費率
POST /v1/videos/generations- 輸出
- US$0.03 360p 每秒
Ailoot 會在請求前預留估算金額。取得結果後,依實測用量結算最終費用。串流結算採用最終用量紀錄。預留金額與結算的運作方式 →
請求範例
Ailoot · 影片
set -eu
: "${AILOOT_API_KEY:?Set your Ailoot API key}"
curl https://api.ailoot.ai/v1/videos/generations \
-H "Authorization: Bearer $AILOOT_API_KEY" \
-H "Content-Type: application/json" \
-d '{"model": "omni-featured", "prompt": "A person walks slowly through a quiet garden as the camera tracks from the side."}'接收並儲存結果
Ailoot · 影片
mp4
GET /v1/videos/{request_id}GET /v1/videos/generations/{request_id}GET /v1/videos/{request_id}/contentGET /v1/videos/generations/{request_id}/content
查看工作狀態
set -eu
: "${AILOOT_API_KEY:?Set your Ailoot API key}"
: "${AILOOT_VIDEO_ID:?Set the actual Ailoot operation ID returned by creation}"
export AILOOT_VIDEO_ID
video_id=$(python3 -c 'import os, urllib.parse; print(urllib.parse.quote(os.environ["AILOOT_VIDEO_ID"], safe=""))') || exit 1
curl "https://api.ailoot.ai/v1/videos/generations/$video_id" \
-H "Authorization: Bearer $AILOOT_API_KEY"其他內容讀取方式
set -eu
: "${AILOOT_API_KEY:?Set your Ailoot API key}"
: "${AILOOT_VIDEO_ID:?Set the actual Ailoot operation ID returned by creation}"
export AILOOT_VIDEO_ID
video_id=$(python3 -c 'import os, urllib.parse; print(urllib.parse.quote(os.environ["AILOOT_VIDEO_ID"], safe=""))') || exit 1
curl "https://api.ailoot.ai/v1/videos/generations/$video_id/content" \
-H "Authorization: Bearer $AILOOT_API_KEY" \
--output video.mp4保留所有已完成的結果
請儲存每部已完成的影片或傳回的檔案,並從實際傳回的每個素材 URL 取得素材。
data[] 包含所有回傳的內容路徑;content_url 僅代表第一個輸出
需要檢查原始回應時
請讀取現有的原始作業;切勿重新提交傳送結果不明的請求。
錯誤與後續步驟
| 回應 | 條件 | 下一步 |
|---|---|---|
回應400 · invalid_request_error | 條件必要的 prompt/resolution/aspect/duration 缺漏或無效 | 下一步提交新的請求前,請先修正無效的請求欄位。 |
回應409 · video_not_ready | 條件原始影片內容尚無法取得 | 下一步請輪詢原始回傳的 ID,並遵守 Retry-After。 |
回應503 · server_error | 條件結果需要查核 | 下一步請保留原始 ID 與請求紀錄憑證;切勿重新建立此操作。 |
回應server_error | 條件回傳的回應表示該作業或結果需要檢查 | 下一步保留原始回傳的作業/任務 ID、請求標頭與回應;繼續以支援的方式讀取該原始作業。請勿重新提交建立請求。 |
別名
模型別名
Ailoot google/omni-1.1-flash, omni-featured
方法路徑別名
請使用上方列出的 API 方法路徑。
相關呼叫用 ID
FAQ · Omni 1.1 Flash
- 可以使用哪些輸入與結果?
POST /v1/videos/generations·google/omni-1.1-flash:text→videoPOST /v1/videos/generations·omni-featured:text→video- 請求使用哪些欄位?
POST /v1/videos/generations·google/omni-1.1-flash:model,prompt,duration,duration_s,resolution,aspect_ratio,n,countPOST /v1/videos/generations·omni-featured:model,prompt,duration,duration_s,resolution,aspect_ratio,n,count