Pixazo APIVideo ToolsPNG to MP4 API

PNG to MP4 API - Convert PNG to MP4 API: Pricing, Documentation

by Pixazo

The PNG to MP4 API wraps a still PNG in a standards-compliant MP4 container. It is deterministic, not generative: the graphic is held on screen, unchanged, for as long as you ask, and the result is a silent H.264 video. Reach for it when something downstream refuses a still image — a feed that only accepts video uploads, an editing timeline that needs a slate, a signage player driven by a video playlist. Send an image_url and a duration, poll the job, download the MP4. Prefer a no-code option? The same conversion is available free in your browser as the PNG to MP4 Converter.

Get API Key
PNG to MP4 API

Models Version

Welcome Bonus

Get $5 Free Credit on First Payment

No strings attached — add funds and get $5 bonus instantly

Claim Your $5 →

PNG to MP4 API Documentation

Authentication

Every request is authenticated with your Pixazo API key in the Ocp-Apim-Subscription-Key header — the same key across every Pixazo endpoint.

HeaderRequiredValue
Ocp-Apim-Subscription-KeyYesYour Pixazo API key

PNG to MP4 generate request

PNG is the format of choice for logos, screenshots, charts and UI exports, and none of those can be handed to a system that only takes video. The PNG to MP4 API turns one into the other with a single call: your PNG is held for the duration you choose and encoded as a silent H.264/yuv420p MP4 with even dimensions, downscaled to fit within 1920x1920 if it is larger and never upscaled if it is smaller. Because H.264 4:2:0 has no alpha channel, a transparent PNG is flattened in the process — composite it over your intended background first if that matters. Nothing moves and no model runs; it is a container change, priced flat at $0.002 per clip.

Endpoint: POST https://gateway.pixazo.ai/media-tools/v1/image-to-video

Request Code

curl -X POST 'https://gateway.pixazo.ai/media-tools/v1/image-to-video' \
  -H 'Ocp-Apim-Subscription-Key: YOUR_API_KEY' \
  -H 'Content-Type: application/json' \
  -d '{"image_url":"https://example.com/input.png","duration_seconds":5}'

Output

{
  "request_id": "req_9f3c1a7b2e",
  "status": "QUEUED",
  "polling_url": "https://gateway.pixazo.ai/v2/requests/status/req_9f3c1a7b2e"
}

Webhook (Optional)

Instead of polling, include a webhook_url in the request body and Pixazo will POST the completed job payload to that URL when the conversion finishes. The webhook body is identical to the completed-status response shown under Retrieving Results.

Request Parameters

ParameterRequiredTypeDefaultAllowedDescription
image_urlRequiredstringHTTP(S) URLPublicly reachable URL of the source still. jpg, png, webp, avif, heic, tiff, bmp, gif and SVG are accepted; the source must be under 50 megapixels.
duration_secondsOptionalnumber51 – 60How long the still is held on screen, in seconds. Does not affect the price.
webhook_urlOptionalstringHTTP(S) URLReceive the completed job via webhook instead of polling.

Example Request

curl -X POST 'https://gateway.pixazo.ai/media-tools/v1/image-to-video' \
  -H 'Ocp-Apim-Subscription-Key: YOUR_API_KEY' \
  -H 'Content-Type: application/json' \
  -d '{"image_url":"https://example.com/input.png","duration_seconds":5}'

Response

Every request returns a request_id immediately with a QUEUED status. Use the polling_url (or a webhook) to retrieve the finished file.

{
  "request_id": "req_9f3c1a7b2e",
  "status": "QUEUED",
  "polling_url": "https://gateway.pixazo.ai/v2/requests/status/req_9f3c1a7b2e"
}

Request Headers

HeaderRequiredValue
Ocp-Apim-Subscription-KeyYesYour Pixazo API key
Content-TypeYesapplication/json

Response Handling

The submit call returns one of the HTTP status codes below. A 202 means the job was accepted — everything else is an error you should handle.

CodeMeaning
202Accepted — the job was queued; poll the status URL.
400Bad request — a parameter is missing or invalid.
401Unauthorized — missing or wrong API key.
Payment required — insufficient balance.
Too many requests — you are being rate-limited.
500Server error — transient; retry with backoff.

Error Responses

Errors return a JSON body with a machine-readable code and a human-readable message.

{
  "request_id": "req_9f3c1a7b2e",
  "status": "FAILED",
  "error": {
    "code": "INSUFFICIENT_BALANCE",
    "message": "Your account balance is too low to process this request."
  }
}

Retrieving Results

Poll the status endpoint until the job reaches COMPLETED (or FAILED).

curl 'https://gateway.pixazo.ai/v2/requests/status/req_9f3c1a7b2e' \
  -H 'Ocp-Apim-Subscription-Key: YOUR_API_KEY'

Response (Completed)

{
  "request_id": "req_9f3c1a7b2e",
  "status": "COMPLETED",
  "model_id": "image-to-video",
  "output": {
    "media_url": "https://api-assets.pixazo.ai/out/result.mp4",
    "media_type": "MP4"
  },
  "error": null,
  "created_at": "2026-01-01T00:00:00Z",
  "completed_at": "2026-01-01T00:00:04Z"
}

Response Fields

FieldTypeDescription
request_idstringUnique id for this job.
statusstringOne of the job status values below.
output.media_urlstringURL of the converted file (when completed).
output.media_typestringOutput format (MP4).
errorobject | nullPopulated only when status is FAILED.

Status Values

StatusMeaning
QUEUEDJob accepted, waiting for a worker.
Conversion in progress.
COMPLETEDDone — the output URL is in the response.
FAILEDThe job could not be completed; see error.

PNG to MP4 API Pricing

Your request will cost $0.002 per clip.
Flat $0.002 per clip whatever the duration — a 60-second hold costs the same as a 1-second one. Output is downscaled to fit a 1920x1920 box and never upscaled.

⚡ Performance

Live usage measured on Pixazo's gateway, split by model version. Generation time is how long a generation takes end-to-end (lower is better). Success rate is the percent of generations that complete (higher is better).

Show data for the last
Generations
113,900last 30d
~3,797 per day
Success rate
98.2%
of completed generations
Generation time
1.4savg
p95 2.2s
Requests
Aug 18max 5,900Sep 16
PNG to MP4Avg 3,797/day
Generation Time
Aug 18max 1.6sSep 16
PNG to MP4Avg 1.4s
Error Rate
Aug 18max 5.0%Sep 16
PNG to MP4Avg 1.7%

〰 Uptime

Percent of generations that succeeded over the selected period, per model version.

Avg. Success Rate (30d)
98.24%
across all generations of this model family
Uptime
Aug 18max 100%Sep 16
SuccessfulAvg 98.26%