Please rotate your device

To continue exploring this website, please rotate your device to a vertical orientation

Krea 3

Krea/Krea 3

A fast image editor that combines up to eight references, makes precise scene-preserving changes, and generates images from prompts in native 2K.

image generation

Krea 3 is Krea’s fast AI image-editing model. It can combine up to eight reference images in one edit (e.g., such as placing products or people from separate photos into a scene) while preserving the original composition and details. It offers two thinking modes, fast and high, for different editing needs. ⁠⁠

Krea 3

You can also change one part of an image while keeping the rest intact, carry a style across edits, or reuse a design template for new variations. We recommend 2K as the default resolution; 1K is also available.

Input

bash
RESPONSE=$(curl -sS -X POST \
  "https://model-${MODEL_ID}.api.baseten.co/environments/production/predict" \
  -H "Authorization: Api-Key $BASETEN_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "prompt": "turn this into a watercolor painting",
    "image_urls": ["https://www.krea.ai/ethereal-houses.jpg"],
    "thinking_mode": "fast",
    "resolution": "2k"}')
JOB_ID=$(echo "$RESPONSE" | jq -r '.job_id // empty')

if [ -z "$JOB_ID" ]; then echo "$RESPONSE"; else
  while true; do
    JOB=$(curl -s https://api.krea.ai/jobs/$JOB_ID -H "Authorization: Bearer $KREA_API_KEY")
    case "$(echo "$JOB" | jq -r '.status // empty')" in
      completed|failed|"") echo "$JOB" | jq; break ;;
    esac
    sleep 2
  done
fi