HiAPI
OverviewModel MarketplaceAPI KeysUsage StatisticsCall LogsBillingReferralPlaygroundStorageChangelogContact UsSettings
Display unit
N
Powered by hiapi
Settings

Welcome

Contact Us

Try Grok Imagine Image to Video online. Animate a source image, review supported durations and resolutions, copy prompts, pricing, and POST /v1/tasks API code.

Provider: xAI

Category: video generation

Endpoint: /v1/tasks

Status: Available

Cost: See live page pricing

Back to Models

Grok Imagine Image to Video

by xAIVideo

xAI Grok Imagine image-to-video: animate one or more reference images into a short cinematic clip, guided by an optional prompt, with selectable motion mode, aspect ratio, duration (6-30s), and 480p/720p resolution.

Pricing

Standard Usage

30 Credits/ s

Input

0 / 5000
6s
6s1-second steps30s

Choose 6-30 seconds in 1-second steps

More parameters

Generation settings

Estimated cost180 Credits30 Credits / s × 6s × 480p

Output

Ready for generation

Configure your parameters and click "Run" to see the output here.

--

Related video models

Choose by starting material, reference method, resolution, and shot-control requirements.

Endpoint control

Seedance 2.5 Image to Video

Use a first frame or first/last frames for longer controlled transitions.

Fast image animation

Kling 3.0 Turbo Image to Video

Animate still images with efficient camera and subject motion.

Fast cinematic video

Veo 3.1 Fast Image to Video

Create image-led video with optional generated audio.

Compare AI video APIs

About Grok Imagine Image to Video

Grok Imagine Image to Video turns one or more input images into a continuous video shot while preserving recognizable subject details.

The Playground and API use model ID grok-imagine/image-to-video. Keep image guidance and motion instructions in the same request.

Provider
xAI
Task
Image to video
Input
1–7 input images
Starting price
30 Credits / second

Model specifications

These specifications reflect the current HiAPI Grok Imagine Image to Video request contract. Endpoint frames and multimodal references are separate input modes and should not be mixed.

Image input mode
1–7 input images
Duration
6–30s
Resolution
480p720p
Aspect ratio
2:33:21:116:99:16
Other references
No additional reference media
Output and audio
MP4Video output; audio follows the route contract
Model ID
grok-imagine/image-to-video
API protocol
POST /v1/tasksAsync

Starting price is 30 Credits / second.

How to use Grok Imagine Image to Video

Start with a clear input image and a short clip, then increase duration after subject and motion are stable.

First
Last
1 + optional 1
01

Prepare a first frame and optional endpoint

Grok Imagine Image to Video API quickstart

This is a minimal asynchronous first/last-frame request. Use the API docs for callbacks, task retrieval, reference limits, and error handling.

curl -X POST "https://api.hiapi.ai/v1/tasks" \
  -H "Authorization: Bearer YOUR_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
  "model": "grok-imagine/image-to-video",
  "input": {
    "prompt": "Slow cinematic camera movement, preserve the subject and composition, coherent natural motion.",
    "image_urls": [
      "https://example.com/source.jpg"
    ],
    "duration": 6,
    "resolution": "480p",
    "aspect_ratio": "2:3"
  }
}'
The create request returns a taskId; retrieve the result asynchronously.Open full API docs
Need to compare models and billing tiers?View live pricing for all models

Frequently asked questions

Does Grok Imagine Image to Video require an input image?

Yes. grok-imagine/image-to-video is an image-to-video route. The image establishes the subject and opening composition; the prompt directs motion, camera, and environmental change.

Which durations and resolutions does Grok Imagine Image to Video support?

The current HiAPI contract supports 6–30s at 480p or 720p. Check the page controls and API docs for the current options.

How is Grok Imagine Image to Video billed?

Billing follows output duration and the selected tier. The page follows the global display unit, while the successful task record contains the final charge.

How can I improve subject consistency?

Use a clear, unobstructed source with a complete composition. Describe the main action and camera first, then name the appearance, material, and background relationships that must remain stable. Validate a short clip first.

The first frame defines subject, composition, and shape. Add a matching last frame only when the ending state must be fixed, leaving room for the intended motion.

Transition
Camera
Audio
02

Direct the transition, camera, and sound

Write the middle process in time order, state whether the camera is locked, preserve stable details, and place sound cues next to their matching events.

Playground · 6s
POST /v1/tasks
03

Validate a short run, then extend

Start at 6 seconds to inspect endpoint continuity and subject stability, then increase duration or create the production task with grok-imagine/image-to-video.