Skip to content
Concepts

One API for All AI Models: Image and Video, One Key

One API for all AI models of image and video: one request shape, one balance, one bill, any model by one field. What it saves, and the trade-offs.

Updated 5 min read

One API for all AI models means one key, one request shape and one balance in front of models from many makers. On Frameport that covers image and video generation: 25 models, from Seedance, Veo, Nano Banana and GPT Image to our own engines, on one key, with the price of every job known before it runs. Text and chat models are not part of it.

This page explains what that saves compared with a key per maker, how one request shape works across models, how switching models comes down to one field, and where a single gateway costs you something.

The cost of many keys and many bills

Each model you call directly brings its own account, its own key to store and rotate, its own request format, its own way of saying a job is done, its own error words and its own bill. With two models that is a nuisance. With a catalog it becomes the work: adapters per maker, a balance to watch in each place, and failures that read differently everywhere.

An aggregator, sometimes called a unified API, puts one layer in front of all of them. You write the client once, keep one key on your server and top up one balance.

One request shape for every model

On Frameport every image model takes the same body at POST /v1/images/generations, every video model at POST /v1/videos/generations, and the clip editors at POST /v1/videos/edits. Whatever the model, the rest is the same:

WhatFor every model
AuthenticationAuthorization: Bearer fp_live_…, one key per app or environment
Submit202 Accepted with the generation's id and the price held, reserved_usd
ResultGET the generation until succeeded or failed, or take a webhook
PriceQuote first; cost_usd is charged on success, a failure costs nothing
ErrorsOne JSON shape with a stable code and a request_id
Limits60 requests that start work a minute and 20 jobs at once, per workspace

The same calls run from the Studio in a browser and from AI agents through the MCP server, on the same balance. The quickstart walks through a first request, and the models reference shows how GET /v1/models describes each model's prices and options.

Switching models with one field

Because the shape is shared, trying another model is a change of model. Quotes are free and hold nothing, so you can price the same clip on several models before you pick one:

Price one clip on three models
import os

import requests

API = "https://frameport.ai/v1"
HEADERS = {"Authorization": f"Bearer {os.environ['FRAMEPORT_API_KEY']}"}

for model in ["seedance-2-5", "veo-3-1", "fp-motion-1"]:
    quote = requests.post(f"{API}/generations/quote", headers=HEADERS, json={
        "model": model,
        "duration": 8,
        "aspect_ratio": "16:9",
    }).json()
    if "error" in quote:
        print(model, quote["error"]["message"])
    else:
        print(f"{model:<14} {quote['breakdown']:<36} {quote['price_usd']}")

Without a resolution, each model renders at its own default, with sound on:

ModelMakerDefault resolution8-second clip
Seedance 2.5ByteDance720p$2.16
Veo 3.1Google1080p$3.72
Frameport Motion 1Frameport768p$0.48

Then you submit the same body to /v1/videos/generations. What does not carry over is each model's grid. Veo 3.1 makes clips of 4, 6 or 8 seconds, while Seedance 2.5 makes 4 to 30 seconds. A value a model does not take is refused with 400 invalid_request before anything is held, and the message lists what it does take. Images work the same way:

Image modelMakerWhat it takesFrom
Nano Banana ProGoogleText to image and Image to image, up to 6 reference pictures$0.16 / image
GPT Image 2.5 SunburstOpenAIText to image$0.085 / image
Frameport Image 1FrameportText to image and Image to image, up to 10 reference pictures$0.025 / image

Build requests from options in GET /v1/models and a switch never needs new code. The Seedance 2.5 API guide shows one model's options in full, and the Python guide the loop that works for all of them.

Which video model to call for which job is in the best AI video generation APIs of 2026.

One balance and one bill

The balance belongs to a workspace and is kept in US dollars, topped up from $10, with no subscription. Every key, the Studio and the MCP server spend from it at the prices on the pricing page: images per image, video per second at the rate of the resolution you pick, clip edits per second of the clip you send.

  • The price is held when a job starts and charged only if it succeeds. In a batch of images, only the images delivered are charged (what a failed job costs).
  • max_cost_usd on a request caps what it may cost.
  • Usage shows per key and per model in the dashboard, so one bill still tells you which app spent what.
  • Members join as owner, admin, developer or billing, and the billing role sees the money without creating keys.

Trade-offs of a single gateway

One layer in front of many models is not free of costs. Weigh these before you move:

  1. Shared fields, not every field. The request shape covers what models have in common: prompt, length, resolution, ratio, sound, frames and reference pictures. A setting that only one maker offers may not be there. Each model page lists what that model takes.
  2. One more party in the path. Your request reaches the model that renders it through the gateway. The privacy policy says what is kept and who processes it.
  3. Shared limits. The per-minute and at-once limits count every model of the workspace together.
  4. Its uptime is part of yours. GET /v1/status answers without a key for your monitor. When one model is down, it answers 503 model_unavailable and nothing is charged, and changing model is your fallback.
  5. Prices set per model. Each model has a price in dollars, listed before the run. Read prices from GET /v1/models rather than hard-coding them, since they can change.

The other way is a gateway you run yourself: you keep each maker's account, key and bill, and you write and maintain the shared layer. That fits a team with one or two models and a reason to stay close to each maker; a catalog that changes every month usually favors the single key.

Moving from another platform? The fal.ai alternative page shows what changes in your code. One key reaches many makers, and each sets its own terms: AI video commercial use lists where to read them. The same balance pays for the Studio too: see one balance for the Studio and the API.

FAQ

What is an AI API aggregator?

A single API in front of models from several makers: one key, one request format and one bill. Frameport is one for image and video models, with our own engines in the same catalog.

Is there one API for all AI models?

For image and video generation, yes: 25 models answer on one Frameport key. Text and chat models are not part of this catalog.

Do I need separate API keys for Seedance, Veo and Nano Banana?

No. One key calls every model in the catalog, and every job is paid from the same balance.

Can I switch models without changing my code?

Yes, as long as the options stay within what the new model lists in GET /v1/models. A value it does not take is refused with 400 invalid_request before anything is held.

Is there a free AI API aggregator?

A Frameport account is free, and there is no subscription: you top up a balance from $10 and pay per image or per second. Quotes, the model list and the docs cost nothing.

Can AI agents use the same API?

Yes. The MCP server gives Claude, Cursor and other agents the same models, prices and limits with your key; the MCP page shows how to connect one.

Concepts5 min read

Why Was My AI Video Prompt Refused?

AI video prompt refused? It was the model's policy, your workspace filter or the usage rules. How to tell which, reword within them, or switch model.

Start building.

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