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
  • 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

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 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
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

Explore models

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

Generate it with HiAPI

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

HiAPI Blog

Related articles

HiAPI

Generate it with HiAPI

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

View all models
  • GPT Image 2From $0.007/image
  • Nano Banana 2From $0.051/image
  • Seedream 5.0 ProFrom $0.050/image
  • Seedance 2.5From $0.121/s

Explore models

TextImageVideoAudio
Back to blog
GPT Image 2From $0.007/image
Nano Banana 2From $0.051/image
Seedream 5.0 ProFrom $0.050/image
Seedance 2.5From $0.121/s
View all models
TextChat and reasoning
ImageGenerate and edit
VideoText and image to video
AudioSpeech and music
Start generating
View model pricing
View all articles
Seedance 2.5 Text-to-Video: Build Short-Form Clips with the hiapi API

Seedance 2.5 Text-to-Video: Build Short-Form Clips with the hiapi API

Seedance 2.5 Reference-to-Video for Short-Form TikTok and Reels Clips

Seedance 2.5 Reference-to-Video for Short-Form TikTok and Reels Clips

Grok Imagine Image 2.0 Image-to-Image Prompts: 4 Recipes With Real Outputs

Grok Imagine Image 2.0 Image-to-Image Prompts: 4 Recipes With Real Outputs

Grok Imagine 2.0 Text-to-Image Prompt Recipes: Copy-Paste Prompts With Real Outputs

Grok Imagine 2.0 Text-to-Image Prompt Recipes: Copy-Paste Prompts With Real Outputs

Using flux-2-klein-9b/text-to-image for E-Commerce Product Images via the hiapi API

Using flux-2-klein-9b/text-to-image for E-Commerce Product Images via the hiapi API

Flux-2-Klein-9b Image-to-Image for E-Commerce Product Photos

Flux-2-Klein-9b Image-to-Image for E-Commerce Product Photos

Start generating