> ## Documentation Index
> Fetch the complete documentation index at: https://docs.myrouter.ai/llms.txt
> Use this file to discover all available pages before exploring further.

# Grok Imagine image to video 

This is an async API that only returns the `task_id` of the async task.

<Tip>
  This is an **async** API that only returns the task\_id of the async task. Use the task\_id to call the [Get Async Task Result API](/docs/models/reference-get-async-task-result) to retrieve the generated result.
</Tip>

## Request Headers

<ParamField header="Content-Type" type="string" required={true}>
  Enum: `application/json`
</ParamField>

<ParamField header="Authorization" type="string" required={true}>
  Bearer authentication format: Bearer \{\{API Key}}.
</ParamField>

## Request Body

<ParamField body="image" type="string" required={true}>
  Input image URL for video generation. Supports publicly accessible image URLs or base64-encoded data URIs (e.g., data:image/jpeg;base64,...).
</ParamField>

<ParamField body="prompt" type="string" required={true}>
  Text prompt describing the motion or transformation to apply to the input image. Supports detailed prompts describing scene dynamics, character actions, and camera movements.

  Length limit: 1 - 4096
</ParamField>

<ParamField body="duration" type="integer" default={6}>
  Video duration in seconds (6-10). Longer videos cost more and are billed per second.

  Range: \[6, 10]
</ParamField>

<ParamField body="resolution" type="string" default="720p">
  Output video resolution. 720p provides higher quality; 480p generates faster.

  Possible values: `720p`, `480p`
</ParamField>

## Response

<ResponseField name="task_id" type="string" required={true}>
  Use the task\_id to call the [Get Async Task Result API](/docs/models/reference-get-async-task-result) to retrieve the generated output.
</ResponseField>
