Media · Image
FLUX 3 Klein
Managed image generation over the AI HUB developer API.
Model id: flux3-klein-edit
Parameters
Only model and prompt are required. Omitted optional params use the default. An unsupported value returns 400. These values are the same ones GET /v1/models?type=image reports.
| Parameter | Allowed | Default | Required |
|---|---|---|---|
size |
1024x1024, 1536x1024, 1024x1536, 2048x2048, 2048x1152, 1152x2048, 4096x4096, 4096x2304, 2304x4096, 1:1, 16:9, 9:16 | 1024x1024 | No |
response_format |
url, b64_json | url | No |
n |
1 | 1 | No |
Example
cURL
curl https://console.aimodelhub.ai/v1/images/generations \
-H "Authorization: Bearer $AIHUB_KEY" \
-H "Content-Type: application/json" \
-d '{"model":"flux3-klein-edit","prompt":"a red bicycle","size":"1024x1024"}'Metered once at this model's list price on success and debited from the wallet. See the Image overview for the full request/response shape.