TollNode

FLUX 2 Max Image API and MCP for AI agents

TollNode gives Claude, Cursor or any AI agent FLUX 2 Max, Black Forest Labs' highest-fidelity image model, over API and MCP, from $0.076 per image, with no subscription.

Ask for 'a close-up portrait of an elderly watchmaker at his workbench, loupe in one eye, warm desk lamp, shallow depth of field' and get a finished image link back.

No subscription · Sign-up optional · From $0.076 per call · Charged only when it works · No Black Forest Labs account needed

Claude Code

Generate a close-up portrait of an elderly watchmaker at his workbench, loupe in one eye, tiny gears and tweezers on the bench, warm desk lamp, shallow depth of field, 1 MP, 4:5

TollNode · Black Forest Labs · 1 MP$0.096 · 1 image

ResultDetail
File1 image link, does not expire
Resolution1 MP
Aspect ratio4:5

Real result, shown below.

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

FLUX 2 Max image examples

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

FLUX 2 Max image generation output: Close-up portrait of an elderly watchmaker at his workbench, loupe in one eye, tiny gears and tweezers on the bench, warm desk lamp, shallow depth of field

“Close-up portrait of an elderly watchmaker at his workbench, loupe in one eye, tiny gears and tweezers on the bench, warm desk lamp, shallow depth of field”

AI-generatedresolution: 1 MPaspect_ratio: 4:5

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": "Close-up portrait of an elderly watchmaker at his workbench, loupe in one eye, tiny gears and tweezers on the bench, warm desk lamp, shallow depth of field",
  "resolution": "1 MP",
  "aspect_ratio": "4:5"
}

What you control with FLUX 2 Max

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 Max 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 Max node to generate photoreal images from text. Call POST https://tollnode.com/api/v1/nodes/flux-2-max 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 ratios from 1:1 to 16:9, default 1:1), output_format (webp, jpg or png) and seed (optional integer to reproduce a result). The price depends on resolution and is charged only when an image is returned. Over MCP, call the "flux-2-max" tool; use list_models to see prices. Give me the image link when it is done.

Price

from $0.076

per image

The price depends on the resolution you choose. If you don't choose, you get 1 MP.

0.5 MP$0.076 per image
1 MPdefault$0.096 per image
2 MP$0.136 per image
4 MP$0.217 per image

Charged only when a call returns a result. Failed or empty calls cost $0.

FLUX 2 Max 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 Max 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 Max MCP server in Claude?
Yes. Add https://tollnode.com/mcp in Claude Code, Claude Desktop or Cursor, and the "flux-2-max" tool appears with its options and prices.
What resolutions can I get?
0.5, 1, 2 or 4 megapixels. The resolution you pick sets the price, and 1 MP is the default if you don't specify one.
Can I control the aspect ratio and file format?
Yes. Pick from 9 fixed ratios from 1:1 to 16:9, and choose webp, jpg or png for the output file.
Can I get the same image again later?
Set a seed value and reuse it with the same prompt and settings to reproduce the same 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-max

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.