Image GenerationFlux
Flux 1.1 Pro Ultra
High-resolution image generation (up to 4MP) with optional raw mode for natural aesthetics.
POST /v2/images/generate — model: "flux-1.1-pro-ultra"
Extends FLUX1.1 [pro] with support for 4x higher image resolutions (up to 4 megapixels) and a raw mode for more natural, less synthetic-looking images.
See Image Generation overview for common request fields, response format, and error codes.
Model-specific parameters
| Parameter | Type | Description |
|---|---|---|
fluxParams.aspect_ratio | string | Aspect ratio in "W:H" format (e.g. "3:2", "1:1") |
fluxParams.output_format | string | Output format: "jpg", "png", or "webp" |
fluxParams.seed | integer | Random seed for reproducible generation |
fluxParams.raw | boolean | Enable raw mode for more natural, candid-photography aesthetics |
fluxParams.image_prompt | string | Image URL for Flux Redux (guides composition) |
fluxParams.image_prompt_strength | number | Blend between the text prompt and the image prompt (0–1) |
Code examples
curl -X POST https://api.apiframe.ai/v2/images/generate \
-H "X-API-Key: afk_your_api_key_here" \
-H "Content-Type: application/json" \
-d '{
"prompt": "an old couple holding hands, walking along the beach",
"model": "flux-1.1-pro-ultra",
"fluxParams": {
"aspect_ratio": "3:2",
"raw": true,
"output_format": "jpg"
}
}'import requests
response = requests.post(
"https://api.apiframe.ai/v2/images/generate",
headers={
"X-API-Key": "afk_your_api_key_here",
"Content-Type": "application/json",
},
json={
"prompt": "an old couple holding hands, walking along the beach",
"model": "flux-1.1-pro-ultra",
"fluxParams": {
"aspect_ratio": "3:2",
"raw": True,
"output_format": "jpg",
},
},
)
print(response.json())const response = await fetch("https://api.apiframe.ai/v2/images/generate", {
method: "POST",
headers: {
"X-API-Key": "afk_your_api_key_here",
"Content-Type": "application/json",
},
body: JSON.stringify({
prompt: "an old couple holding hands, walking along the beach",
model: "flux-1.1-pro-ultra",
fluxParams: { aspect_ratio: "3:2", raw: true, output_format: "jpg" },
}),
});
console.log(await response.json());Try it
POST
/v2/images/generateTry it