BotConnector

FLUX.2 [klein] 4B

Black Forest Labs PAYG — context

Low-latency economy image generation and editing with PAYG settled from the task's actual upstream cost.

API Model ID
flux-2-klein-4b
Developer
Black Forest Labs
Context Window
— tokens
Median Latency (TTFT)
—

Capabilities & Features

Image Generation Image Editing Image-to-Image Reference Image

Pricing & Access

Media Rate: — / image

API Usage Example (/v1/images/generations)

BotConnector provides an OpenAI-compatible image generations endpoint.

cURL

curl https://api.botconnector.id/v1/images/generations \
  -H "Authorization: Bearer $BOTCONNECTOR_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "model": "flux-2-klein-4b",
    "prompt": "Scenic Indonesian landscape at sunrise, highly detailed",
    "n": 1,
    "size": "1024x1024"
  }'

Python (OpenAI SDK)

from openai import OpenAI
import os

client = OpenAI(
    base_url="https://api.botconnector.id/v1",
    api_key=os.environ.get("BOTCONNECTOR_API_KEY")
)

response = client.images.generate(
    model="flux-2-klein-4b",
    prompt="Scenic Indonesian landscape at sunrise, highly detailed",
    n=1,
    size="1024x1024"
)

print(response.data[0].url)

Provider & Infrastructure Disclaimer

This model was developed by Black Forest Labs. BotConnector accesses models via official developer APIs or verified large-scale cloud providers. BotConnector does not rebrand or alter original developer attributions.