FLUX 2 Pro Image API and MCP for AI agents
TollNode gives Claude, Cursor or any AI agent FLUX 2 Pro, Black Forest Labs' photoreal image model, over API and MCP, from $0.032 per image, with no subscription.
Ask for 'a fisherman mending a net on a wooden pier at dawn, mist over the harbour, 3:2' and get an image link back.
No subscription · Sign-up optional · From $0.032 per call · Charged only when it works · No Black Forest Labs account needed
Generate a photo of a fisherman mending a net on a wooden pier at dawn, mist over the harbour, small boats behind him, natural colors, 35mm photograph look, 3:2, 1 MP
TollNode · Black Forest Labs · 1 MP$0.042 · 1 image
| Result | Detail |
|---|---|
| File | 1 image link, does not expire |
| Aspect ratio | 3:2 |
| Resolution | 1 MP |
Real result, shown below.
FLUX 2 Pro image examples
Made by this node in our own tests, from the request shown under each.

“A fisherman mending a net on a wooden pier at dawn, mist over the harbour, small boats behind him, natural colours, 35mm photograph”
The request that made it
Send the same body to get this kind of result. Change the prompt or the options to get your own.
{
"prompt": "A fisherman mending a net on a wooden pier at dawn, mist over the harbour, small boats behind him, natural colours, 35mm photograph",
"resolution": "1 MP",
"aspect_ratio": "3:2"
}What you control with FLUX 2 Pro
Prompt and style
FLUX 2 Pro prompt to image
Describe the scene in plain words, up to 2,000 characters.
- Prompt
- A fisherman mending a net on a wooden pier at dawn, mist over the harbour...
- Seed
- optional, for repeatable results
You get
- prompt: what to create, up to 2,000 characters
- seed: fixed number repeats the same result
Shape and format
Aspect ratio and file type
Pick a fixed shape and the file type you want back.
- Aspect ratio
- 3:2
- Format
- webp, jpg or png
You get
- aspect_ratio: 9 fixed shapes from 1:1 to 16:9, default 1:1
- output_format: webp, jpg or png
- from $0.032
Resolution and price
0.5 MP to 4 MP output
Pick the megapixel size; the price follows it.
- Resolution
- 1 MP (default)
- 0.5 MP vs 4 MP
- lower vs higher detail, price follows size
You get
- resolution: 0.5, 1, 2 or 4 megapixels, default 1 MP
- aspect_ratio: shape combines with resolution to set pixel size
Failed calls are never charged, and image links returned by TollNode don't expire.
What people ask their AI to do with it
Ecommerce sellers
Product photos for listings
“Create a photo of a leather wallet on a wooden table, soft morning light, 1:1, 1 MP”
1 MP
Cost today$0.042
Marketers
Ad visuals with a photoreal look
“Generate a 16:9 photo of a family grilling in a backyard at sunset for a summer sale ad, 2 MP”
2 MP
Cost today$0.062
Designers
Concept scenes for pitch decks
“Draw a 3:2 photo of a delivery drone landing in a suburban driveway at dusk, 4 MP”
4 MP
Cost today$0.103
Real estate agents
Staged room photos for listings
“Create a 4:3 photo of a cozy living room with a fireplace, warm afternoon light, 1 MP”
1 MP
Cost today$0.042
Content creators
Stock-style photos for blog posts
“Make a 4:5 photo of a barista pouring latte art in a sunlit cafe, natural colors, 0.5 MP”
0.5 MP
Cost today$0.032
Travel bloggers
Scenic travel photos for articles
“Generate a 16:9 photo of a fisherman mending nets on a wooden pier at dawn, mist over the harbor, 2 MP”
2 MP
Cost today$0.062
Use it as a FLUX 2 Pro MCP server in Claude, Cursor or Codex
Connect once. Then just ask.
Paste this into Claude Code, Cursor or Codex. It connects TollNode and gives your agent a small wallet. Add a few dollars of USDC and you're done.
npx agentcash add https://tollnode.comCopy for your AI agent
Paste this into your agent so it knows what this node does and how to call it.
You can use TollNode's FLUX 2 Pro node to create photoreal images from a text prompt. Call POST https://tollnode.com/api/v1/nodes/flux-2-pro with prompt (required, up to 2,000 characters), resolution (0.5 MP, 1 MP, 2 MP or 4 MP, default 1 MP), aspect_ratio (9 fixed shapes, default 1:1), output_format (webp, jpg or png) and an optional seed for repeatable results. The price depends on resolution and is charged only when an image is returned. Over MCP, call the "flux-2-pro" tool; use list_models to see prices. Give me the image link when it is done.Price
from $0.032
per image
The price depends on the resolution you choose. If you don't choose, you get 1 MP.
| 0.5 MP | $0.032 per image |
| 1 MPdefault | $0.042 per image |
| 2 MP | $0.062 per image |
| 4 MP | $0.103 per image |
Charged only when a call returns a result. Failed or empty calls cost $0.
FLUX 2 Pro without a Black Forest Labs account
No subscription, no credit packs
Pay per image: $0.032 at 0.5 MP, $0.042 at 1 MP, $0.062 at 2 MP, $0.103 at 4 MP.
No Black Forest Labs account needed
Your agent calls TollNode. You never set up an API key or billing with Black Forest Labs.
Only charged when it works
If generation fails or returns nothing, the call costs nothing.
One connection, many image models
The same setup also gives your agent Nano Banana Pro, GPT Image 2 and other image models to compare.
FAQ
- Is this the official Black Forest Labs API?
- No. TollNode is an independent service. It gives your agent access to FLUX 2 Pro through its own API and MCP server, priced per image, with no Black Forest Labs account needed.
- Can I use it as a FLUX 2 Pro MCP server in Claude?
- Yes. Add https://tollnode.com/mcp in Claude Code, Claude Desktop or Cursor, and the "flux-2-pro" tool appears with its options and prices.
- What resolutions and shapes can I get?
- Choose 0.5, 1, 2 or 4 megapixels and one of 9 aspect ratios from 1:1 to 16:9. Resolution sets the price; aspect ratio does not change it.
- What file formats come back?
- webp, jpg or png, whichever you set in output_format. If you leave it unset, you still get a working image link.
- Can I get the same image again?
- Yes. Send the same prompt, resolution and aspect_ratio with the same seed value to repeat a result.
- What if no image comes back?
- You're not charged. TollNode only collects payment when a usable image is returned.
- How long are the image links valid?
- They don't expire. Download the file or keep the link.
Works well with
- FLUX 1.1 Pro Ultra 4MP imagesTry the same prompt on FLUX 1.1 Pro Ultra at up to 4MP$0.082
- FLUX Kontext Pro image editingEdit the finished image with a text instruction$0.055
- Crisp image upscalerEnlarge a finished FLUX 2 Pro image for print$0.010
- Veo 3.1 Fast video with soundTurn a finished photo into a short video with soundfrom $0.811
Ready in a minute
Connect your AIFor developers: endpoint, inputs and an example response
POST https://tollnode.com/api/v1/nodes/flux-2-pro
Input
| Field | Type | Notes |
|---|---|---|
| seed | integer | |
| prompt* | string | What to create or change |
| resolution | enum | Output size in megapixels; sets the price. Default 1 MP (0.5 MP, 1 MP, 2 MP, 4 MP) |
| aspect_ratio | enum | Aspect ratio, default 1:1 (1:1, 16:9, 3:2, 2:3, 4:5, 5:4, 9:16, 3:4, 4:3) |
| output_format | enum | (webp, jpg, png) |
Example response
{
"images": [
"https://tollnode.com/api/v1/files/00000000-0000-0000-0000-000000000000/0"
]
}Also described in the OpenAPI file and llms.txt. Setup for every app: Agents & MCP.