xAI · Video
Hermes Agent x Grok Imagine
Grok Imagine is xAI's creative AI suite built on Grok, covering image and video generation. Through RunAPI, all Grok Imagine endpoints share a single API key.
公開版本與端點
| 模型 ID | 版本 | 端點 | 起始價格 | 模型目錄 |
|---|---|---|---|---|
grok-imagine-edit-image | Prompt-guided style transfer and composition editing from one source image | /api/v1/grok_imagine/edit_image | $0.040 | 模型詳情 |
grok-imagine-image-to-video | Input image becomes frame 1; animates with motion + camera | /api/v1/grok_imagine/image_to_video | $0.020 | 模型詳情 |
grok-imagine-text-to-image | Aurora model; 5 aspect ratios; realistic/artistic/anime styles | /api/v1/grok_imagine/text_to_image | $0.040 | 模型詳情 |
grok-imagine-text-to-video | 6–15s video from text with synchronized native audio and lip-sync | /api/v1/grok_imagine/text_to_video | $0.020 | 模型詳情 |
grok-imagine-video-1.5-fast | 快速文字/圖片生成影片,適合高頻創作迭代 | /api/v1/grok_imagine/text_to_video/api/v1/grok_imagine/image_to_video | $0.570 | 模型詳情 |
grok-imagine-video-1.5-preview | Video 1.5 preview; text/image input; auto aspect ratio; up to 15s | /api/v1/grok_imagine/text_to_video/api/v1/grok_imagine/image_to_video | $0.080 | 模型詳情 |
設定
指南端點: <endpoint>
選擇 <model-id> 後,依端點的公開輸入契約產生請求。驗證
選擇 <model-id> 後產生驗證命令。其他操作
這些操作不使用模型 ID。
/api/v1/grok_imagine/extend_video/api/v1/grok_imagine/upscale_image
使用流程
- 1. 選擇模型 ID
選擇公開模型 ID,並查看其端點與目前起始價格。
- 2. 設定 RunAPI
呼叫端點前設定 RUNAPI_API_KEY。
- 3. 驗證結果
對非同步端點輪詢同一路徑,直到 Task 進入終態。
常見問題
應該使用哪個模型 ID?
從版本表選擇公開模型 ID。每個 ID 可用的端點都列在對應資料列。
本指南會設定聊天模型嗎?
不會。此 Model Line 使用頁面所示的端點流程,不會被描述為 Agent 聊天模型。