English
cURL
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" }
Generate video from image using xAI Grok model (async)
Please use your API Token for authentication
Task parameters
Image URL list (max 1)
1
[""]
Mode (optional, default normal)
fun
normal
spicy
"normal"
Prompt (optional)
5000
"The person waves and smiles"
OK
Task ID
"01234567-89ab-cdef-0123-456789abcdef"