Get Started
Integrate this model into your application with a few lines of code.
You need an API key to use this model.
Example request
A complete request you can copy and run in your language of choice.
curl -X POST https://api.nunchux.ai/v1/images/generations \
-H "Content-Type: application/json" \
-H "X-API-Key: $NUNCHUX_API_KEY" \
-d '{
"model": "nunchux-flux.2-klein-4b",
"tier": "radical_speed",
"prompt": "Super-wide shot, A chrome soccer ball stands on the grass, in the middle of a stadium filled with fans; the reflections of the stadium and the fans are visible on the ball. cinematic feature film shot.",
"n": 1,
"width": 1024,
"height": 1024,
"response_format": "b64_json",
"seed": 42
}' | jq -r '.data[0].b64_json // error(.error.message // .detail // tostring)' | base64 -d > output.jpg