Documentation Index
Fetch the complete documentation index at: https://developer.pixelbyte.app/docs/llms.txt
Use this file to discover all available pages before exploring further.
Generate videos from images with xAI’s Grok Imagine model. Supports multiple durations and resolutions with per-request pricing.
| Property | Value |
|---|
| Provider | xAI |
| Model | Grok Imagine |
| Capability | Image to Video |
| Base Cost | 50,000 micro-cents/request ($0.50/request) |
| Processing Time | ~100 seconds |
Request Body
Model slug. Use xai/grok-imagine/image-to-video for image-to-video generation.
Input parameters for image-to-video generation.
Text description of the video to generate.
URL of the input image to animate.
Video duration in seconds. Options: 6, 10, 15.
Output resolution. Options: 480p, 720p.
HTTPS URL to receive a webhook notification when the job completes or fails.
Pricing
Base cost: 50,000 micro-cents per request ($0.50/request)
finalCost = baseCost × duration × resolution
| Factor | Option | Multiplier |
|---|
| Duration | 6 | 6x |
| 10 | 10x |
| 15 | 15x |
| Resolution | 480p | 1x |
| 720p | 1.4x |
Example cost: 6 seconds, 480p = 50,000 × 6 × 1 = 300,000 micro-cents ($3.00)
Response
Unique identifier for the submitted job.
Initial job status. Always "pending" on successful submission.
ISO 8601 timestamp of the estimated completion time.
The cost of the job in micro-cents.
Code Examples
curl -X POST https://api.muvi.video/v1/jobs/submit \
-H "Authorization: Bearer $PIXELBYTE_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"model": "xai/grok-imagine/image-to-video",
"input": {
"prompt": "A golden retriever running through a sunlit meadow",
"image_url": "https://example.com/dog.jpg",
"duration": "6",
"resolution": "720p"
}
}'