We use cookies to enhance your experience, provide personalised content, and analyse our traffic; see our Cookie Policy.
black-forest-labs/flux-2-flexFLUX.2 Flex — 130 credits, for text and layout
0 chars
Sample output — click Run to generate your own.

import Tchavi from '@tchavi/sdk';
const client = new Tchavi({ apiKey: 'API_KEY' });
const result = await client.images.generations.create({
"model": "flux-2-flex",
"prompt": "A cute cat wearing a space suit",
"n": 1,
"quality": "standard",
"size": "1024x1024"
});
console.log(result.data[0].b64_json);
console.log('Credits used:', result.tchavi.credits_used);Every parameter this model accepts on the API. Check the SDK for full typings.
modelRequiredID of the image model (e.g. `flux-2-flex`).
promptRequiredText description of the image to generate.
n1Number of images to generate (1–4).
Estimated over 30 days, ~1000 tokens per request (input + output).
FLUX.2 Flex is the FLUX variant to use when the image contains words — posters, packaging, covers — where letterforms have to survive. Twice the price of FLUX.2 Pro, so use Pro when there is no text.
flux-2-flex+150 bonus on your first top-up · No card to sign up