grok-imagine-video-1.5-preview API
xAI / Grok Imagine
透過 RunAPI 使用 Grok Imagine 系列的 grok-imagine-video-1.5-preview。按次計費,無訂閱費,失敗的生成不收費。
可直接上線
·
video
·
可商用
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
切換 variant
OVERVIEW
grok-imagine-video-1.5-preview 在 Grok Imagine 系列中,兼顧品質與成本的最佳平衡。
- 以美元按次計費
- 生成失敗不收費
- 模型支援時可串流輸出
- Model skill setup
PRICING
價格
失敗的生成不收費
Text to video
$0.02-$0.08
/ second
Output resolution: 480p
$0.02
Output resolution: 720p
$0.03
Output resolution: 1080p
$0.08
Image to video
$0.11-$0.34
/ second
Output resolution: 480p
$0.11
Output resolution: 720p
$0.19
Output resolution: 1080p
$0.34
規格表
技術細節
| Model ID | grok-imagine-video-1.5-preview |
| 供應商 | xAI |
| 模態 | video |
| 任務類型 | asynchronous |
| 計費單位 | second |
| API endpoint | /api/v1/grok_imagine/text_to_video |
| 商用授權 | 是 — 已透過 API 包含 |
| 目錄狀態 | 可直接上線 |
SKILLS
快速開始 — grok-imagine-video-1.5-preview
相同格式 · variant 固定在 model 中
# Install the model skill for app development workflows
npx skills add runapi-ai/grok-imagine -g
Or use this setup request in your coding tool:
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
01
安裝
安裝此 model line 的 model skill。
02
設定
將 model 欄位設定為此頁面顯示的完整 model ID。
03
呼叫
使用您的 prompt、inputs 和 callback 設定送出型別化請求。
04
接收
讀取 RunAPI 的 task 回應、webhook callback 或快取輸出 URL。
DIFFERENCES
grok-imagine-video-1.5-preview 有什麼不同
VS GROK-IMAGINE-EDIT-IMAGE
Video 1.5 preview; text/image input; auto aspect ratio; up to 15s
Prompt-guided style transfer and composition editing from one source image
VS GROK-IMAGINE-IMAGE-2-0
Video 1.5 preview; text/image input; auto aspect ratio; up to 15s
文字生成圖片、分割圖及針對性圖片編輯
VS GROK-IMAGINE-IMAGE-TO-VIDEO
Video 1.5 preview; text/image input; auto aspect ratio; up to 15s
Input image becomes frame 1; animates with motion + camera
使用情境
最適合
廣告與社群內容
根據文字簡報生成產品上市短片與短影音廣告,將製作時間從數週縮短到數小時。
線上學習
無需攝影機或團隊,即可大規模將課程腳本轉為動畫解說影片。
創作者工作流程
直接從 prompt 產生適合社群平台的爆紅短影音內容。
FAQ
關於 grok-imagine-video-1.5-preview 的常見問題
如何選擇 grok-imagine-video-1.5-preview?
傳入 quickstart 顯示的 model ID。
這個 variant 的速率限制是多少?
每個金鑰的速率限制會依使用方案而調整。請查看定價頁面以了解目前限制。
之後可以切換 variant 嗎?
可以——variant 只是旗標。只要變更 model 參數即可切換。
它支援串流嗎?
只要支援串流,RunAPI 就會端到端串流。
我該在哪裡回報品質問題?
請在公開 GitHub repo 提交 issue,或寄信給支援。
Grok Imagine 的其他 variant
grok-imagine-image-2-0
最便宜
image-2-0
$0.0000 / call
grok-imagine-image-to-video
image-to-video
$0.020 / second
grok-imagine-text-to-video
text-to-video
$0.020 / second
grok-imagine-edit-image
edit-image
$0.040 / call
grok-imagine-text-to-image
text-to-image
$0.040 / call
grok-imagine-video-1.5-fast
最快
video-1.5-fast
$0.570 / call
其他模型的替代方案
GE
Gemini Omni
Voice, character, and multimodal video generation resources for narration, dialogue, and agent media workflows.
HA
Hailuo
Text and image-to-video at native 1080p with accurate physics simulation and motion.
HA
HappyHorse
Text, image, and edit-video generation with 720p and 1080p output, duration control, first-frame image support, ordered reference images for character-guided clips, and source-video editing.
立即開始