Krea's highest-quality Krea 2 text-to-image tier with aspect ratio, creativity and seed controls plus optional style references.
krea-2-large API OpenAI-compatible
Base URL
https://api.lumenfall.ai/openai/v1
Model
krea-2-large
Code Examples
Text to Image
/v1/images/generationscurl -X POST \
https://api.lumenfall.ai/openai/v1/images/generations \
-H "Authorization: Bearer $LUMENFALL_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"model": "krea-2-large",
"prompt": "",
"size": "1024x1024"
}'
# Response:
# { "created": 1234567890, "data": [{ "url": "https://...", "revised_prompt": "..." }] }
import OpenAI from 'openai';
const client = new OpenAI({
apiKey: 'YOUR_API_KEY',
baseURL: 'https://api.lumenfall.ai/openai/v1'
});
const response = await client.images.generate({
model: 'krea-2-large',
prompt: '',
size: '1024x1024'
});
// { created: 1234567890, data: [{ url: "https://...", revised_prompt: "..." }] }
console.log(response.data[0].url);
from openai import OpenAI
client = OpenAI(
api_key="YOUR_API_KEY",
base_url="https://api.lumenfall.ai/openai/v1"
)
response = client.images.generate(
model="krea-2-large",
prompt="",
size="1024x1024"
)
# { created: 1234567890, data: [{ url: "https://...", revised_prompt: "..." }] }
print(response.data[0].url)
Parameter Reference
Required
Supported
Not available
Core Parameters
| Parameter | Type | Description | Modes |
|---|---|---|---|
prompt
|
string | Required. Text prompt for image generation |
T2I
|
seed
|
integer | Random seed for reproducibility |
T2I
|
Size & Layout
| Parameter | Type | Description | Modes |
|---|---|---|---|
aspect_ratio
|
string |
Aspect ratio of the output image (e.g. "16:9", "1:1")
1:1
4:3
3:2
16:9
2.35:1
4:5
2:3
9:16
Default:
"1:1"Choose a supported ratio. fal determines the pixel dimensions.
|
T2I
|
resolution
|
string |
Output resolution tier (e.g. "1K", "4K")
1K
Default:
"1K"Krea 2 Large uses a fixed 1K tier.
|
T2I
|
Output & Format
| Parameter | Type | Description | Modes |
|---|---|---|---|
response_format
|
string |
How to return the image
url
b64_json
Default:
"url" |
T2I
|
output_format
|
string |
Output image format
png
jpeg
gif
webp
avif
Gateway converts to requested format if provider doesn't support it natively.
|
T2I
|
output_compression
|
integer | Compression level for lossy formats (JPEG, WebP, AVIF) |
T2I
|
n
|
integer |
Number of images to generate
Default:
1Krea 2 Large generates one image per request.
|
T2I
|
Additional Parameters
Provider-specific passthrough fields, available only when the request is routed to the listed provider.
| Parameter | Type | Description | Modes |
|---|---|---|---|
|
fal
|
|||
creativity
|
string |
Controls how loosely the model interprets the prompt.
high
low
medium
raw
|
T2I
|
image_style_references
|
array | Optional ordered style references. Supply up to 10 public HTTP(S) image URLs, each with optional influence from -2 to 2. A nonempty list uses the style-reference image rate. |
T2I
|
Parameter Normalization
How we handle parameters across different providers
Not every provider speaks the same language. When you send a parameter, we handle it in one of four ways depending on what the model supports:
| Behavior | What happens | Example |
|---|---|---|
passthrough |
Sent as-is to the provider | style, quality |
renamed |
Same value, mapped to the field name the provider expects | prompt |
converted |
Transformed to the provider's native format | size |
emulated |
Works even if the provider has no concept of it | n, response_format |
Parameters we don't recognize pass straight through to the upstream API, so provider-specific options still work.