TollNode

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

Claude Code

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

ResultDetail
File1 image link, does not expire
Aspect ratio3:2
Resolution1 MP

Real result, shown below.

Works in Claude Code, Cursor, Codex, VS Code and any MCP agent.

FLUX 2 Pro image examples

Made by this node in our own tests, from the request shown under each.

FLUX 2 Pro image generation output: A fisherman mending a net on a wooden pier at dawn, mist over the harbour, small boats behind him, natural colours, 35mm photograph

“A fisherman mending a net on a wooden pier at dawn, mist over the harbour, small boats behind him, natural colours, 35mm photograph”

AI-generatedresolution: 1 MPaspect_ratio: 3:2

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.

request body
{
  "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

Failed calls are never charged, and image links returned by TollNode don't expire.

What people ask their AI to do with it

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.

terminal
npx agentcash add https://tollnode.com

Copy for your AI agent

Paste this into your agent so it knows what this node does and how to call it.

prompt
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

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.

Ready in a minute

Connect your AI
For developers: endpoint, inputs and an example response

POST https://tollnode.com/api/v1/nodes/flux-2-pro

Input

FieldTypeNotes
seedinteger
prompt*stringWhat to create or change
resolutionenumOutput size in megapixels; sets the price. Default 1 MP (0.5 MP, 1 MP, 2 MP, 4 MP)
aspect_ratioenumAspect ratio, default 1:1 (1:1, 16:9, 3:2, 2:3, 4:5, 5:4, 9:16, 3:4, 4:3)
output_formatenum (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.