Frameport Image 2 API
Frameport Image 2 renders photoreal images and holds a face, a product or a place with up to 4 reference pictures.
| Item | Price |
|---|---|
| One image, any aspect ratio | $0.025 |
- Charged once, and only when the image succeeds. A failed job costs $0.00: its hold is released in full.
- The exact price is known before the run: the Studio shows it before you click Generate, and the API returns it as
reserved_usdwhen it accepts the job. - A request makes 1 to 4 images, each charged at this price.
Charged once per image, only on success.
Request
POST https://frameport.ai/v1/images/generations
# 1. Submit: the price is held on your balance (reserved_usd)
curl https://frameport.ai/v1/images/generations \
-H "Authorization: Bearer $FRAMEPORT_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"model": "fp-image-2",
"prompt": "Portrait of a fisherman mending nets on a harbour wall at dawn, 85mm, soft overcast light",
"n": 1,
"aspect_ratio": "16:9"
}'
# 2. Poll with the id it returns, until "succeeded" or "failed"
curl https://frameport.ai/v1/images/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.png Set FRAMEPORT_API_KEY to your key. Full reference in the image docs.
Options
- Tasks
- Text to image
- Image to image
- Aspect ratios
- 1:1
- 3:4
- 4:3
- 9:16
- 16:9
- Images per request
- 1 to 4
- Reference pictures
- Up to 4
- Negative prompt
- Not supported
- Private mode
- Supported: nothing kept, not even the prompt
- Prompt
- Up to 2,400 characters
- Output
- Image files, signed links valid about an hour
- Billing unit
- Per image
- Model id
fp-image-2
Frameport Image 2 API parameters
| Field | Values | Notes |
|---|---|---|
model | "fp-image-2" | Required. |
prompt | text, up to 2,400 characters | Required: the subject, the setting, the light and the style. |
n | 1 to 4 | 1 when left out. Each image is charged. |
aspect_ratio | 1:1, 3:4, 4:3, 9:16, 16:9 | 1:1 when left out. The same price at every ratio. |
reference_images | up to 4 pictures | Pictures to keep: a face, a product, a place. An https URL or a base64 data URI each. |
private | true or false | false when left out. true keeps nothing, not even the prompt: each image comes back once, as b64_json, in the read that completes it. |
Frameport Image 2 request bodies, one per mode
Send each body to POST https://frameport.ai/v1/images/generations with Authorization: Bearer $FRAMEPORT_API_KEY, then poll GET /v1/images/generations/{id}. Pictures are https URLs or base64 data URIs. Each card shows the price that body holds.
{
"model": "fp-image-2",
"prompt": "Portrait of a fisherman mending nets on a harbour wall at dawn, 85mm, soft overcast light",
"n": 1,
"aspect_ratio": "16:9"
}{
"model": "fp-image-2",
"prompt": "The person from the first picture reading on a park bench in autumn, 85mm, soft light",
"n": 1,
"aspect_ratio": "16:9",
"reference_images": [
"https://example.com/mug.jpg",
"https://example.com/desk.jpg"
]
}What Frameport Image 2 is good at
- Photoreal scenes written like a photo brief: subject, wardrobe, setting, light and lens.
- Holding a subject steady across a series with reference pictures.
- Up to 4 takes in one request, the same price at every format.
When another model fits better
- Frameport Image 1 — Edits from reference pictures (up to 10), from $0.025 / image.
How to prompt Frameport Image 2
- 01Write it like a photo brief in one paragraph: subject, wardrobe, setting, light, lens and film stock.
- 02To hold a face or a product, send up to 4 reference pictures.
- 03There is no negative prompt on this engine: describe what you want in frame.
Sample prompt
“Portrait of a fisherman mending nets on a harbour wall at dawn, 85mm, soft overcast light”
Frameport Image 2 vs Frameport Image 3 and Frameport Image 1
| Model | Model id | Per image | Reference pictures | Edits |
|---|---|---|---|---|
| Frameport Image 2 | fp-image-2 | $0.025 | 4 | No |
| Frameport Image 3 | fp-image-3 | $0.025 | 4 | No |
| Frameport Image 1 | fp-image-1 | $0.025 | 10 | Yes |
About the Frameport Image 2 API
How much does the Frameport Image 2 API cost?
Frameport Image 2 costs $0.025 per image. A request makes 1 to 4 images and each one is charged, once, only when it succeeds.
How do I call Frameport Image 2 from code?
Send POST /v1/images/generations with "model": "fp-image-2" and a prompt, your API key as a Bearer token. The answer is a generation with an id: poll GET /v1/images/generations/{id} until its status is succeeded, then download each outputs[].url.
What happens if a Frameport Image 2 generation fails?
Nothing is charged. The price is held on your balance when the job starts and released in full if it fails: cost_usd stays at 0.
Can Frameport Image 2 work from reference pictures?
Yes: send up to 4 pictures in reference_images, as https URLs or base64 data URIs, and say in the prompt what each one is for.
Which aspect ratios does Frameport Image 2 support?
1:1, 3:4, 4:3, 9:16 and 16:9, at the same price.
Do I need a subscription?
No. You top up a prepaid balance in dollars, from $10, and it never expires. Every model runs on the same balance and the same API key.
Compare with similar models
For agents: this page in Markdown at /models/fp-image-2.md, every model in /models.json, and the site in /llms.txt.
Call Frameport Image 2 with one key.
Your API key is free. Top up from $10 when you are ready.