Skip to content
Alternatives

PiAPI Alternative: Image and Video Models on One Key

A PiAPI alternative for image and video: what to check before you switch, the models on one key, billing only on success, and a migration checklist.

Updated 5 min read

A PiAPI alternative should keep the pattern your code already follows, a job that runs in the background and a callback when it ends, and change only what you want changed: the bill, the catalog, or the guards around each request. Frameport works that way for 25 image and video models on one key. Every request can be priced before it runs, the price is held while it runs, and only a success is charged.

Below: PiAPI in a few words, what to check before a move, how jobs and webhooks work here, the models, a migration checklist, and when staying is the better call.

What PiAPI is

PiAPI calls itself an all-in-one platform for AI generation and a developer-first gateway to generative AI APIs: video, image, music and 3D models through a playground or an API, with asynchronous tasks and webhooks for their results. For its current catalog, prices and terms, see its site.

Why developers look for a PiAPI alternative

Teams usually start comparing for one of three reasons. They want each request priced in dollars before it runs, so a product can charge its own users with a known margin. They want one request shape for every image or video model, so adding a model is one line. Or they want a second provider ready for the day the first has an incident. None of these is a verdict on the provider they use today; they are what a product built on generation tends to need.

What to check before you switch

CheckOn Frameport
How a request is billedIn dollars, from a prepaid balance topped up from $10; no plan to renew
The price before the runPOST /v1/generations/quote: the exact price and enough_balance, free, nothing held
A job that failsNot charged: the price is held at submit, charged on success, released on failure
Limits60 requests that start work a minute and 20 running at once, per workspace
Your models and optionsOn each model page, and in GET /v1/models, which needs no key
ResultsPolling, or signed webhooks with retries
SupportA request_id on every error, and GET /v1/status for a monitor

The same checks apply to your current provider, whose docs, pricing page and terms answer them.

How jobs and webhooks work here

A submit answers 202 Accepted at once with the generation: its id, status queued, and reserved_usd, the amount held on your balance. From there, read GET /v1/generations/{id} every few seconds until status is succeeded or failed, or let a webhook tell you.

Webhooks are added under Webhooks in the dashboard, for generation.succeeded, generation.failed or both, and each endpoint hears about every generation of its workspace. A delivery is a POST whose data is the whole generation:

generation.succeeded
{
  "id": "whd_5f1c0a9e3b7d42c8a61e0f93",
  "type": "generation.succeeded",
  "created_at": "2026-11-28T10:04:12.000Z",
  "data": {
    "id": "gen_4kQ8vT2nLm9Xr7Wd1sYcPa",
    "object": "generation",
    "type": "video",
    "model": "veo-3-1",
    "status": "succeeded",
    "reserved_usd": 3.72,
    "cost_usd": 3.72,
    "outputs": [{ "id": "file_8Hc2RkQw5ZpT1mVb7nXe3L", "status": "succeeded", "url": "https://frameport.ai/v1/files/file_8Hc2RkQw5ZpT1mVb7nXe3L?expires=…&signature=…", "content_type": "video/mp4" }],
    "error": null
  }
}
  • Answer fast. Reply with a 2xx within 10 seconds and do the work afterwards. A delivery without one is sent again after 1, 5 and 15 minutes, with the same id in the Frameport-Delivery header, so a receiver can skip one it has handled.
  • Verify it. Frameport-Signature carries t=<unix seconds>,v1=<hex>, the HMAC-SHA256 of <t>.<raw body> with the endpoint's secret, shown once when you add it.
  • Keep it answering. An endpoint whose deliveries all fail for 24 hours, 10 in a row at least, is turned off; the events in between are not sent again, so read those generations with a GET.

Two habits complete it: an Idempotency-Key on each submit, so a retry returns the first job for 24 hours instead of a second charge, and max_cost_usd, which refuses a request priced above your cap before anything is held. The webhooks guide has receivers in Node.js and Python.

Our own engines can render without a content filter once a workspace owner or admin who is 18 or older turns it off; it is on by default, third-party models keep their makers' policies, and the acceptable use policy applies either way. A refused job costs nothing, like a failed one (what a failed generation costs).

The models you can call with one key

ModelmodelMade forPrice
Seedance 2.5seedance-2-5Clips with sound from a prompt, a first frame or references, 4 to 30 seconds10 s at 720p: $2.70
Veo 3.1veo-3-1Clips up to 4K, 4, 6 or 8 seconds8 s at 720p: $3.72
Nano Banana Pronano-banana-proImages with legible text, edits from up to 6 referencesOne image: $0.16
Frameport Replace 1fp-replace-1New faces, with consent, on the people of a clip5 s at 1080p: $1.25
Frameport Upscale 1fp-upscale-1A clip upscaled to 1080p and 2K10 s to 1080p: $0.30

The full catalog is on the models page, and every price on the pricing page. Why a single key and balance help is in one API key for every AI model.

Moving your code from PiAPI

A migration checklist, in the order that keeps production safe:

  1. Create a key under API keys and store it as FRAMEPORT_API_KEY; it starts with fp_live_ and is shown once.
  2. Map your model names to catalog ids from GET /v1/models, and check each one's lengths and resolutions there.
  3. Map the body. Video takes prompt, duration, resolution, aspect_ratio, audio, reference_images and end_image; images take prompt, n, aspect_ratio and reference_images. A field the API does not take is refused with 400 invalid_request, before anything is held.
  4. Swap the task id for the generation's id, and your status checks for queued, running, succeeded and failed.
  5. Point the callback at a webhook endpoint in the dashboard, and verify its signature.
  6. Add the guards: an Idempotency-Key from your own job id, and max_cost_usd from a quote.
  7. Copy the files you keep to your storage: output links are signed for about an hour, and files are not kept forever.

The whole round trip with curl:

Quote, submit, read
# 1. The price of the body: free, nothing held
curl https://frameport.ai/v1/generations/quote \
  -H "Authorization: Bearer $FRAMEPORT_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"model": "veo-3-1", "prompt": "Rain on a neon-lit alley at night, a cat crosses under a flickering sign, slow tracking shot", "duration": 8, "resolution": "720p", "aspect_ratio": "16:9"}'

# 2. The same body, capped at the quote and safe to retry
curl https://frameport.ai/v1/videos/generations \
  -H "Authorization: Bearer $FRAMEPORT_API_KEY" \
  -H "Content-Type: application/json" \
  -H "Idempotency-Key: alley-cat-1" \
  -d '{"model": "veo-3-1", "prompt": "Rain on a neon-lit alley at night, a cat crosses under a flickering sign, slow tracking shot", "duration": 8, "resolution": "720p", "aspect_ratio": "16:9", "max_cost_usd": 3.72}'

# 3. Read it with the id from step 2, or wait for the webhook
curl https://frameport.ai/v1/generations/gen_4kQ8vT2nLm9Xr7Wd1sYcPa \
  -H "Authorization: Bearer $FRAMEPORT_API_KEY"

When PiAPI is still the better fit

  • You need music or 3D generation. Frameport sells image and video models and clip editors only.
  • A model you use is not in our catalog, such as Kling or Luma. Check the models page first.
  • A move would cost more than it saves. If your requests, bill and limits suit you, keep them, and add a second provider only as a fallback.

Other comparisons in the same format: the WaveSpeed AI alternative and the fal.ai alternative. Looking for something free? The free AI video generation API guide says what costs nothing here.

FAQ

Is there a free PiAPI alternative?

Here, the account, the key, model lists and quotes cost nothing, and a failed or refused job is not charged. Images and clips are paid from a prepaid balance in dollars, with no subscription.

Can I move one model at a time?

Yes. Since every video model here takes the same body, you can move one model's traffic first, compare results and cost_usd, then move the next, with your old integration still in place.

Can I get Midjourney through the API here?

No. Midjourney is not in the catalog. For the image models that are, from Nano Banana to GPT Image, see the Midjourney API alternative page.

How do I verify a webhook here?

Recompute the HMAC-SHA256 of the timestamp, a dot and the raw body with your endpoint's secret, compare it in constant time with v1 in the Frameport-Signature header, and refuse old timestamps. The webhooks reference has the code.

PiAPI vs fal ai: how do they compare?

Both are multi-model platforms that reach well beyond image and video. Compare them, and this API, on the checklist above with your own requests; the fal.ai alternative page does it for fal.

Start building.

Your API key is free. Top up from $10 when you are ready.