How-To Guide

Image to Video API: Inputs, Outputs, Billing and Failures

An image to video API takes a still and a prompt and returns a task, a file and a per-second bill. What goes in, what comes back, and what fails.

9 min read

What is an image to video API?

An image to video API turns a still image into a short video file. You send an image, a motion prompt and a length, then poll a task for a file and a per-second bill. This page covers the input contract, the output shape, how the billing works and what a failed call returns.

  • Input: a hosted image URL or a base64 image string, a prompt and a length.
  • Output: a task you poll, then a video URL and the credits it used.
  • Billing: usually per second of output, and some models add a charge for the input image.
  • Failure: a failed request or a failed task, with the vendor's refund or retry rule.

What an image to video API is

An image to video API turns a still into a short clip through a programmatic call. You do not get a file back from the first request. You send the image, a prompt and a length, receive a task, then poll that task until it returns a video URL or a failure. The file is the output; posting it is a separate step.

The work splits into four parts a caller has to plan: the input contract, the output shape, the price per second, and the failure rule. The pages read here disagree on each, so this page states each provider's own wording rather than one blended rule.

Superdirector

Have your AI do this for your brand.

Add to Claude or ChatGPT

7 days free, then $29 a month.

or try it in our chat

What goes in: the image and the prompt

Runway's image to video endpoint requires a prompt image and rejects a request without one (Runway API guide, read 2026-11-26). The image can be an external URL or a base64 image string, so a local file does not need a separate upload round trip (Runway API guide, read 2026-11-26).

Luma is flexible about the image. Its current create reference says to provide exactly one of a publicly accessible image URL, inline base64 data, a generation id, or a file id from its file store, so a local file can be uploaded once and reused (Luma create reference, read 2026-11-26). It also takes a start frame and an end frame, or guide frames pinned to output-frame positions, so a two-frame motion is two references rather than one.

The prompt describes motion, not the still. On Runway the prompt text, the ratio and the duration travel with the image in the same request, and the ratio names resolution as a width by height pair. A prompt that describes the object rather than its movement wastes a paid call.

What comes back: a job, then a file

The first response is a task, not a file. Runway prints a task ID you use to fetch status (Runway API guide, read 2026-11-26). Luma returns an opaque generation id to poll, and the generation's state is queued, processing, completed or failed (Luma create reference, Luma get reference, read 2026-11-26).

On completion Luma's generation carries an output array whose entries hold a media type and a presigned download URL that expires in an hour (Luma get reference, read 2026-11-26). A usage object reports the credits actually charged, which stays null until billing settles. Luma's reference documents polling the generation with backoff, and prints no callback field.

Budget for the poll and the download. The file is a URL that the provider serves, and the caller writes the retry, the storage and the handoff to a post. None of that arrives with the API.

Per-second billing, and the image charge

Most video models bill per second of output, but the unit on each page differs, so compare in the unit the page prints. Runway gives one credit a dollar value, which lets a caller price a second directly. Luma prices a call in credit blocks by resolution and length. Replicate and fal print a dollar price per output second.

ProviderWhat the page statesUnitSource (read 2026-11-26)
Runway Dev1 credit = $0.01; video billed per second at the chosen resolutionPer seconddev.runway.com/pricing
Runway Gen-4.512 credits per secondCredits per secondRunway API pricing
Runway Gen-4 Turbo5 credits per secondCredits per secondRunway API pricing
Runway Seedance 2.51080p at $0.68 and 68 credits per secondPer seconddev.runway.com/pricing
Luma Ray 3.2 image to video5s: 20, 50, 100 or 400 credits; 10s: 60, 150, 300 or 1,200Credits per calllumalabs.ai/api/pricing
Replicate Wan 2.1 image to video$0.09 per second at 480p; $0.25 at 720pPer second of outputreplicate.com/pricing
fal Kling 2.5 Turbo Pro image to video$0.07 per output secondPer secondfal.ai/pricing

The image charge is the part callers miss. Runway prices a Gemini Omni Flash image-to-video request at ten credits per second plus one credit for the first-frame image, and adds one credit per image reference on Grok Imagine 1.5 (Runway API pricing, read 2026-11-26). On Seedance 2.5 reference images and audio are free, but each generation has an 80-credit minimum.

Minimums turn a short clip into a floor. Runway rounds some charges up to the next credit and sets a 29-credit minimum on one model, and lists a 56-credit minimum for Aleph 2.0 (Runway API pricing, read 2026-11-26). A three-second idea can cost a five-second minimum, so divide the price by the length the model actually charges.

Limits: length, resolution, and minimums

  • Duration: Google says Gemini Omni 1.2 Flash makes clips of 3 to 15 seconds; the other pages read here price a fixed 5 or 10 second call or a per-model length (Google video docs, read 2026-11-26).
  • Resolution: Luma's Ray 3.2 video output runs 360p, 540p, 720p or 1080p, and Runway prices at the resolution you choose (Luma pricing, read 2026-11-26).
  • Image: Runway requires the prompt image, and on Grok Imagine and Hailuo 3 the start frame is charged as a reference.
  • Throughput: on its pay-per-video Build plan Luma sets no minimum commitment, applies rate limits and offers no latency SLA; its Scale plan sells dedicated capacity with guaranteed throughput and latency, one unit being one request per minute at Base or 0.4 RPM at Max, with a four-unit minimum (Luma pricing, read 2026-11-26).
  • Extension: Luma extends a video by passing a prior generation id as the start or end frame (Luma create reference, read 2026-11-26).

Read the limits against the spot, not the model's headline. A 15-second ceiling and a 5-second price are both true of the pages read here, and a post that needs 8 seconds sits between the priced lengths.

What a failed call returns

A failed call is two different things, and vendors answer them differently. A failed request is rejected before work starts. A failed task starts, then ends without a usable file.

On the request side, in its token-billed Gemini pricing, Google says a request that fails with a 400 or 500 error is not charged for the tokens it used (Google pricing, read 2026-11-26). On the task side, Runway says an error on its side that fails a generation returns the credits automatically, and that a failed step in a Workflow is refunded with every later step (Runway Dev pricing, read 2026-11-26).

The response tells the caller what happened. Luma's generation object carries a state, a machine-readable failure code and a human-readable failure reason, and a usage field that holds the credits charged once billing settles (Luma get reference, read 2026-11-26). The reference documents polling the generation with backoff, and prints no callback-retry rule. Runway's sample code reports that the video failed to generate when a task raises an error, and reads the task details from that error (Runway API guide, read 2026-11-26).

The pipeline is yours to write

An image to video API returns a file; it does not post it. The caller owns the queue, the retry, the storage and the decision to publish. That is the honest shape of the job: the vendor animates your still, and you build the pipeline that turns files into posts.

Price the pipeline, not the clip. A generation is a draft, and a publishable one may take two or three tries, so budget for the takes you discard. On a per-second model the discarded seconds are billed the same as the kept ones.

Superdirector's honest position

Superdirector does not offer a generative image to video model: you cannot send it a still and a motion prompt and get an animated clip back. It does expose a keyed REST render endpoint. Superdirector Render runs Blender, FFmpeg, web capture and your own Python on cloud machines, and its docs show a script calling the render service with an API key and receiving results as download links (render docs, read 2026-11-26). A caller who scripts an encode can turn a supplied still or a sequence of frames into a video file that way; what is missing is the model that invents motion. On both plans you can also make a finished AI video from a saved script (pricing, read 2026-11-26).

Publishing is a separate, narrow surface. Growth, at $199 a month, runs two accounts for you and publishes carousels and videos to Instagram and link-free text posts to X once posting is turned on (how it works, pricing, read 2026-11-26). Starter is $29 a month and does not publish. Posting is a product behaviour here.

For the render side, see the Render Engine and its docs. For the request and response shape of a general video API, see Video API. For a still turned into a social clip by a tool, see Image to Video AI.

Frequently asked questions

What is an image to video API?

It is a programmatic call that animates a still image into a short video file. You send the image, a prompt and a length; the service returns a task, then a video URL or a failure. The file is the output, and posting it is a separate step the caller writes.

How is an image to video API billed?

Most video models bill per second of output. Runway gives one credit a dollar value of one cent and bills by the second. Luma prices a five or ten second call in whole credit blocks by resolution. Some models add a charge for the input image: Runway charges one credit for the first frame on Gemini Omni Flash image-to-video and one credit per image reference on Grok Imagine 1.5.

What does a failed call return?

A failed request is rejected before work starts; a failed task starts and ends without a usable file. Google says a request that fails with a 400 or 500 error is not charged. Runway says its own error that fails a generation returns the credits. Luma's generation object carries a state, a machine-readable failure code and a human-readable failure reason, and its current reference documents polling rather than a callback.

What image can I send?

Runway requires the prompt image and accepts an external URL or a base64 image string. Luma's current API takes a public image URL, inline base64 data, a file id from its file store, or a prior generation id, one per reference. For motion between two frames it takes a start frame and an end frame as separate references.

How long and how large can the video be?

Google says Gemini Omni 1.2 Flash makes clips of 3 to 15 seconds at up to 4K. Luma's Ray 3.2 video output runs 360p, 540p, 720p or 1080p. Runway prices at the resolution you choose and sets credit minimums on some models, so a very short clip can still cost a minimum charge.

Does Superdirector offer an image to video API?

No, not a generative one: Superdirector will not turn a still and a motion prompt into an animated clip. It does expose a keyed REST render endpoint that runs Blender, FFmpeg and Python jobs and returns download links, so a script can encode a supplied image into a video file. On both plans you can make a finished AI video from a saved script. Growth publishes carousels and videos to Instagram and link-free text posts to X; Starter does not publish.
Superdirector

Have your AI do this for your brand.

Add to Claude or ChatGPT

7 days free, then $29 a month.

or try it in our chat

Related practical guides

Write one prompt, run one test call

Pick one product still, write one motion prompt, run one test call, and keep the invoice beside the file before you build the pipeline around it.