TollNode

FLUX 2 Klein Fast Image API and MCP for AI Agents

TollNode gives Claude, Cursor or any AI agent FLUX 2 Klein, Black Forest Labs' small, very fast image model, over API and MCP, from $0.002 per image, with no subscription.

Ask for 'a red vintage bicycle leaning against a pastel blue wall, 4:3, photograph' and get a finished image link back.

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

Claude Code

Generate a photo of a red vintage bicycle leaning against a pastel blue wall on a sunny street, 4:3, flower pots by the door

TollNode · Black Forest Labs · 1$0.003 · 1 image

ResultDetail
File1 image link, does not expire
Aspect ratio4:3
Size1 megapixel (default)

Real result, shown below.

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

FLUX 2 Klein image examples

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

FLUX 2 Klein fast image generation output: A red vintage bicycle leaning against a pastel blue wall on a sunny street, flower pots by the door, photograph

“A red vintage bicycle leaning against a pastel blue wall on a sunny street, flower pots by the door, photograph”

AI-generatedaspect_ratio: 4:3output_megapixels: 1

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 red vintage bicycle leaning against a pastel blue wall on a sunny street, flower pots by the door, photograph",
  "aspect_ratio": "4:3",
  "output_megapixels": "1"
}

What you control with FLUX 2 Klein

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 Klein 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 Klein node to generate images from text. Call POST https://tollnode.com/api/v1/nodes/flux-2-klein with prompt (required, up to 2,000 characters), aspect_ratio (11 fixed ratios, default 1:1), output_format (webp, jpg or png), output_megapixels (0.25, 0.5, 1, 2 or 4, sets the price) and seed (optional integer). The price depends on output_megapixels and is charged only when an image is returned. Over MCP, call the "flux-2-klein" tool; use list_models to see prices. Give me the image link when it is done.

Price

from $0.002

per image

The price depends on the output_megapixels you choose. If you don't choose, you get 1 megapixel.

0.25 megapixels$0.002 per image
0.5 megapixels$0.002 per image
1 megapixeldefault$0.003 per image
2 megapixels$0.004 per image
4 megapixels$0.007 per image

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

FLUX 2 Klein 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 Klein 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 Klein MCP server in Claude?
Yes. Add https://tollnode.com/mcp in Claude Code, Claude Desktop or Cursor, and the "flux-2-klein" tool appears with its options and prices.
What sizes can I get and how does price change?
Choose output_megapixels: 0.25, 0.5, 1 (default), 2 or 4. The price follows the size you pick, from $0.002 at the smallest to $0.007 at the largest.
What aspect ratios does it support?
11 fixed ratios from 1:1 to 21:9, including 16:9, 9:16, 3:2, 2:3 and more. The default is 1:1 if you don't set one.
Can it edit an existing photo?
No. This node is text-to-image only, built from a prompt. For editing your own photos, use a FLUX editing node instead.
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-klein

Input

FieldTypeNotes
seedinteger
prompt*stringWhat to create or change
aspect_ratioenumAspect ratio, default 1:1 (1:1, 16:9, 9:16, 3:2, 2:3, 4:3, 3:4, 5:4, 4:5, 21:9, 9:21)
output_formatenum (webp, jpg, png)
output_megapixelsenumOutput size in megapixels; sets the price. Default 1 (0.25, 0.5, 1, 2, 4)

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.