HiAPI
  • Models
  • Pricing
Search

Search HiAPI models, tools, and resources.

  • Models
  • Pricing
HiAPI

One API, All AI Models

Generate images, video, and audio with leading models through one production-ready API.

Get a free API key

AI Image API

  • All image models
  • GPT Image 2.5 Flare
  • GPT Image 2.5 Sunburst
  • GPT Image 2
  • Nano Banana 2
  • Seedream 5.0 Pro
  • Qwen Image 2.0 Pro
  • FLUX 1.1 Pro

AI Video API

  • All video models
  • Seedance 2.5
  • FLUX.3 Video
  • Seedance 2.0
  • Veo 3.1
  • Kling 3.0 Omni

AI Audio API

  • All audio models
  • MiniMax Music 2.6
  • MiniMax Music 1.5
  • ElevenLabs v3
  • Text to music
  • Text to speech

Product

  • Model marketplace
  • Playground
  • Pricing
  • Image API Cost Calculator
  • Free GPT Image 2 Generator
  • Free Background Remover
  • Free Nano Banana Image Generator
  • Outfit Preview
  • Product Photo Lab

Developers

  • Documentation
  • API Reference
  • Agent Skills
  • LLM integration index
  • Blog

Company

  • About
  • Contact support
  • Terms of Service
  • Privacy Policy

© 2026 hiapi. All rights reserved.

Open source on GitHubPython SDK on PyPI
  • The source image
  • Take 1: a short teaser pan
  • Take 2: a longer orbit shot
  • The actual request schema
  • Submitting and polling the task
  • Pricing and duration math
  • FAQ
Back to blog
GuideAug 8, 20264 min read

Grok Imagine 1.5 API: Turn Images Into Short-Form Video

hiapiGrok Imagine 1.5Image to VideoAPI Tutorial

Latest models

  • GPT Image 2.5 FlareFrom $0.050/image
  • GPT Image 2.5 SunburstFrom $0.050/image
  • GPT Image 2From $0.030/image
  • Nano Banana 2From $0.051/image
View all models

Explore models

TextChat and reasoningImageGenerate and editVideoText and image to videoAudioSpeech and music
Contents
  • The source image
  • Take 1: a short teaser pan
  • Take 2: a longer orbit shot
  • The actual request schema
  • Submitting and polling the task
  • Pricing and duration math
  • FAQ

A single product photo, headshot, or landscape still can become a usable short-form video clip without touching a separate video-generation account. Grok Imagine 1.5's image-to-video endpoint takes one image URL, an optional prompt describing the motion, and a duration — then hands back a rendered .mp4 through hiapi's async task API.

This walkthrough uses one source image and two different prompts to show how much the wording changes the result, then breaks down the actual request schema, pricing, and a copy-pasteable code sample.

The source image

Product photo used as the source frame for both video generations

Both clips below start from this same still. Nothing about the base image changes between requests — only the prompt field does.

Take 1: a short teaser pan

Prompt: "Slow push-in toward the subject, soft ambient light, cinematic teaser pacing." Duration: 4.

Take 2: a longer orbit shot

Prompt: "Camera slowly orbits around the subject, revealing the scene from a new angle." Duration: 8.

Same still, same model, two completely different camera moves — the prompt is doing almost all of the work here, since the request has no dedicated motion-strength or camera-path parameter.

The actual request schema

Full model docs and live pricing live on the Grok Imagine 1.5 Image to Video model page. The request body is intentionally small:

{
  "model": "grok-imagine-1.5/image-to-video",
  "input": {
    "image_urls": ["https://your-public-host.com/source.jpg"],
    "prompt": "Slow push-in toward the subject, soft ambient light, cinematic teaser pacing.",
    "duration": 4
  }
}

Three things worth knowing before you call it:

  • image_urls must be public HTTP(S) URLs. The model fetches the image itself — you can't upload raw bytes in the request body. If your source image only exists locally, upload it to any public bucket first.
  • duration is an integer from 1 to 15 seconds. There's no aspect_ratio, resolution, or motion-strength field — output framing follows the source image, and resolution is picked by pricing tier (480p vs 720p) rather than a request parameter.
  • prompt is optional but does most of the creative work, since there's nothing else to steer the camera with.

Submitting and polling the task

Like every video and image model on hiapi, this runs through the unified async task API rather than a synchronous endpoint — generation takes real time, so you submit a task, poll for completion, then download the result before its link expires.

# 1. Submit the task
curl -s -X POST https://api.hiapi.ai/v1/tasks \
  -H "Authorization: Bearer $HIAPI_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "model": "grok-imagine-1.5/image-to-video",
    "input": {
      "image_urls": ["https://your-public-host.com/source.jpg"],
      "prompt": "Camera slowly orbits around the subject, revealing the scene from a new angle.",
      "duration": 8
    }
  }'
# => {"id": "task_...", "status": "pending"}

# 2. Poll until it's done
curl -s https://api.hiapi.ai/v1/tasks/task_... \
  -H "Authorization: Bearer $HIAPI_API_KEY"
# => {"id": "task_...", "status": "success", "output": [{"url": "https://...mp4"}]}

Once status flips to success, download output[0].url immediately — it's a time-limited link, not a permanent one, so save the bytes to your own storage before it expires.

Pricing and duration math

Check current numbers against hiapi's pricing page before you budget a batch, but as of this writing, grok-imagine-1.5/image-to-video bills per second of output:

ResolutionPrice per second
480p$0.0114
720p$0.0214

A 4-second clip at 480p costs roughly $0.046; the same clip at 720p is about $0.086. Because pricing scales with duration rather than a flat per-generation fee, it's cheap to test several prompt variants on the same still before settling on a final cut — both clips in this article together cost well under $0.20.

FAQ

Can I control the camera motion directly instead of describing it in the prompt? No — there's no dedicated motion-strength, camera-path, or zoom parameter in this endpoint's schema. Camera behavior is driven entirely by how you word the prompt.

Does the output resolution match my source image? Framing follows the source image's aspect ratio, but resolution (480p vs 720p) is a pricing-tier choice, not something you set with a separate field — check the current schema on the model page linked above, since platform models occasionally add parameters.

What happens if I don't download the output fast enough? The output[0].url from a completed task is time-limited. If you miss the window, you'll need to resubmit the task and pay for the generation again — there's no way to re-fetch an expired link.

Can I animate more than one still in a single request? image_urls accepts a URL, but each task produces one clip from one source image. For batches, submit one task per still and poll them independently — the async model means you can have several in flight at once.


Ready to try it on your own image? Generate a short clip with your own prompt on the Grok Imagine 1.5 Image to Video model page, or start with the async task API docs if you're wiring this into an existing pipeline.

Latest models

Explore models

Generate it with HiAPI

Choose a model, enter your prompt, and see the result.

Start generatingView model pricing

HiAPI Blog

Related articles

View all articles
Using DeepSeek V4.1 Flash for E-commerce Product Images via the hiapi API

Using DeepSeek V4.1 Flash for E-commerce Product Images via the hiapi API

Minimax H3 Max Short-Form Video: Text-to-Video Tested via the API

Minimax H3 Max Short-Form Video: Text-to-Video Tested via the API

gpt-image-2.5-flare for E-Commerce Product Images: A Batch Workflow With the hiapi API

gpt-image-2.5-flare for E-Commerce Product Images: A Batch Workflow With the hiapi API

GPT Image 2.5 Sunburst Prompts: 7 Copy-Paste Recipes With Real Outputs

GPT Image 2.5 Sunburst Prompts: 7 Copy-Paste Recipes With Real Outputs

Best AI for E-commerce Product Images: A Comparison

Best AI for E-commerce Product Images: A Comparison

GPT Image 2.5 Flare Prompts: Copy-Paste Recipes With Real Outputs

GPT Image 2.5 Flare Prompts: Copy-Paste Recipes With Real Outputs

HiAPI

Generate it with HiAPI

Start generating
View all models
GPT Image 2.5 FlareFrom $0.050/image
GPT Image 2.5 SunburstFrom $0.050/image
GPT Image 2From $0.030/image
Nano Banana 2From $0.051/image
Text
Image
Video
Audio