Grok Video API 提供團隊一種以 API 為先的方式,在生產工作流程中使用 Grok Imagine 視頻生成。它支持基於提示的文字轉視頻、基於參考的圖片轉視頻、視頻升級以及從一個模型系列擴展視頻。
Use the playground to validate prompts, source images, task IDs, duration, aspect ratio, and payload behavior before connecting Grok video generation to your app, creative tool, or content pipeline.
最低價格起 $0.01/s
480p: 2 學分/秒 - 文字轉視頻 - 輸出秒數 × 2
720p: 3 學分/秒 - 文字轉視頻 - 輸出秒數 × 3
480p: 10 學分/秒 - 文字轉視頻 - 輸出秒數 × 10
720p: 14 學分/秒 - 文字轉視頻 - 輸出秒數 × 14
美元估算使用每個信用 $0.005 的最佳年度計劃。最終計費依所選的 Grok Video變體和輸出設定而定。
核心請求欄位
Use a predictable payload for prompts, image URLs, source task IDs, aspect ratio, and callback settings.
{
"model": "grok-imagine/text-to-video",
"input": {
"prompt": "A couple of doors open to the right one by one randomly and stay open, to show the inside, each is either a living room, or a kitchen, or a bedroom or an office, with little people living inside.",
"aspect_ratio": "2:3",
"mode": "normal",
"duration": "6",
"resolution": "480p"
}
}使用 Grok Imagine Text to Video 進行生成
此頁面上的遊樂場、樣本請求、請求欄位及價格皆依所選模型類型而定。
查看詳細的 API 文件Open the full API documentation for endpoints, authentication, task polling, and payload details. /models/grok-imagine.md
promptstringText prompt describing the desired video motion. Required field.aspect_ratioenumSpecifies the width-to-height ratio of the generated video. Controls the aspect ratio of the output. (2:3, 3:2, 1:1, 16:9, 9:16)modeenumSpecifies the generation mode affecting the style and intensity of motion. (fun, normal, spicy)durationnumberThe duration of the generated video (in seconds) (6-30). (Minimum: 6, Maximum: 30, Step: 1)resolutionenumThe resolution of the generated video. (480p, 720p, 1080p)nsfw_checkerbooleanDefaults to false. You can set it to false based on your needs. If set to false, our content filtering will be disabled, and all results will be returned directly by the model itself.Grok Video API 為您的影片工作流程增添的功能
此頁面遵循與參考相同的 API 優先結構:測試模型、了解欄位,然後進行整合。
文字到影片生成
將詳細的提示轉化為用於社交貼文、廣告、產品時刻和快速創意探索的短片概念。
影像到影片的動態
在保留你們團隊已經批准的主體、構圖和視覺方向的同時,給原始圖像添加動畫效果。
升級並延伸
透過影片升級來改進成功的 Grok 片段,或透過延伸任務繼續現有的生成。
API-ready payloads
在一個整合路徑中處理模型 ID、提示詞、圖片 URL、任務 ID、長寬比、回呼以及任務輪詢。
從 Grok Video測試到製作請求
為希望在將 Grok 視頻生成功能整合到應用程式之前驗證輸出品質的團隊提供的一條簡潔路徑。
1. 選擇一種模式
選擇文字轉影片以僅使用提示創建,圖片轉影片以動畫化來源圖像,或後續模式以進行升級和延展。
2. 提交生成
使用您的帳戶金鑰、模型 ID、提示詞、可選的圖片網址或來源任務 ID,以及回呼 URL 呼叫 API。
3. 投票並重用
追蹤任務直到成功,然後在您的產品、活動工作流程或後續視頻任務中重用輸出 URL。
使用 Grok 視頻 API 可以創建的內容
當您的產品需要可重複的 Grok 視頻輸出,而不僅僅是一次性的手動生成時,請使用 API。
社群成功生成的 Grok Video
瀏覽已成功完成的公開 Grok 視頻輸出,然後打開任何案例以檢查提示、設定和結果。
Grok Imagine Image to Video
البنت 25 المصريه تدخن سيجاره مارلبورو قصيره جدا المشهد ثابته لا تتغير
Grok Imagine Image to Video
البنت المصريه تدخن سيجاره قصيره جدا المشهد ثابته لا تتغير
Grok Imagine Image to Video
البنت 20 المصريه على اليسار تدخن سيجاره قصيره جدا
Grok Imagine Image to Video
Subject's tidying his hair, then moving a little going on right to take a bowl of a noodle with a fork on it, then using a fork to blowing and eat it with soo many big mouthful to quench hungry until a very wet mouth moving smoothly, micro-movements only, framing and background locked,
Grok Imagine Image to Video
Use the provided image as the exact visual reference. Keep the green-clad woman in the foreground, seated naturally on her camel. Do not change the positions of the other women, army, camels, flags, mountains, or scenery. She loudly **shouts these Arabic verses across the surrounding army**, like a powerful warrior-poet addressing thousands of warriors. Fierce, commanding, proud, and emotionally intense: "إِنْ تُقْبِلُوا نُعَانِقْ! وَنَفْرُشِ النَّمَارِقْ! أَوْ تُدْبِرُوا نُفَارِقْ! فِرَاقَ غَيْرِ وَامِقْ!" Her mouth and lower face remain completely covered. The veil **subtly moves and deforms naturally with her jaw and mouth movements underneath**, but never reveals her lips. Add **strong but graceful hand gestures** while she speaks: she occasionally raises one hand toward the surrounding army, opens her palm outward while delivering a line, then brings it back naturally. On the final lines, she makes a firm, commanding gesture toward the distant army.
Grok Imagine Image to Video
Use the provided image as the exact visual reference. Keep the green-clad woman in the foreground, seated naturally on her camel. Do not change the positions of the other women, army, camels, flags, mountains, or scenery. She suddenly **shouts these Arabic verses loudly across the surrounding army**, projecting her voice like a powerful warrior-poet addressing thousands of warriors. She is fierce, commanding, proud, and emotionally intense — NOT quietly reciting. "إِنْ تُقْبِلُوا نُعَانِقْ! وَنَفْرُشِ النَّمَارِقْ! أَوْ تُدْبِرُوا نُفَارِقْ! فِرَاقَ غَيْرِ وَامِقْ!" Strong pauses between lines. The final two lines become especially forceful and threatening. Her eyes show fierce determination. Natural mouth movement and subtle head movement. The camera slowly pushes toward her while slightly orbiting. The army subtly reacts by looking toward her. Photorealistic historical cinematic realism, dramatic desert atmosphere, realistic camel and fabric movement. No music.
為真正的 Grok 視頻 API 工作流程而建
帳戶限制執行
用戶透過現有的 SdanceAI 生成流程登入、提交任務並消耗點數。
參考和任務輸入
圖片轉影片接受來源圖片的網址,而升級與延伸工作流程可以從已完成的影片任務 ID 繼續。
模式感知迭代
先從文字或圖像生成開始,然後在需要時將有潛力的輸出移入放大或延伸工作流程。
Grok 視頻 API 問題
Grok Video API 最適合用於什麼?
它最適合用於可重複的短片生成,包括提示引導的片段、動畫源圖像、視頻變體、升級輸出和延長的創意序列。
Grok 有哪些影片模式可用?
當前頁面展示了 Grok Imagine 文本轉影片、Grok Imagine 圖片轉影片、Grok Imagine 影片升級以及 Grok Imagine 影片延長。
文字轉影片和圖片轉影片的區別是什麼?
文字到影片僅從提示開始。圖片到影片使用一張或多張來源圖片加上提示,當你需要保持主題或構圖的連續性時,這種方法更好。
我應該何時使用 upscale 或 extend?
當你已經有一個成功的 Grok 視頻並且想要更高品質的版本時,使用升級。當你想將已完成的生成延續成更長的序列時,使用擴展。
我可以在哪裡在整合之前測試它?
Use the playground on this page to test prompts, image URLs, source task IDs, aspect ratios, callbacks, and API payload behavior before moving into production.
這個 API 支援回呼嗎?
是的。請求架構包括在支援的情況下的回呼設置,因此您的服務可以接收任務完成通知。
我可以將 Grok Video API 用於商業工作流程嗎?
此頁面已為生產視頻工作流程配置。若用於商業用途,請檢查您的帳戶方案、信用餘額、模型可用性以及適用的內容政策要求。
我可以為現有的產品圖片製作動畫嗎?
是的。使用圖像轉視頻模式,提供來源圖像的 URL,以及描述動作、攝影機行為和最終視覺方向的提示。
我應該如何管理成本?
先從快速提示或圖像轉影片測試開始,然後將升頻和延伸任務保留給已經接近目標的片段。
我可以檢查實際的 API 欄位嗎?
是的。在此頁面上選擇一個 Grok Video模式,請求的 JSON、欄位列表和定價面板將會更新以匹配該模型。