FLUX.2 Klein 4B BF16
256–1024px resolution (16px steps). Default: 1024×1024, 4 steps. Guidance: 1.0 (fixed). Unified model for generation and multi-reference editing. Sub-second inference.
Transform any image using natural-language prompts.
Estimated cost: calculating… $0.04979/image
Available only to logged in users
{
"image": "@NanoBanana21_img2img_src3_lamp_sketch_flux2klein.png",
"prompt": "Turn this pencil sketch into a finished studio product photograph of the same desk lamp. Keep the proportions and shapes from the sketch: the round base, the single curved arm and the cone-shaped shade. Make the lamp matte sage green with a brass joint and a warm light switched on, standing on a light oak desk against a soft grey wall. Remove the construction lines, arrows and paper.",
"model": "nano-banana-2.1",
"seed": 1411095846
}
curl -s -o 'NanoBanana21_img2img_src3_lamp_sketch_flux2klein.png' 'https://assets.deapi.ai/22621047/NanoBanana21_img2img_src3_lamp_sketch_flux2klein.png'
curl -X POST \
'https://api.deapi.ai/api/v2/images/edits' \
-H 'Accept: application/json' \
-H 'Authorization: Bearer {{ YOUR_API_TOKEN }}' \
-F 'image=@NanoBanana21_img2img_src3_lamp_sketch_flux2klein.png' \
-F 'prompt=Turn this pencil sketch into a finished studio product photograph of the same desk lamp. Keep the proportions and shapes from the sketch: the round base, the single curved arm and the cone-shaped shade. Make the lamp matte sage green with a brass joint and a warm light switched on, standing on a light oak desk against a soft grey wall. Remove the construction lines, arrows and paper.' \
-F 'model=nano-banana-2.1' \
-F 'seed=1411095846'
Built for developers who need power without complexity.
256–1024px resolution (16px steps). Default: 1024×1024, 4 steps. Guidance: 1.0 (fixed). Unified model for generation and multi-reference editing. Sub-second inference.
Edit an existing image with a plain-language instruction. Replace a background, change the time of day or the season, add a print, a sign or an ad, remove clutter, recolour an object or restyle the whole frame while the subject and composition stay in place. Pass a second image to place a product or an object from it into the scene.
Edit an existing image with a plain-language instruction. Swap an object, change a colour, add signage, remove people or restyle the whole frame while the subject, composition and background stay intact. Pass a second image to bring a product or a reference into the scene.
· Experimental · Partner model · Premium · Edit at high input fidelity, so detail in the source survives the round trip. Combine up to two references, restyle a subject, or change one element of a composition while the rest holds.
· Experimental · Partner model · Premium · Add, remove, combine or restyle elements of an existing image while composition, lighting and fine detail hold. Supply up to two reference images and describe the change in natural language — no masking required.
256–1024px resolution. 1–50 inference steps. Default: 768×768, 40 steps. Natural language image editing with AI-powered transformations.
Join developers & vibe coders building AI apps with deAPI. No credit card, zero setup headaches — just pure, instant AI magic.
Need enterprise pricing or SLA? Talk to Sales
You've reached your free daily limit
Your counter resets at 00:00 UTC.
Want to keep going? Register now and get $5 in free credits to start.
Quick check before we generate