models

Krea: Krea 2 Medium

Markdown · JSON

Krea: Krea 2 Medium

Krea 2 Medium generates expressive illustrations from text and optional visual inputs. Its more extensive post-training favors stable results across illustration, anime and painting, with controls for style, prompt interpretation, composition density and visual energy.

About the model

This description covers the model’s capabilities. Available in Ailoot inputs, outputs and options are listed for the selected method below.

Expressive illustration and stable creative development

Krea 2 Medium is a from-scratch Krea 2 image model designed for expressive illustration. Krea describes it as smaller than Large and more extensively post-trained, with a more stable character that works especially well for illustration, anime and painting. Medium and Large share the documented control system; the edition difference concerns their model design and visual tendencies rather than a different kind of output.

Use Medium to develop editorial illustrations, story scenes, painted concepts and coordinated visual directions. Start with a brief that identifies the subject, action, setting, composition, palette and medium. For example: “A cyclist crossing a quiet riverside bridge at dawn, wide editorial illustration, layered gouache shapes, soft blue shadows and one coral accent, open space above the river for a headline.” Treat the empty space as a composition request, then place final typography in the finished layout.

Prepare text and image inputs

The generation interface requires a prompt, aspect ratio and resolution. Text supplies the scene and creative direction. An optional source image enables image-to-image generation, which starts from that image instead of pure noise. The denoising strength ranges from 0 to 1: 0 keeps the input image, 1 fully replaces it, and the documented default is 0.99. Use a source image when the starting composition is important, then describe the new treatment and select how much transformation to allow.

Image style references influence the visual treatment separately from the source image. The model-specific schema limits source-image and style-reference URI strings to 1,024 characters. Medium’s model-specific schema accepts up to ten references, with individual influence from 0 to 1 and a default of 0.5. Prepare a small, purposeful reference set: one image might establish brushwork and another the palette or lighting. State the intended relationship in the brief instead of relying on a mixed collection to imply a coherent direction.

A moodboard groups related references around a common style, palette, texture or composition. The documented workflow creates the moodboard first and then uses its existing identifier in a generation request. Medium accepts one moodboard, with influence from 0 to 1 and a default of 0.23 in its request schema. Trained styles, typically LoRAs, are a separate input selected by identifier and strength from -2 to 2. Choose the appropriate input for the job: a source image starts the scene, a reference suggests appearance, and a moodboard or trained style supplies a reusable direction.

Control interpretation and the visual result

Creativity controls expansion of the prompt. Raw disables expansion; low stays closer to the literal brief, while medium and high allow more interpretation. Medium’s model-specific request schema uses low as the default. For a tightly specified illustration, write the complete direction and start with restrained expansion. For early exploration, a looser setting can develop a simpler concept into a richer scene.

Three independent sliders shape the image: Intensity, Complexity and Movement. Each takes an integer from -100 to 100, with 0 neutral. Intensity shifts the treatment between muted and bold. Complexity shifts between clean, minimal compositions and dense detail. Movement shifts visual energy, gesture and implied motion. Movement remains a still-image control; it does not generate animation or a video clip. The sliders are independent of creativity’s prompt expansion and can be combined with reference inputs.

A practical illustration workflow establishes the scene first, then adjusts palette and treatment, then tunes density or energy. Keep the prompt, reference set and optional seed recorded while changing one control at a time. For the riverside illustration, lower complexity can simplify the background, while a higher movement value can suggest a livelier riding pose. These are creative directions to inspect in the completed result, not exact layout or pose locks.

Format, generation and delivery

Medium’s documented generation schema offers the 1K resolution scale and nine aspect ratios: 1:1, 4:3, 3:2, 16:9, 2.35:1, 4:5, 3:4, 2:3 and 9:16. Select the intended frame before generating so the brief can describe its composition accordingly. A square illustration, a wide story scene and a vertical cover need different placement of the main subject and surrounding detail.

The documented generation flow returns a job, which may initially be pending. Follow its status to completion and then retrieve the resulting image locations. Preserve the selected image together with the brief, input images and control settings. Review the silhouette, hands or small objects, perspective, palette and any visible lettering before incorporating it into a publication or campaign.

Medium’s illustration emphasis is a useful edition choice, not a promise of identical results across prompts. A visual reference can guide style without perfectly copying its subject or layout, and image-to-image strength changes how much of the starting image survives. Use explicit instructions for required elements, inspect each completed output against the brief, and make final composition, typography and production adjustments in an editor.

Ailoot Ultra · Images POST /v1/images/generations krea/krea-2-medium

krea/krea-2-medium

Krea /krea/krea-2-medium

Overview

Krea 2 Medium generates expressive illustrations from text and optional visual inputs. Its more extensive post-training favors stable results across illustration, anime and painting, with controls for style, prompt interpretation, composition density and visual energy.

Accepted inputs
Text · Images
Results
Images

Available in Ailoot · inputs & methods

Ailoot Ultra · Images POST /v1/images/generations
Input types
text, image
Output types
image
FieldTypeRequirementValues & limitsDefault
FieldmodelTypestringRequirementRequiredValues & limits
krea/krea-2-medium
Default—
FieldpromptTypestringRequirementRequiredValues & limits
Minimum length: 1
Default—
FieldresolutionTypestringRequirementOptionalValues & limits
1K
Default—
Fieldaspect_ratioTypestringRequirementOptionalValues & limits
1:1, 4:3, 3:2, 16:9, 4:5, 2:3, 9:16
Default—
Fieldinput_referencesTypearrayRequirementOptionalValues & limits
Minimum items: 0
Maximum items: 1
Default—
FieldproviderTypeobjectRequirementOptionalValues & limitsDefault—
Method parameters and lifecycle
ParameterContract
Parametercontent_typeContractapplication/json
ParameterrequiredContractmodel, prompt
Parametermaterial_typesContracttext, image

Lifecycle: synchronous_result_then_owned_library

GET /v1/media/tasks/{task_id} · actual returned task_id or media library record

GET /v1/media/assets/{asset_id}/content

GET /v1/media/assets

GET /v1/media/assets/{asset_id}

Pricing

How the final charge is calculated

The displayed rates estimate the cost before generation. The final charge is calculated from the cost recorded for the original generation. Measured output duration and forecast quantities are not the final billable quantity.

Tariff references do not add request options. Supported parameters are listed for the selected method.

Fast mode
Not specified When fast mode is selected
Flex mode
Not specified When flex mode is selected
Maximum reasoning effort
Not specified When maximum reasoning effort uses the default adjustment

Estimated rates for comparison

Prices by configuration

Match each charge to the conditions shown. Use one rate for each set of alternative configurations.

ConfigurationRate scheduleForecast quantityCharge
ConfigurationBase token ratesRate scheduleBase rateForecast quantity—Charge
Input · Input tokens · Estimate for comparison only — / 1K tokens
Output · Output tokens · Estimate for comparison only — / 1K tokens
Input · Cache read · Estimate for comparison only — / 1K tokens
Input · Cache write · Estimate for comparison only — / 1K tokens
Input · Cache write, 1 hour · Estimate for comparison only — / 1K tokens
ConfigurationEstimated generation costRate schedule—Forecast quantityone generation estimateCharge
Output · Estimated generation cost · Estimate for comparison only $0.06 estimate before generation

This estimate is not an additional charge or a fixed rate for the completed generation.

Ailoot reserves an estimated amount before a request. After the result, it settles the final charge from measured usage. Streaming settlement uses the final usage record. How reservation and settlement work →

Example requests

Ailoot Ultra · Images

curl
set -eu
: "${AILOOT_API_KEY:?Set your Ailoot API key}"
export AILOOT_API_KEY
python3 - <<'PY_REQUEST'
import json,os
from pathlib import Path
p={'model': 'krea/krea-2-medium', 'prompt': 'a red panda astronaut floating in space, studio lighting'}

Path("request.json").write_text(json.dumps(p,ensure_ascii=False))
PY_REQUEST
curl --fail-with-body --silent --show-error https://api.ailoot.ai/v1/images/generations \
  -H "Authorization: Bearer $AILOOT_API_KEY" -H 'Content-Type: application/json' \
  --data-binary @request.json -D response-headers.txt -o result.json
python3 - <<'PY_RESULT'
import base64, json, os, subprocess
from pathlib import Path
from urllib.parse import urlsplit, urljoin

def save_images(items):
    if not items: raise SystemExit("No completed images; retain the full response")
    for index, item in enumerate(items):
        encoded=item.get("b64_json")
        uri=item.get("url", "")
        if not encoded and uri.startswith("data:image/"):
            header, separator, encoded=uri.partition(",")
            if not separator or ";base64" not in header: raise SystemExit("Unsupported image data URI")
        if encoded:
            raw=base64.b64decode(encoded,validate=True)
        elif uri:
            uri=urljoin("https://api.ailoot.ai",uri)
            parsed=urlsplit(uri)
            if parsed.scheme!="https" or not parsed.netloc or parsed.username or parsed.password:
                raise SystemExit("Invalid returned image URL")
            owned=parsed.netloc=="api.ailoot.ai" and parsed.path.startswith("/v1/media/assets/") and parsed.path.endswith("/content")
            args=["curl","--fail-with-body","--silent","--show-error",uri]
            if owned: args += ["-H","Authorization: Bearer "+os.environ["AILOOT_API_KEY"]]
            temporary=Path(f"image-{index}.bin")
            subprocess.run(args+["-o",str(temporary)],check=True)
            raw=temporary.read_bytes()
            temporary.unlink()
        else: raise SystemExit("Image has neither bytes nor URL")
        if not raw: raise SystemExit("Empty image result")
        ext="png" if raw.startswith(b"\x89PNG") else "jpg" if raw.startswith(b"\xff\xd8") else "webp" if raw[:4]==b"RIFF" and raw[8:12]==b"WEBP" else "svg" if raw.lstrip().startswith((b"<svg",b"<?xml")) else "bin"
        Path(f"image-{index}.{ext}").write_bytes(raw)
    print("Every returned image saved; complete response metadata retained")
save_images(json.loads(Path("result.json").read_text())["data"])
PY_RESULT

Receive and save results

Ailoot Ultra · Images

Download each returned image or save its Base64 contents

  • GET /v1/media/tasks/{task_id}
  • GET /v1/media/assets/{asset_id}/content
  • GET /v1/media/assets
  • GET /v1/media/assets/{asset_id}
Other content reads
Read existing owned assets
set -eu
: "${AILOOT_API_KEY:?Set your Ailoot API key}"
curl --fail-with-body --silent --show-error https://api.ailoot.ai/v1/media/assets \
  -H "Authorization: Bearer $AILOOT_API_KEY" -o owned-assets.json
# Preserve every returned asset and follow its exact signed content URL. Do not construct a signed token.
Keep all completed results

Save every completed image; retrieve each returned URL or decode its Base64 contents.

Retain the complete response and headers, every actual output, original returned identifiers and all usage fields. Recover the original operation without submitting creation again.

If the original response needs checking

Keep the returned X-Client-Request-ID for reconciliation. Read only actual returned task_id/asset_id values or the owned media library; never build a task URL from the operation ID and never resubmit creation.

Response fields
FieldType
FieldcreatedType
Fielddata[].urlType
Fielddata[].b64_jsonType
FieldusageType

Aliases

Model aliases

Ailoot Ultra krea/krea-2-medium

Method path aliases

/v1/images

Related caller IDs

krea/krea-2-medium

FAQ · Krea: Krea 2 Medium
What inputs and results are available?

POST /v1/images/generations · krea/krea-2-medium: text, image → image

Which fields does the request use?

POST /v1/images/generations · krea/krea-2-medium: model, prompt, resolution, aspect_ratio, input_references, provider

More details

Connect Ailoot to Claude Code, OpenCode, Hermes or your own app.

The company and its project portfolio

The company and its project portfolio: millions of customers; monthly sales in the billions.

Buy tokens at a discount.

Subscription discounts for regular use. Promo codes offer up to 50% off token purchases.

Subscription
Choose a discounted plan for your regular requests.
Promo code: up to 50% off
Enter your code at checkout. The price updates to reflect the current promotion.
Spending in your history
The model, tokens and amount are recorded for each request.

Choose a subscription · View model prices

Connect the API to a product you sell.

Use Ailoot in SaaS, apps and bots under its official service offer and licence agreement. Request a reseller licence for resale.

Commercial application
Add text, image, video and audio generation to paid features in your service.
Reseller licence
Send a description of your project and how you provide access. Request written terms for use and resale.
Documents on the website
The service offer, licence agreement and data processing policy are available before you connect.

Request a reseller licence · Service offer and licence agreement