Skip to main content
POST
/
v1
/
jobs
/
submit
Grok Imagine
curl --request POST \
  --url https://api.muvi.video/v1/jobs/submit \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "model": "<string>",
  "input": {
    "prompt": "<string>",
    "image_url": "<string>",
    "duration": "<string>",
    "resolution": "<string>"
  }
}
'
{
  "jobId": "<string>",
  "status": "<string>",
  "estimatedCompletionTime": "<string>",
  "costMicroCents": 123
}

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.
PropertyValue
ProviderxAI
ModelGrok Imagine
CapabilityImage to Video
Base Cost50,000 micro-cents/request ($0.50/request)
Processing Time~100 seconds

Request Body

model
string
required
Model slug. Use xai/grok-imagine/image-to-video for image-to-video generation.
input
object
required
Input parameters for image-to-video generation.
webhookUrl
string
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
FactorOptionMultiplier
Duration66x
1010x
1515x
Resolution480p1x
720p1.4x
Example cost: 6 seconds, 480p = 50,000 × 6 × 1 = 300,000 micro-cents ($3.00)

Response

jobId
string
Unique identifier for the submitted job.
status
string
Initial job status. Always "pending" on successful submission.
estimatedCompletionTime
string
ISO 8601 timestamp of the estimated completion time.
costMicroCents
number
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"
    }
  }'