Mage API · Image model
Krea 2 API
Gorgeous aesthetics in seconds
POST https://api.mage.space/v1/krea_2/generateAt a glance
The Krea 2 API runs Krea 2 Turbo through Mage at POST https://api.mage.space/v1/krea_2/generate. A request at the default settings costs 20 Gems (about $0.02), with no subscription. Krea 2 takes no @handle mentions.
- ImageOutput
- 1Variant
- 20Gems per image, default
- $0.02About, in USD
Overview
What the Krea 2 API does
A fast text-to-image model with a beautiful built-in look, made for quick first passes. Outputs up to 2K; no reference images.
A fast image model with a strong built-in aesthetic, at 1K or 2K.
It generates from the prompt alone.
Quick start
Call the Krea 2 API
Set MAGE_API_KEY, submit to /krea_2/generate, and poll status_url until the request completes.
cURL
STATUS_URL=$(curl --request POST 'https://api.mage.space/v1/krea_2/generate' \
--header "Authorization: Bearer $MAGE_API_KEY" \
--header 'Content-Type: application/json' \
--data '{
"prompt": "Editorial portrait in soft daylight, 35mm film look",
"aspect_ratio": "4:5",
"model_id": "krea-2-turbo"
}' | jq -r '.status_url')
# Repeat until status is "completed"; result.url is the file
curl "$STATUS_URL" --header "Authorization: Bearer $MAGE_API_KEY"TypeScript
// npm install @mage-space/sdk
import Mage from '@mage-space/sdk';
const mage = new Mage(); // reads MAGE_API_KEY
const request = await mage.run('krea_2', {
prompt: 'Editorial portrait in soft daylight, 35mm film look',
aspect_ratio: '4:5',
model_id: 'krea-2-turbo',
});
console.log(request.result.url);Python
# pip install mage-space
from mage_space import Mage
mage = Mage() # reads MAGE_API_KEY
request = mage.run("krea_2", {
"prompt": "Editorial portrait in soft daylight, 35mm film look",
"aspect_ratio": "4:5",
"model_id": "krea-2-turbo",
})
print(request["result"]["url"])Models
Krea 2 model_id values
Send model_id to pick a variant. A request without one runs the default.
| model_id | Name | Default |
|---|---|---|
| krea-2-turbo | Krea 2 Turbo | Yes |
Options
Krea 2 parameters
Allowed values across all variants; a variant may offer fewer. The docs list the options per variant.
| Field | Values |
|---|---|
| aspect_ratio | 21:9, 16:9, 3:2, 5:4, 1:1, 4:5, 2:3, 9:16, 9:21 |
| resolution | 1k, 2k |
More image models
Other image generation APIs on Mage
Mango API
Our flagship image family
MOSS-Image API
Long prompts and bilingual text, open weights
Nano Banana 2 API
Crisp, readable text, up to 4K
SDXL Plus API
SDXL with faces and hands fixed
Seedream API
Seedream, with a strict filter
Stable Diffusion v1.5 API
The classic, on a budget
FAQ
Frequently asked questions
How much does the Krea 2 API cost?
What is the Krea 2 API endpoint?
Which Krea 2 models can I call?
Does Krea 2 support reference images or characters?
Can I use Krea 2 from Claude or ChatGPT?
How long are Krea 2 results kept?
Start building with Mage
One account, one Gems balance, every model. Pay only for what you generate.