Get started
Quickstart
Make your first generation with one Frameport key: submit, poll, download.
Frameport is one HTTP API for image and video models. You hold a USD balance, each request shows its price before it runs, and a job that fails costs nothing. Every request goes to https://frameport.ai/v1 with your key.
| At a glance | |
|---|---|
| Base URL | https://frameport.ai/v1 |
| Auth | Authorization: Bearer fp_live_…, see Authentication |
| Submit | POST /v1/images/generations, POST /v1/videos/generations, POST /v1/videos/edits: answers 202 with the price held, reserved_usd |
| Poll | GET the same path with the generation's id, until succeeded or failed; or webhooks |
| Models | GET /v1/models: every model with its prices and options |
| Files | outputs[].url, a signed link, or GET /v1/files/{id} with your key |
| Errors | One JSON shape with a stable code and a request_id, see Errors |
| Format | JSON in and out, amounts in US dollars |
| For agents | /llms.txt and every model in /models.json |
1. Create a key
- 1.Create an account. You get a workspace: its balance, keys and team are shared.
- 2.Add funds under Billing. A request is held against the balance, so it must cover the price.
- 3.Open API keys, create a key and copy it: it starts with
fp_live_and is shown once.
export FRAMEPORT_API_KEY="fp_live_..."2. Submit a request
POST the model id and a prompt. The answer comes at once with status 202: the generation, its id and reserved_usd, the price held on your balance.
curl https://frameport.ai/v1/images/generations \
-H "Authorization: Bearer $FRAMEPORT_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"model": "fp-image-1",
"prompt": "A lighthouse on a cliff at dawn, long exposure, soft fog",
"n": 1,
"aspect_ratio": "16:9"
}'{
"id": "gen_4kQ8vT2nLm9Xr7Wd1sYcPa",
"object": "generation",
"type": "image",
"model": "fp-image-1",
"status": "queued",
"input": {
"prompt": "A lighthouse on a cliff at dawn, long exposure, soft fog",
"n": 1,
"aspect_ratio": "16:9"
},
"reserved_usd": 0.025,
"cost_usd": null,
"outputs": [
{
"id": "file_8Hc2RkQw5ZpT1mVb7nXe3L",
"status": "queued"
}
],
"error": null,
"created_at": "2026-11-27T10:00:00.000Z",
"completed_at": null
}3. Poll until it settles
GET the generation every few seconds. status moves from queued to running, then to succeeded or failed. On success, cost_usd is what was charged and each output has a url.
curl https://frameport.ai/v1/images/generations/gen_4kQ8vT2nLm9Xr7Wd1sYcPa \
-H "Authorization: Bearer $FRAMEPORT_API_KEY"{
"id": "gen_4kQ8vT2nLm9Xr7Wd1sYcPa",
"object": "generation",
"type": "image",
"model": "fp-image-1",
"status": "succeeded",
"input": {
"prompt": "A lighthouse on a cliff at dawn, long exposure, soft fog",
"n": 1,
"aspect_ratio": "16:9"
},
"reserved_usd": 0.025,
"cost_usd": 0.025,
"outputs": [
{
"id": "file_8Hc2RkQw5ZpT1mVb7nXe3L",
"status": "succeeded",
"url": "https://frameport.ai/v1/files/file_8Hc2RkQw5ZpT1mVb7nXe3L?expires=1795779600&signature=Qm9yZW1fZXhhbXBsZV9zaWduYXR1cmU",
"url_expires_at": "2026-11-27T11:10:00.000Z",
"content_type": "image/png",
"cost_usd": 0.025
}
],
"error": null,
"created_at": "2026-11-27T10:00:00.000Z",
"completed_at": "2026-11-27T10:01:12.000Z"
}4. Download the file
outputs[].url is a signed link that works without a key for about an hour. Save the file; read the generation again for a fresh link later. See Files.
The whole script
The same three steps for a video on Seedance 2.5: 5 seconds at 720p hold $1.35.
# 1. Submit: the price is held on your balance (reserved_usd)
curl https://frameport.ai/v1/videos/generations \
-H "Authorization: Bearer $FRAMEPORT_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"model": "seedance-2-5",
"prompt": "A red vintage car winds along a coastal road at sunrise, drone follow shot",
"duration": 5,
"resolution": "720p",
"aspect_ratio": "16:9",
"audio": true
}'
# 2. Poll with the id it returns, until "succeeded" or "failed"
curl https://frameport.ai/v1/videos/generations/$GENERATION_ID \
-H "Authorization: Bearer $FRAMEPORT_API_KEY"
# 3. Download outputs[0].url once it has succeeded (a signed link, no key needed)
curl -L "$OUTPUT_URL" -o out.mp4Next
- Images and Videos: every field, per model.
- Clip edits: swap the people in a clip for your faces, or upscale it.
- Models: the catalog, prices and options, from the API.
- Errors: codes, statuses and what was charged.
- Webhooks: be told when a generation settles instead of polling.
- MCP server: let Claude, Cursor or another agent call the API for you.