Grok

grok-imagine

Giao diện lập trình ứng dụng videoHOT

Grok Video API cung cấp cho các nhóm một cách tiếp cận API-đầu tiên để sử dụng tạo video Grok Imagine trong các quy trình sản xuất. Nó hỗ trợ chuyển đổi văn bản thành video dựa trên gợi ý, chuyển đổi hình ảnh thành video dựa trên tham chiếu, nâng cấp video và mở rộng video từ một họ mô hình.

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.

Loại mô hình:
Bảng giá

Chi phí thấp nhất bắt đầu từ $0.01/s

Mô hình đã chọn
Grok Imagine Text to Video

480p: 2 tín dụng/giây - Chuyển văn bản thành video - Giây đầu ra × 2

720p: 3 tín dụng/giây - Chuyển văn bản thành video - Giây đầu ra × 3

480p: 10 tín dụng/giây - Chuyển văn bản thành video - Giây đầu ra × 10

720p: 14 tín dụng/giây - Chuyển văn bản thành video - Giây đầu ra × 14

Ước tính USD sử dụng $0,005/mỗi tín chỉ với gói hàng năm tốt nhất. Thanh toán cuối cùng sẽ theo biến thể video Grok đã chọn và cài đặt đầu ra.

Nhiệm vụ mới xuất hiện ở đây sau khi bạn gửi.
Đầu vào API

Các trường yêu cầu chính

Use a predictable payload for prompts, image URLs, source task IDs, aspect ratio, and callback settings.

Yêu cầu JSON
{
  "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"
  }
}

Sử dụng Grok Imagine Text to Video để tạo

Khu vui chơi, yêu cầu mẫu, yêu cầu các trường dữ liệu và giá trên trang này tuân theo loại mô hình đã chọn.

Xem tài liệu API chi tiết

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)
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.
Khả năng

Những gì API Grok Video thêm vào quy trình làm việc video của bạn

Trang này tuân theo cùng một cấu trúc API-đầu tiên như tài liệu tham khảo: thử nghiệm mô hình, hiểu các trường dữ liệu, sau đó chuyển sang tích hợp.

Tạo video từ văn bản

Biến các gợi ý chi tiết thành các ý tưởng video ngắn cho bài đăng trên mạng xã hội, quảng cáo, khoảnh khắc sản phẩm và khám phá sáng tạo nhanh.

Chuyển động từ hình ảnh sang video

Hoạt hình các hình ảnh nguồn trong khi vẫn giữ nguyên đối tượng, bố cục và hướng hình ảnh mà nhóm của bạn đã phê duyệt.

Nâng cấp và mở rộng

Cải thiện các clip Grok thành công bằng cách nâng cấp video, hoặc tiếp tục một thế hệ hiện có với một nhiệm vụ mở rộng.

API-ready payloads

Làm việc với các ID mô hình, lời nhắc, URL hình ảnh, ID nhiệm vụ, tỷ lệ khung hình, callback và việc kiểm tra nhiệm vụ trong một đường dẫn tích hợp duy nhất.

Bắt đầu nhanh

Từ kiểm tra video Grok đến yêu cầu sản xuất

Một lộ trình gọn nhẹ cho các nhóm muốn xác thực chất lượng đầu ra trước khi tích hợp tạo video Grok vào ứng dụng.

1. Chọn một chế độ

Chọn văn bản thành video để chỉ tạo theo hướng dẫn, hình ảnh thành video để hoạt hình hóa hình ảnh nguồn, hoặc chế độ theo dõi để nâng cấp và mở rộng.

2. Gửi thế hệ

Gọi API với khóa tài khoản của bạn, ID mô hình, prompt, các URL hình ảnh tùy chọn hoặc ID nhiệm vụ nguồn, và URL callback.

3. Bỏ phiếu và tái sử dụng

Theo dõi nhiệm vụ cho đến khi nó thành công, sau đó tái sử dụng URL đầu ra trong sản phẩm, quy trình chiến dịch hoặc nhiệm vụ video tiếp theo của bạn.

Trường hợp sử dụng

Những gì bạn có thể tạo với Grok Video API

Sử dụng API khi sản phẩm của bạn cần đầu ra video Grok có thể lặp lại, không chỉ tạo thủ công một lần.

Các clip xã hội dựa trên gợi ý cho TikTok, Reels và Shorts
Hình ảnh sản phẩm hoạt hình và hình ảnh chiến dịch
Khám phá nhanh storyboard và video ý tưởng
Các biến thể video cho quảng cáo, hình thu nhỏ và trang đích
Phiên bản nâng cấp của clip được tạo thành công
Clip mở rộng cho quy trình quảng cáo lặp đi lặp lại
Trình diễn Cộng đồng

Các video Grok thành công được tạo ra từ cộng đồng

Duyệt các kết quả video Grok công khai đã hoàn tất thành công, sau đó mở bất kỳ trường hợp nào để kiểm tra lời nhắc, cài đặt và kết quả.

Xem thêm
videoGrok Imagine

Real life scene, bank Holiday monday, new build living room on sofa, randy dominant 70-year-old Salford bloke next door dad wearing a crisp diffferent cotton business shirt with a sheen large stiff pinched collar, top buttons undone, tucked tightly in

Real life scene, bank Holiday monday, new build living room on sofa, randy dominant 70-year-old Salford bloke next door dad wearing a crisp diffferent cotton business shirt with a sheen large stiff pinched collar, top buttons undone, tucked tightly into dark smart trousers with a black belt., he is otk disciplining a 40 year old, 5 foot, thug scally bloke, who is wearing simlar, filthy talking, swearing

12 thg 7, 2026Xem chi tiết
videoGrok Imagine

Use the uploaded image as the only reference. Create an 8-second vertical (9:16) ultra-realistic cinematic fashion video. The woman must remain exactly the same person as in the reference image. Preserve her facial features, skin tone, hairstyle, body p

Use the uploaded image as the only reference. Create an 8-second vertical (9:16) ultra-realistic cinematic fashion video. The woman must remain exactly the same person as in the reference image. Preserve her facial features, skin tone, hairstyle, body proportions, natural expression, and overall appearance consistently throughout the entire video. The dress must remain exactly the same dress shown in the reference image. Do not redesign, restyle, or modify it in any way. Preserve the exact yellow color, the same cotton fabric texture, embroidery, covered buttons, stitching, round neckline, sleeves, waist seam, silhouette, length, wrinkles, folds, and every visible detail exactly as in the original image. The back of the dress is extremely important. Keep it exactly the same as the reference image. It has a simple, clean back with only the waist seam. There must be NO belt, NO sash, NO ribbon, NO bow, NO back tie, NO pleats, NO gathers, NO decorative elements, NO extra seams, and NO redesign of the back. The woman begins sitting naturally on the sofa in the seaside lounge. She smiles gently, stands up naturally, then slowly walks through the elegant Mediterranean seaside corridor beside the ocean. The corridor has white walls, blue wooden railings, Mediterranean flowers, green vines, and beautiful coastal plants. The sea remains visible beside her during the walk. Her walking is slow, elegant, and completely natural. She has realistic posture, subtle arm movement, natural breathing, and soft hair movement from the sea breeze. The dress moves only with realistic fabric physics while keeping its exact original shape and design. The camera starts with a medium shot, then smoothly follows behind her with a stabilized cinematic tracking shot, clearly showing the original back of the dress while she walks. At the end of the corridor, she gently stops, turns her head toward the sea, and smiles softly while looking at the horizon. Bright Mediterranean afternoon sunlight, realistic shadows, natural ocean reflections, crystal-blue water, gentle waves, subtle movement of flowers and leaves in the breeze. Professional luxury fashion commercial, photorealistic, 4K HDR, full-frame cinema camera, natural skin texture, sharp details, stable camera movement, no AI look. Negative Prompt: No dress redesign, no color change, no fabric change, no belt, no sash, no ribbon, no bow, no pleats, no gathers, no extra seams, no accessories, no body reshaping, no face changes, no identity drift, no clothing deformation, no flickering, no warped hands, no distorted anatomy, no AI artifacts.

12 thg 7, 2026Xem chi tiết
videoGrok Imagine

1950s Ad card and board dice game for family named "crack me"

1950s Ad card and board dice game for family named "crack me"

12 thg 7, 2026Xem chi tiết
videoGrok Imagine

No zoom, no music, static camera. She doesnt change her pose but arch her back and relies on the block from the back. She imitate medieval torture like sit and stand impaling on black rubber stake

No zoom, no music, static camera. She doesnt change her pose but arch her back and relies on the block from the back. She imitate medieval torture like sit and stand impaling on black rubber stake

12 thg 7, 2026Xem chi tiết
videoGrok Imagine

No music, no zoom, static camera, keep their poses. used by him with an animal passion and frenzy pace in supernatural tempo from the very start of the video

No music, no zoom, static camera, keep their poses. used by him with an animal passion and frenzy pace in supernatural tempo from the very start of the video

12 thg 7, 2026Xem chi tiết
videoGrok Imagine

No music, no zoom, static camera, keep their pose. hardly used by him with an animal passion and frenzy in supernatural tempo from the very start of the video

No music, no zoom, static camera, keep their pose. hardly used by him with an animal passion and frenzy in supernatural tempo from the very start of the video

12 thg 7, 2026Xem chi tiết
Ghi chú sản xuất

Được xây dựng cho các quy trình làm việc API video Grok thực sự

Khớp lệnh kiểm soát tài khoản

Người dùng đăng nhập, gửi công việc và sử dụng tín dụng thông qua quy trình tạo SdanceAI hiện có.

Nguồn tham khảo và đầu vào nhiệm vụ

Chuyển đổi hình ảnh thành video chấp nhận URL hình ảnh nguồn, trong khi các quy trình nâng cấp và mở rộng có thể tiếp tục từ các ID tác vụ video đã hoàn thành.

Vòng lặp nhận biết chế độ

Bắt đầu với việc tạo văn bản hoặc hình ảnh, sau đó chuyển các kết quả tiềm năng vào quy trình nâng cấp hoặc mở rộng khi cần thiết.

FAQ

Các câu hỏi về API Grok Video

Grok Video API tốt nhất cho việc gì?

Nó thích hợp nhất cho việc tạo video ngắn có thể lặp lại, bao gồm các clip theo gợi ý, hình ảnh nguồn động, các biến thể video, sản phẩm đầu ra được nâng cấp và các chuỗi sáng tạo mở rộng.

Các chế độ video Grok nào có sẵn?

Trang hiện tại giới thiệu Grok Imagine Chuyển văn bản thành video, Grok Imagine Chuyển hình ảnh thành video, Grok Imagine Nâng cấp video và Grok Imagine Kéo dài video.

Sự khác biệt giữa Chuyển đổi Văn bản thành Video và Chuyển đổi Hình ảnh thành Video là gì?

Chuyển văn bản thành video bắt đầu chỉ từ một gợi ý. Chuyển hình ảnh thành video sử dụng một hoặc nhiều hình ảnh nguồn cùng với một gợi ý, điều này tốt hơn khi bạn cần sự liên tục về chủ thể hoặc bố cục.

Khi nào tôi nên sử dụng upscale hoặc extend?

Sử dụng upscale khi bạn đã có một video Grok thành công và muốn có phiên bản chất lượng cao hơn. Sử dụng extend khi bạn muốn tiếp tục một lần tạo đã hoàn thành thành một chuỗi dài hơn.

Tôi có thể thử nghiệm nó ở đâu trước khi tích hợp?

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 có hỗ trợ callback không?

Vâng. Bản đồ yêu cầu bao gồm các cài đặt gọi lại nếu được hỗ trợ, vì vậy dịch vụ của bạn có thể nhận thông báo khi nhiệm vụ hoàn thành.

Tôi có thể sử dụng Grok Video API cho các quy trình làm việc thương mại không?

Trang này được cấu hình cho quy trình làm việc video sản xuất. Đối với sử dụng thương mại, hãy xem xét kế hoạch tài khoản, số dư tín dụng, khả năng sử dụng mô hình và các yêu cầu chính sách nội dung áp dụng.

Tôi có thể làm ảnh sản phẩm hiện có chuyển động không?

Vâng. Sử dụng chế độ chuyển từ hình ảnh sang video với URL hình ảnh nguồn và một lời nhắc mô tả chuyển động, hành vi của camera, và hướng hình ảnh cuối cùng.

Tôi nên quản lý chi phí như thế nào?

Bắt đầu với thử nghiệm nhanh bằng prompt hoặc hình ảnh thành video, sau đó để dành các tác vụ nâng cao chất lượng và mở rộng cho những clip đã gần với mục tiêu của bạn.

Tôi có thể kiểm tra các trường API thực tế không?

Vâng. Chọn chế độ video Grok trên trang này và JSON yêu cầu, danh sách trường và bảng giá sẽ được cập nhật để phù hợp với mô hình đó.

Bắt đầu xây dựng

Biến video Grok thành một phần của quy trình sản xuất của bạn

Mở trình tạo, thử nghiệm một video Grok hoặc hình ảnh nguồn, sau đó sử dụng tài liệu API khi bạn sẵn sàng tích hợp nó vào sản xuất.

Sẵn sàng cho API
workflow
4 chế độ
công cụ video
ID nhiệm vụ
follow-ups