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
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
| Result | Detail |
|---|---|
| File | 1 image link, does not expire |
| Aspect ratio | 4:3 |
| Size | 1 megapixel (default) |
Real result, shown below.
FLUX 2 Klein image examples
Made by this node in our own tests, from the request shown under each.

“A red vintage bicycle leaning against a pastel blue wall on a sunny street, flower pots by the door, 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 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
Prompt and shape
FLUX 2 Klein prompt to image
Describe the image in plain words; it renders fast.
- Prompt
- A red vintage bicycle leaning against a pastel blue wall on a sunny street...
- Aspect ratio
- 4:3
- Returns
- 1 image link
You get
- prompt: what to create, up to 2,000 characters
- aspect_ratio: 11 fixed ratios from 1:1 to 21:9, default 1:1
- output_format: webp, jpg or png
- from $0.002
Size and price
0.25 to 4 megapixel output, priced by size
Pick the megapixel size; the price follows it.
- Default size
- 1 megapixel
- Smallest
- 0.25 megapixel, lowest price
- Largest
- 4 megapixel, highest price
You get
- output_megapixels: 0.25, 0.5, 1 (default), 2 or 4 megapixels, sets price
- seed: fixed integer to reproduce the same image
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
Quick product mockups for listings
“Generate a photo of a red vintage bicycle in front of a pastel blue shop wall, 1:1, flower pots nearby”
1 megapixel
Cost today$0.003
Marketers
Fast drafts for social posts
“Make a 16:9 image of a cold brew coffee can on a picnic table in a park, sunny afternoon”
0.5 megapixels
Cost today$0.002
Designers
Cheap variations to test layouts
“Give me four 3:4 flat lay concepts for a skincare box on a linen background”
4 × 1 megapixel
Cost today$0.012
Founders
Placeholder visuals for early decks
“Draw a 16:9 scene of a small delivery robot on a US suburban sidewalk at dusk”
0.5 megapixels
Cost today$0.002
Content creators
Blog headers and thumbnails in bulk
“Create six 4:5 images of a laptop glowing on a desk at night, moody lighting”
6 × 0.25 megapixels
Cost today$0.012
Agencies
Rapid client concept boards
“Make three 4:3 photos of a storefront with neon signage at night for a pitch”
3 × 1 megapixel
Cost today$0.009
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.
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 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
No subscription, no credit packs
Pay per image: $0.002 at 0.25 megapixel, $0.003 at 1 megapixel, $0.007 at 4 megapixel.
No Black Forest Labs account, no setup
Your agent calls TollNode directly. You never register or configure billing.
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 FLUX 2 Pro, Nano Banana and others, so it can compare results.
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.
Works well with
- FLUX 2 Pro image generationRun the same prompt on a larger FLUX 2 modelfrom $0.032
- FLUX Kontext Fast image editingEdit a FLUX 2 Klein output with a text instruction$0.015
- Fast 2x / 4x upscalerEnlarge a finished image beyond 4 megapixels$0.004
- Wan 2.2 image-to-videoTurn a finished image into a short videofrom $0.069
Ready in a minute
Connect your AIFor developers: endpoint, inputs and an example response
POST https://tollnode.com/api/v1/nodes/flux-2-klein
Input
| Field | Type | Notes |
|---|---|---|
| seed | integer | |
| prompt* | string | What to create or change |
| aspect_ratio | enum | Aspect 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_format | enum | (webp, jpg, png) |
| output_megapixels | enum | Output 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.