grok-imagine-video-1.5-preview API
透過 RunAPI 使用 Grok Imagine 系列的 grok-imagine-video-1.5-preview。按次計費,無訂閱費,失敗的生成不收費。
curl -X POST https://runapi.ai/api/v1/grok_imagine/text_to_video \
-H "Authorization: Bearer $RUNAPI_KEY" \
-H "Content-Type: application/json" \
-d '{
"model": "grok-imagine-video-1.5-preview",
"prompt": "Generate a short video of a robot hand placing a chess piece on a board, dramatic lighting, slow motion."
}'
import { GrokImagineClient } from "@runapi.ai/grok-imagine";
const client = new GrokImagineClient();
const result = await client.textToVideo.run({
model: "grok-imagine-video-1.5-preview",
prompt: "Generate a short video of a robot hand placing a chess piece on a board, dramatic lighting, slow motion.",
});
<?php
require __DIR__ . "/vendor/autoload.php";
use RunApi\GrokImagine\GrokImagineClient;
$client = new GrokImagineClient();
$result = $client->textToVideo->run([
'model' => 'grok-imagine-video-1.5-preview',
'prompt' => 'Generate a short video of a robot hand placing a chess piece on a board, dramatic lighting, slow motion.',
]);
require "runapi/grok_imagine"
client = RunApi::GrokImagine::Client.new
result = client.text_to_video.run(
model: "grok-imagine-video-1.5-preview",
prompt: "Generate a short video of a robot hand placing a chess piece on a board, dramatic lighting, slow motion."
)
npx skills add runapi-ai/grok-imagine -g
# Claude Code
claude mcp add runapi -s user -- npx -y @runapi.ai/mcp
# Codex
codex plugin install runapi-mcp@agents
# Cursor / Windsurf / VS Code
npx @runapi.ai/mcp init cursor
grok-imagine-video-1.5-preview 在 Grok Imagine 系列中,兼顧品質與成本的最佳平衡。
- 以美元按次計費
- 生成失敗不收費
- 模型支援時可串流輸出
- Model skill setup
價格
技術細節
| Model ID | grok-imagine-video-1.5-preview |
| 供應商 | xAI |
| 模態 | video |
| 任務類型 | asynchronous |
| 計費單位 | second |
| API endpoint | /api/v1/grok_imagine/text_to_video |
| 商用授權 | 是 — 已透過 API 包含 |
| 目錄狀態 | 可直接上線 |
快速開始 — grok-imagine-video-1.5-preview
相同格式 · variant 固定在 model 中
# Install the model skill for app development workflows
npx skills add runapi-ai/grok-imagine -g
Install the Grok Imagine skill for this app: 1. Add runapi-ai/grok-imagine with the skills installer. 2. Load SKILL.md in this workspace. 3. Use its docs, schemas, pricing notes, and setup steps when adding model features. 4. Confirm the install path when done.
四步驟使用 grok-imagine-video-1.5-preview
安裝
安裝此 model line 的 model skill。
設定
將 model 欄位設定為此頁面顯示的完整 model ID。
呼叫
使用您的 prompt、inputs 和 callback 設定送出型別化請求。
接收
讀取 RunAPI 的 task 回應、webhook callback 或快取輸出 URL。
grok-imagine-video-1.5-preview 有什麼不同
Video 1.5 preview; text/image input; auto aspect ratio; up to 15s
Prompt-guided style transfer and composition editing from one source image
Video 1.5 preview; text/image input; auto aspect ratio; up to 15s
Input image becomes frame 1; animates with motion + camera
Video 1.5 preview; text/image input; auto aspect ratio; up to 15s
Aurora model; 7 aspect ratios; realistic/artistic/anime styles
最適合
廣告與社群內容
根據文字簡報生成產品上市短片與短影音廣告,將製作時間從數週縮短到數小時。
線上學習
無需攝影機或團隊,即可大規模將課程腳本轉為動畫解說影片。
創作者工作流程
直接從 prompt 產生適合社群平台的爆紅短影音內容。
關於 grok-imagine-video-1.5-preview 的常見問題
模型 ID 在不同版本之間會保持穩定嗎?
RunAPI 會維持 model ID 穩定,並在不改變請求格式的情況下處理相容版本更新。
這個 variant 的速率限制是多少?
每個金鑰的速率限制會依使用方案而調整。請查看定價頁面以了解目前限制。
之後可以切換 variant 嗎?
可以——variant 只是旗標。只要變更 model 參數即可切換。
它支援串流嗎?
只要支援串流,RunAPI 就會端到端串流。
我該在哪裡回報品質問題?
請在公開 GitHub repo 提交 issue,或寄信給支援。