xAI

Grok Imagine image to video

影片

輸入圖片作為第 1 幀;加入動態及鏡頭運動

模型健康狀態 數據不足
curl -X POST https://runapi.ai/api/v1/grok_imagine/image_to_video \
  -H "Authorization: Bearer $RUNAPI_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
  "model": "grok-imagine-image-to-video",
  "image_url": "https://cdn.runapi.ai/public/samples/image.jpg",
  "prompt": "生成一段短片:一隻機械手將棋子放在棋盤上,戲劇性燈光,慢動作。"
}'
https://runapi.ai 1 endpoint
Playground

試用 Grok Imagine image to video

選擇任意模型,數秒內即可開始生成。

預計費用: $0.02-$0.03 / 秒

登入以使用 RunAPI 生成內容。

登入以生成

登入後即可使用可用的語言模型開始生成。

規格

技術詳情

提供者 xAI
模型 ID grok-imagine-image-to-video
模態 影片
任務類型 Asynchronous
API 端點 /api/v1/grok_imagine/image_to_video
計費單位 秒
輸入參數 aspect_ratio, callback_url, duration_seconds, enable_safety_checker, index, model, motion_style, output_resolution, prompt, reference_image_urls, source_image_url, source_task_id
最大解像度 480p, 720p
長寬比 2:3, 3:2, 1:1, 16:9, 9:16
目錄狀態 可正常運作
使用方法

3 個步驟使用此模型

  1. 取得 API 金鑰

    免費註冊後,在控制台建立 grok-imagine-image-to-video 的 API 金鑰。

  2. 發送請求

    向 /api/v1/grok_imagine/image_to_video 發送 POST 請求,並傳入 grok-imagine-image-to-video 模型 ID 和參數。

  3. 取得結果

    輪詢工作或按照回呼取得已完成的 grok-imagine-image-to-video 結果。

此模型提供的功能

輸出解析度

根據已發布的 endpoint schema,支援 480p, 720p。

靈活的參數

可設定 10 個已記錄的參數,包括 aspect_ratio, duration_seconds, enable_safety_checker, index, motion_style。

Endpoint 涵蓋範圍

開放 1 個公開 endpoint:image_to_video。

Webhook 推送

非同步任務接受回調 URL,用於接收完成通知。

Grok Imagine image to video 收費

API endpoint
解析度
時長
價格
image_to_video
暫不可用
秒
$0.02-$0.03 / 秒
  • 輸出解像度:480p: $0.02 / 秒
  • 輸出解像度:720p: $0.03 / 秒
API 參考

端點規格

端點
POST /api/v1/grok_imagine/image_to_video
模型 ID
grok-imagine-image-to-video
工作類型
image_to_video
最長時長
暫無資料
解析度
480p, 720p
長寬比
2:3, 3:2, 1:1, 16:9, 9:16
輸出格式
暫無資料
平均生成時間
暫無資料

請求參數

index

選填 integer

Zero-based source image index; used only with source_task_id.

prompt

選填 value

Optional video generation prompt.

aspect_ratio

選填 value

Output aspect ratio. (2:3, 3:2, 1:1, 16:9, 9:16)

callback_url

選填 value

Webhook URL for terminal Task delivery.

motion_style

選填 value

Video motion style; spicy requires source_task_id. (fun, normal, spicy)

source_task_id

選填 value

Prior Grok Imagine text-to-image Task ID; provide this or source_image_url, but not both.

duration_seconds

選填 integer

Output duration in seconds.

source_image_url

選填 value

Public source image URL; provide this or source_task_id, but not both.

output_resolution

選填 value

Output resolution. (480p, 720p)

reference_image_urls

選填 value

Not accepted by this model.

enable_safety_checker

選填 value

Enable content safety checks.

使用場景

廣告及社交內容

由文字 brief 生成產品發佈短片同短版廣告,將製作時間由幾星期縮短到幾個鐘。

電子學習

無需攝影機或團隊,都可以大規模將課程腳本轉成動畫解說影片。

創作者流程

直接由 prompt 為社交平台製作易爆紅的短內容。

使用數據

開發者信賴之選
509
API 呼叫次數/天
2.2%
成功率
38.4s
平均生成時間

此模型目前尚無經驗證的客戶評價。

FAQ

關於 Grok Imagine image to video 的常見問題

點樣選擇 grok-imagine-image-to-video?

傳入 quickstart 顯示嘅 model ID。

這個 variant 的 rate limit 係多少?

每個 key 的 rate limit 會按使用層級而定。請查看定價頁了解最新限制。

之後可以切換 variant 嗎?

可以——variant 只係一個旗標。只要更改 model 參數就可以切換。

支援 streaming 嗎?

在可用 streaming 的情況下,RunAPI 會端到端串流。

我應該在邊度回報品質問題?

可以在公開 GitHub repo 開 issue,或者電郵支援團隊。

正在與團隊一起建立?

我們可以協助企業設定、整合和技術問題。

聯絡我們