PixMind Docs
API ReferenceImage ModelsKrea 2 Turbo

Krea 2 Turbo API

Krea 2 Turbo API reference

Fast text-to-image generation with flexible aspect ratios, deterministic seeds, and 1K or 2K output.

Provider

Krea

Model ID

krea-2-turbo

Endpoint

POST /api-platform/v1/generations

Model notes

    Request parameters

    ParameterTypeRequiredDescription
    modelstringYes

    Stable PixMind model ID. Use `krea-2-turbo`.

    Allowed values: krea-2-turbo

    promptstringYes

    Natural-language generation or editing instructions.

    resolutionstringNo

    Output resolution tier. This field affects request pricing.

    Allowed values: 1K, 2K

    Default: 1K

    aspectRatiostringNo

    Requested output aspect ratio.

    Allowed values: 1:1, 4:3, 3:4, 5:4, 4:5, 2:3, 3:2, 9:16, 16:9, 1:2, 2:1

    Default: 1:1

    Request example

    cURL
    curl https://aihub-admin.aimix.pro/api-platform/v1/generations \
      -H "Authorization: Bearer $PIXMIND_API_KEY" \
      -H "Content-Type: application/json" \
      -d '{
      "model": "krea-2-turbo",
      "prompt": "A polished campaign image with clean composition and controlled lighting",
      "resolution": "1K",
      "aspectRatio": "1:1"
    }'
    JavaScript
    const response = await fetch("https://aihub-admin.aimix.pro/api-platform/v1/generations", {
      method: "POST",
      headers: {
        "Authorization": `Bearer ${process.env.PIXMIND_API_KEY}`,
        "Content-Type": "application/json"
      },
      body: JSON.stringify({
      "model": "krea-2-turbo",
      "prompt": "A polished campaign image with clean composition and controlled lighting",
      "resolution": "1K",
      "aspectRatio": "1:1"
    })
    });
    
    const task = await response.json();

    Accepted task response

    Generation is asynchronous. Save taskId and poll GET /api-platform/v1/tasks/{taskId} until status is ready or failed.

    200 OK
    {
      "code": 1000,
      "data": {
        "id": "img_44160",
        "taskId": 44160,
        "type": "image",
        "model": "krea-2-turbo",
        "status": "processing"
      }
    }

    API pricing

    ConfigurationPrice
    1K$0.010 / image
    2K$0.030 / image

    API pricing uses the apiPlatform role and is separate from PixMind Studio credits. The accepted task response is the final pricing snapshot.