We use cookies to enhance your experience, provide personalised content, and analyse our traffic; see our Cookie Policy.
google/nano-banana-2.1Google's newer Nano Banana, up to 4K
Google's Nano Banana 2.1 image model, billed per image by resolution (1K, 2K or 4K). Generates from text and edits from reference images.
Render at 1K, 2K or 4K, billed per resolution
Supply reference images to guide style, subject or composition
From 1:8 and 1:4 banners to 21:9 panoramas
Yes. Top up your Tchavi account with Orange Money, MTN MoMo, M-Pesa or another mobile money operator. No bank card is needed. Credits land as soon as the payment is confirmed and are deducted as you use them.
Yes. Keep your current OpenAI SDK, just change the base URL to Tchavi's (shown in the API tab) and use your Tchavi key. The rest of your code stays the same.
import Tchavi from '@tchavi/sdk';
const client = new Tchavi({ apiKey: 'API_KEY' });
const result = await client.images.generations.create({
"model": "nano-banana-2.1",
"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. `nano-banana-2.1`).
promptRequiredText description of the image to generate.
n1Number of images to generate (1–4).