Skip to main content
POST
/
generate
/
k
/
grok-image-to-video
Grok Image to Video
curl --request POST \
  --url https://api.sinancode.com/v1/generate/k/grok-image-to-video \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "image_urls": [
    ""
  ],
  "mode": "normal",
  "prompt": "The person waves and smiles"
}
'
{
  "task_id": "01234567-89ab-cdef-0123-456789abcdef"
}
Transform static images into dynamic videos using xAI’s Grok Imagine model. Key Features:
  • Image Animation - Transform static images into professional-grade short videos
  • Audio-Video Sync - Automatically generate matching sound effects, dialogue, and even singing
  • Smooth Motion - 24fps framerate with natural, jitter-free movement
  • Fast Output - Complete generation within 15 seconds

Authorizations

Authorization
string
header
required

Please use your API Token for authentication

Body

application/json

Task parameters

image_urls
string[]

Image URL list (max 1)

Maximum array length: 1
Example:
[""]
mode
enum<string>
default:normal

Mode (optional, default normal)

Available options:
fun,
normal,
spicy
Example:

"normal"

prompt
string

Prompt (optional)

Maximum string length: 5000
Example:

"The person waves and smiles"

Response

OK

task_id
string
required

Task ID

Example:

"01234567-89ab-cdef-0123-456789abcdef"