Grok Imagine Video
Grok Imagine Video offers hosted Grok video generation for text-to-video and image-to-video workflows.
Grok Imagine Video Image to Video API
Exactly one input image URL is required
Drag and drop an image, or click to browse
Supports PNG, JPEG, WebP. Max 10MB. You can also paste from clipboard (Ctrl+V).
Optional motion or scene direction
Video length in seconds
Output resolution
Result
Results will appear here
Cost: $0.07/second
Grok Imagine Video API Implementation Guide
Get API Key
Generate your API key from the dashboard and set it as an environment variable.
export MODELHUNTER_KEY="your_api_key"Make Your First Call
Follow the API documentation for complete code examples in cURL, JavaScript, and Python, including request format, polling, and error handling.
View API Documentation →Grok Imagine Video Key Info
Capabilities
- Text to Video API
- Image to Video API
Pricing
Price per second by resolution
| 480p | 720p |
|---|---|
| $0.05/second | $0.07/second |
Output only. $0.05/sec @480p, $0.07/sec @720p.
Use Cases
Output Formats
Grok Imagine Video API Documentation
Run the playground first, then open the full API docs for integration details.
About
Animate a single image into a video
Code Examples
1curl -X POST https://api.modelhunter.ai/api/v1/grok/image-to-video \2-H "Authorization: Bearer YOUR_API_KEY" \3-H "Content-Type: application/json" \4-d '{5"model": "grok-imagine/image-to-video",6"input": {7"image_urls": [8"https://example.com/image.jpg"9],10"duration": "6",11"resolution": "720p"12}13}'
Schema
View Full API DocsInput
modelModel ID for this capability.
Value: grok-imagine/image-to-video
image_urlsExactly one input image URL is required
promptOptional motion or scene direction
durationVideo length in seconds
Options: 6, 10, 15
Default: 6
resolutionOutput resolution
Options: 480p, 720p
Default: 720p
modeGeneration style preset
Options: normal, fun, spicy
Default: normal
webhookUrlURL to receive a webhook notification when the task completes.
metadataCustom key-value metadata to attach to the task for tracking.
Response (HTTP 202)
successWhether the request was accepted successfully.
data.idUnique task ID. Use this to poll GET /api/v1/tasks/{id} for results.
data.statusTask status: pending, processing, completed, failed.
data.typeGeneration type: image-to-video.
data.providerProvider name: grok.
data.modelModel ID used for generation.
data.created_atISO 8601 timestamp of when the task was created.
data.estimated_secondsEstimated time in seconds until the task completes.