Grok วิดีโอ API
วีดีโอ APIHOTGrok Video API มอบวิธีการให้ทีมงานใช้ Grok Imagine สำหรับการสร้างวิดีโอในเวิร์กโฟลว์การผลิตโดยเน้น API เป็นหลัก มันรองรับการสร้างวิดีโอจากข้อความตามคำสั่ง, การสร้างวิดีโอจากภาพอ้างอิง, การปรับความละเอียดวิดีโอ, และการขยายวิดีโอจากหนึ่งตระกูลโมเดล
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
การประมาณค่าเป็น USD ใช้ $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-first เหมือนกับเอกสารอ้างอิง: ทดสอบโมเดล ทำความเข้าใจกับฟิลด์ แล้วจึงดำเนินการรวมเข้าด้วยกัน
การสร้างวิดีโอจากข้อความ
แปลงคำสั่งที่ละเอียดให้เป็นแนวคิดวิดีโอสั้นสำหรับโพสต์ในโซเชียล โฆษณา ช่วงเวลาผลิตภัณฑ์ และการสำรวจความคิดสร้างสรรค์อย่างรวดเร็ว
การเคลื่อนไหวจากภาพเป็นวิดีโอ
ทำให้ภาพต้นฉบับเคลื่อนไหวในขณะที่รักษาวัตถุหลัก, การจัดองค์ประกอบ, และทิศทางภาพที่ทีมของคุณได้อนุมัติแล้ว
ปรับปรุงคุณภาพและขยาย
ปรับปรุงคลิป Grok ที่ประสบความสำเร็จด้วยการยกระดับวิดีโอ หรือดำเนินการสร้างที่มีอยู่ต่อด้วยงานขยาย
API-ready payloads
ทำงานกับรหัสโมเดล, คำสั่ง, URL ของภาพ, รหัสงาน, อัตราส่วนภาพ, การเรียกกลับ, และการสำรวจงานในเส้นทางการรวมเดียวกัน
จากการทดสอบGrok Video ไปจนถึงคำขอผลิต
เส้นทางที่กระชับสำหรับทีมที่ต้องการตรวจสอบคุณภาพผลลัพธ์ก่อนที่จะเชื่อมต่อการสร้างGrok Video เข้ากับแอป
1. เลือกโหมด
เลือกข้อความเป็นวิดีโอสำหรับการสร้างเฉพาะพรอมต์, ภาพเป็นวิดีโอสำหรับการสร้างภาพเคลื่อนไหวจากภาพต้นฉบับ, หรือโหมดต่อเนื่องสำหรับการยกระดับและขยาย
2. ส่งการสร้าง
เรียกใช้ API ด้วยรหัสบัญชีของคุณ รหัสโมเดล ข้อความแจ้ง URL รูปภาพหรือรหัสงานต้นทาง (ถ้ามี) และ URL สำหรับการเรียกกลับ
3. สำรวจและนำกลับมาใช้ใหม่
ติดตามงานจนกว่างานจะสำเร็จ จากนั้นใช้ URL ผลลัพธ์ซ้ำในผลิตภัณฑ์ การทำงานแคมเปญ หรืองานวิดีโอที่ติดตามต่อ
คุณสามารถสร้างอะไรได้บ้างด้วย Grok Video API
ใช้ API เมื่อผลิตภัณฑ์ของคุณต้องการGrok Video ที่สามารถสร้างซ้ำได้ ไม่ใช่แค่การสร้างด้วยตนเองครั้งเดียว
Grok Video ที่สร้างสำเร็จจากชุมชน
เรียกดูผลลัพธ์Grok Video สาธารณะที่เสร็จสมบูรณ์แล้ว จากนั้นเปิดเคสใดก็ได้เพื่อตรวจสอบพรอมต์ การตั้งค่า และผลลัพธ์
Grok Imagine Text to Video
2,030 years ago. The Fertile Crescent. The region of the city of Babylon—a center of learning in its time—featuring stone and brick houses, trees, ziggurats, gardens, and magnificent centers of scholarship: the Esagila (an ancient library) and the Etemenanki tower. The camera shows the starry night sky; constellations take shape of animals like mirages amidst the myriad stars; then, the camera focuses on a single star and follows it. It is an exceptional star; it stands out against the FROM THE BACKGROUND FORWARS, TOWARD STRAIGHT TO LENS CAMERA on celestial backdrop, traversing the night FROM LEFT TO RIGHT ON firmament slowly—very slowly—and blinking discreetly as it moves from east to west. the, camera tilt to down slowly showing a large, lavish caravan MOVING SLOWLY FORWARD, TOWARD TO CÂMERA: a dozen camels, horses, three period carriages, donkeys laden with supplies, and dozens of servants advancing slowly through the mountains of the Middle East.
Grok Imagine Text to Video
2,030 years ago. The Fertile Crescent. The region of the city of Babylon—a center of learning in its time—featuring stone and brick houses, trees, ziggurats, gardens, and magnificent centers of scholarship: the Esagila (an ancient library) and the Etemenanki tower. The camera shows the starry night sky; constellations take shape of animals like mirages amidst the myriad stars; then, the camera focuses on a single star and follows it. It is an exceptional star; it stands out against the celestial backdrop, traversing the night FROM LEFT TO RIGHT ON firmament slowly—very slowly—and blinking discreetly as it moves from east to west. the, camera tilt to down slowly showing a large, lavish caravan MOVING SLOWLY FORWARD, TOWARD TO CÂMERA: a dozen camels, horses, three period carriages, donkeys laden with supplies, and dozens of servants advancing slowly through the mountains of the Middle East.
Grok Imagine Text to Video
A smiling African woman walks down a sunlit dirt road, balancing a large metal tray filled with fresh apples and other fruits on her head. She wears a brightly colored patterned dress and matching headwrap. The camera slowly tracks backward, revealing a village setting with green trees and light-colored buildings in the background.
Grok Imagine Image to Video
fixed camera. woman in image poses fcing away looking at camera and talking in argentine spanish about her "Kola".
Grok Imagine Image to Video
dia bergoyang sambil meremas dada
Grok Imagine Image to Video
Ethereal, hypnotic dance loop. she performs a slow, circular hip rotation while her arms weave gracefully high through the air. Her spine undulates gently, creating a continuous ripple from neck to knees. at the end she quickly turns around in a swift motion pirouette style. The face remains perfectly static and recognizable—no expression change, she keeps the same warm smile that she starts with in the start image, no warping. Preserve bone structure, proportions, and body mass index exactly as in the input. Shallow depth of field, soft focus on the background, 60fps slow motion.
สร้างขึ้นสำหรับเวิร์กโฟลว์ API Grok Video จริง
การดำเนินการที่ถูกจำกัดด้วยบัญชี
ผู้ใช้เข้าสู่ระบบ ส่งงาน และใช้เครดิตผ่านกระบวนการสร้าง SdanceAI ที่มีอยู่
ข้อมูลอ้างอิงและงานที่ได้รับมอบหมาย
Image-to-video ยอมรับ URL ของภาพต้นฉบับ ในขณะที่การทำงานแบบ upscale และ extend สามารถดำเนินต่อจาก ID งานวิดีโอที่เสร็จสมบูรณ์ได้
การวนซ้ำที่ตระหนักถึงโหมด
เริ่มต้นด้วยการสร้างข้อความหรือภาพ แล้วค่อยนำผลลัพธ์ที่มีแนวโน้มดีไปเข้าสู่กระบวนการปรับขนาดหรือขยายเมื่อจำเป็น
คำถามเกี่ยวกับ Grok Video API
Grok Video API ใช้สำหรับอะไรดีที่สุด?
เหมาะที่สุดสำหรับการสร้างวิดีโอสั้นที่สามารถทำซ้ำได้ รวมถึงคลิปที่นำโดยพรอมต์ ภาพต้นฉบับที่เคลื่อนไหว ตัวแปรวิดีโอ ผลลัพธ์ที่ขยายขนาด และลำดับครีเอทีฟที่ยาวขึ้น
โหมดGrok Video แบบใดบ้างที่มีให้ใช้งาน?
หน้าปัจจุบันนี้เปิดเผย Grok Imagine Text to Video, Grok Imagine Image to Video, Grok Imagine Video Upscale, และ Grok Imagine Video Extend
ความแตกต่างระหว่างข้อความเป็นวิดีโอและภาพเป็นวิดีโอคืออะไร?
Text to Video เริ่มต้นเพียงจากคำสั่ง Image to Video ใช้ภาพต้นฉบับหนึ่งภาพหรือมากกว่าพร้อมกับคำสั่ง ซึ่งจะดีกว่าเมื่อคุณต้องการความต่อเนื่องของวัตถุหรือองค์ประกอบ
ฉันควรใช้ upscale หรือ extend เมื่อใด?
ใช้ upscale เมื่อคุณมีGrok Video ที่ประสบความสำเร็จแล้วและต้องการเวอร์ชันคุณภาพสูงกว่า ใช้ extend เมื่อคุณต้องการต่อเนื่องการสร้างที่เสร็จสมบูรณ์ให้เป็นลำดับที่ยาวขึ้น
ฉันทดสอบมันได้ที่ไหนก่อนที่จะรวมเข้าด้วยกัน?
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 ของคำขอ รายการฟิลด์ และแผงราคาจะอัปเดตให้ตรงกับโมเดลนั้น
เปลี่ยนGrok Video ให้เป็นเวิร์กโฟลว์การผลิตของคุณ
เปิดเครื่องกำเนิด ทดสอบพรอมต์Grok Video หรือภาพต้นฉบับ จากนั้นใช้เอกสาร API เมื่อคุณพร้อมที่จะเชื่อมเข้ากับการผลิต