Photorealistic Image Generation API: Image 1, 2 and 3
A photorealistic image generation API on our own engines: prompts written like a photo brief, reference pictures for faces and products, billed per image.
Updated 6 min read
A photorealistic image generation API has three jobs: pictures that read as photographs, a way to keep the same face or product from one image to the next, and a bill you can predict. On Frameport, three of our own engines share that work at $0.025 per image, charged only when an image succeeds: Frameport Image 2 for photoreal scenes, Frameport Image 3 for people and products with a clean finish, and Frameport Image 1 when the result has to keep things from your own pictures.
Below: which engine fits which job, a first request in curl, Python and Node, how to write a prompt like a photo brief, reference pictures and recurring characters, billing, and the content filter, which is on by default.
Which engine for which photoreal job
| Job | Engine | Reference pictures | Per image |
|---|---|---|---|
| A full scene planned like a shoot: place, light, lens | Frameport Image 2 | Up to 4, included | $0.025 |
| Faces, characters and products with a clean finish | Frameport Image 3 | Up to 4, included | $0.025 |
| A face, an outfit, a product and a place from your pictures, or an edit by instruction | Frameport Image 1 | Up to 10, a fee for each after the first | $0.025 |
All three take the same request at POST /v1/images/generations: a prompt of up to 2,400 characters, an aspect ratio from 1:1, 3:4, 4:3, 9:16 and 16:9, and up to 4 images. None of them takes a negative prompt, so write what belongs in the frame rather than what to keep out. From other makers, Flux 3 Image and Seedream 5.0 Pro also aim at photoreal results, from the prompt alone.
Photorealistic image generation API: your first request
This asks Frameport Image 2 for two portrait takes in 3:4. The submit answers 202 with the amount held, and reading the generation moves it along until each image has settled.
# 1. Submit two takes of a portrait
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 fisherwoman in her sixties mending a net on a harbor wall at dawn, gray wool sweater, wind in her hair, 85mm lens, soft overcast light, fine film grain",
"n": 2,
"aspect_ratio": "3:4"
}'
# 2. Read it with the id it returned until it has settled
curl https://frameport.ai/v1/images/generations/$GENERATION_ID \
-H "Authorization: Bearer $FRAMEPORT_API_KEY"{
"id": "gen_4kQ8vT2nLm9Xr7Wd1sYcPa",
"object": "generation",
"type": "image",
"model": "fp-image-2",
"status": "queued",
"input": {
"prompt": "Portrait of a fisherwoman in her sixties mending a net on a harbor wall at dawn, gray wool sweater, wind in her hair, 85mm lens, soft overcast light, fine film grain",
"n": 2,
"aspect_ratio": "3:4",
"reference_images": 0
},
"reserved_usd": 0.05,
"cost_usd": null,
"outputs": [
{ "id": "file_8Hc2RkQw5ZpT1mVb7nXe3L", "status": "queued" },
{ "id": "file_3Vb8KqW2nTx7Lc5Rm1YdPs", "status": "queued" }
],
"error": null,
"created_at": "2026-11-28T10:00:00.000Z",
"completed_at": null
}Field by field, the request and the finished outputs are described in the images reference. A longer Python walkthrough, with batches, saved files and retries, is in image generation API in Python.
Write the prompt like a photo brief
Photoreal engines answer to the vocabulary of a shoot. Build the prompt from the parts a photographer would plan:
| Part | What to decide | Example |
|---|---|---|
| Subject and action | Who, doing what | a baker dusting flour off her hands |
| Wardrobe | Fabric, color, fit | a faded denim apron over a white T-shirt |
| Setting and time | Place, season, hour | a narrow bakery at 6 a.m., trays of loaves behind her |
| Light | Each source and its quality | cold daylight from the door, warm glow from the ovens |
| Camera | Focal length, aperture, angle | 35mm, f/2.8, eye level |
| Finish | Color and grain | natural color, light grain |
Assembled, the brief becomes one paragraph: "A baker dusting flour off her hands in a narrow bakery at 6 a.m., faded denim apron over a white T-shirt, trays of loaves behind her, cold daylight from the door mixing with the warm glow of the ovens, 35mm, f/2.8, eye level, natural color, light grain".
- Choose concrete things over adjectives about realism. A camera records a fabric or a light source, never the word "realistic".
- Tell one light story: two or three named sources at most, and where each one falls.
- Match the aspect ratio to the shot:
3:4for a portrait,16:9for a wide interior,4:3for a product on a table.
Reference pictures and edits on Image 1
Pictures go in reference_images, and the prompt names the role of each: whose face, which bag, which room. Frameport Image 1 reads up to 10, so a face, an outfit, a product and a location can share one render; given a single picture and an instruction, it changes what you ask for and leaves the composition as it was.
{
"model": "fp-image-1",
"prompt": "The leather backpack from the first picture on the stone bench from the second picture, late afternoon sun, 50mm product photograph",
"reference_images": ["upl_7Rk2PqV9wXm4Tn8Lc1BdZe", "https://example.com/bench.jpg"],
"n": 2,
"aspect_ratio": "4:3"
}{
"model": "fp-image-1",
"prompt": "Turn it into a rainy evening: wet stone, warm street lights, keep the backpack exactly as it is",
"reference_images": ["file_8Hc2RkQw5ZpT1mVb7nXe3L"],
"aspect_ratio": "4:3"
}Each entry may be an https URL, a base64 data URI, an upload id (upl_…) or the id of an image you already made here (file_…). On Image 1, every reference after the first adds a small fee to each image; post the body to POST /v1/generations/quote and the breakdown itemizes it. Frameport Image 2 and Frameport Image 3 accept up to 4 references each at no extra cost.
Recurring characters with Image 3
A series often needs one recurring person: a brand's model, a character in a story, a guide inside an app. Frameport Image 3 holds a face from up to 4 reference pictures. Three habits keep a series steady:
- Start from consented photos, or invent the person. Render a few takes from a written description, keep the best one, and pass its
file_…id as the reference from then on. - Use pictures where the face is clearly visible, not hidden by hair, hands or deep shadow.
- Fix the written description (hair, build, wardrobe) and change only the scene and the light between requests.
The consistent character image API guide adds a character sheet and batches that stay on model, and the same approach carries over to video: consistent character AI video keeps one face across clips.
Batches and per-image billing
| Images | Frameport Image 1 | Frameport Image 2 | Frameport Image 3 |
|---|---|---|---|
| 1 | $0.025 | $0.025 | $0.025 |
| 4 | $0.10 | $0.10 | $0.10 |
| 100 | $2.50 | $2.50 | $2.50 |
| 1,000 | $25.00 | $25.00 | $25.00 |
A request holds the price of all its images, then charges each one as it succeeds: four asked on Frameport Image 3 with one failure cost $0.075. Neither the aspect ratio nor the prompt's length moves the price; on Image 1, extra references do, by the fee a quote shows. A max_cost_usd field caps a request built from user input. Pricing explains the balance; for the whole catalog sorted from the lowest price per image, see cheapest image generation API.
Content filter: on by default
The content filter is switched on in every new workspace. It reads each request's prompt (the negative prompt is never read) and turns down what it blocks with 400 content_filtered, before any money is held. Only an owner or an admin of the workspace can turn it off, in the dashboard under Settings › Content filter, after confirming they are 18 or older and accept the acceptable use policy. The change applies at once to every key, and no API route can make it, so a leaked key cannot switch the filter off. To know the state from code, call GET /v1/account: its content_filter field reads true as long as the filter stays on.
With the filter off, these three engines render without one, at the same prices. The acceptable use policy applies either way: fiction only, nothing involving minors, no real and identifiable person without their consent (faces from photos of private persons included), and nothing illegal where you or your users are. For code that handles both states, read uncensored image generation API. Portraits made from a person's own photos are the subject of the AI headshot generator API.
FAQ
Which image API is the most photorealistic?
It depends on the picture, and only your own prompts can settle it. In this catalog, Frameport Image 2 and Frameport Image 3 are built for photoreal work at $0.025 an image, and Flux 3 Image and Seedream 5.0 Pro aim at it from other makers. One key calls all four, so run the same brief on each and compare.
Is there a free photorealistic image generation API?
Creating the account and the key costs nothing, quotes are free, and a failed image is never billed. Delivered images come out of a prepaid balance, from $10, and you can try Frameport Image 1 online before you write code.
How do I call a photorealistic image generation API from Python?
With requests and your key in an environment variable: post the body to /v1/images/generations, read the generation until it settles, then download each output's signed url. The Python tab above is a complete script.
Can I use someone's photo as a reference?
Only if that person has agreed. The acceptable use policy rules out any real, identifiable person used without consent, faces lifted from photos of private individuals included, and that holds with the filter on or off.
Do reference pictures cost extra?
On Frameport Image 1, each picture after the first adds a small fee to every image, shown in a quote's breakdown. On Frameport Image 2 and Frameport Image 3, references are included in the price.