🎞️

Image-to-Video API

Turn one still photo into a short animated clip.

Upload an image, describe the motion, get back a 5-second 720p MP4. 11,879 credits per clip, available on paid plans (Starter and up).

What it does

Image in, motion prompt in, MP4 out. Asynchronous: submit a job, then poll for the result.

Output

720p MP4, 5 seconds long (duration is fixed at 5 s).

Input image

PNG, JPG or WebP, max 20 MB. Shortest side at least 256 px; aspect ratio between 1:3 and 3:1.

Motion prompt

Describe what should move and how (camera and subject), up to 1,500 characters.

Render time

Usually a few minutes per clip (no guarantee). Paid plans only; failed clips are refunded automatically.

How to get a good clip

Start from a sharp, well-lit image with one clear subject. In the prompt, say what should move and how the camera should behave, for example “the perfume bottle slowly turns on the marble pedestal, smooth camera push-in” or “morning mist drifts through the valley, gentle forward camera glide”. Short, concrete motion descriptions work best.

API

Authenticate with Authorization: Bearer YOUR_API_KEY (create a key in the dashboard). Submit the job, then poll until status is completed or failed.

POST /v1/video/image-to-video

Alias: POST /v1/video/i2v. Accepts multipart/form-data, or a JSON body with image_url or image_base64. The response contains generation_id, status: "processing" and poll_url.

FieldTypeRequiredDescription
imagefileone ofInput image (PNG/JPG/WebP, max 20 MB, shortest side ≥ 256 px, aspect 1:3 to 3:1).
image_urlstringone ofPublic http/https URL of the input image (multipart or JSON).
image_base64stringone ofBase64-encoded image (JSON body only).
promptstringyesDescribe the motion, max 1,500 characters.
durationintegernoFixed at 5 (seconds). Other values return 400.
curl -X POST https://api.pixelapi.dev/v1/video/image-to-video \ -H "Authorization: Bearer YOUR_API_KEY" \ -F "image=@product.jpg" \ -F "prompt=slow camera push-in, soft light moving across the product" \ -F "duration=5" # then poll until status is "completed" (or "failed") curl https://api.pixelapi.dev/v1/video/GENERATION_ID -H "Authorization: Bearer YOUR_API_KEY"

When status is completed, output_url is the MP4. Requires a paid plan (Starter and up); free-trial accounts receive an error and are not charged.

Pricing

Billed in credits. 1 credit = $0.001 on the Starter plan; the cash value of a credit depends on your plan. Failed or safety-withheld clips are refunded automatically.

Per clip
11,879 credits
One 5-second 720p clip. ≈ $11.88 per clip on Starter. Paid plans only.

FAQ

How much does image-to-video cost?

11,879 credits per 5-second clip ($11.88 at 1 credit = $0.001 on the Starter plan). Failed or safety-withheld clips are refunded automatically.

Who can use it?

Paid plans only (Starter and up). The free trial credits cannot be used for image-to-video.

How long does a clip take?

Usually a few minutes (no guarantee). The API is asynchronous: submit, then poll GET /v1/video/{generation_id} until status is completed or failed.

What does the output look like?

A 720p MP4, 5 seconds long. Duration is fixed at 5 seconds.

Which images can I upload?

PNG, JPG or WebP, up to 20 MB, with the shortest side at least 256 px and an aspect ratio between 1:3 and 3:1. Send a file as image, or a public http/https URL as image_url (JSON bodies may use image_url or image_base64).

Is there a content policy?

Yes. Nudity and sexual content are blocked: the input image and the prompt are checked before rendering. Blocked requests are not charged.

Can I generate video from text only?

No. This endpoint needs an input image; the prompt describes how it should move.

Ready to animate your first image?

Image-to-video is available on paid plans, starting with Starter. See pricing.