> ## Documentation Index
> Fetch the complete documentation index at: https://www.krea.ai/docs/llms.txt
> Use this file to discover all available pages before exploring further.

# Moodboards

> Steer a Krea 2 generation with a moodboard of reference images to lock in palette, texture, lighting, mood, and composition across every API request.

A moodboard is the most precise way to set a visual direction with Krea 2. Moodboards are groups of images that share an overall creative direction — palette, texture, style, mood, or composition. You build one in the Krea webapp, then reference it from the API.

> [!WARNING]
>
> **Moodboards must be created in the Krea webapp first.** The API references existing moodboards by ID; it does not create them.

## Examples

Each example shows the **moodboard** on the left and the **generated output** on the right. Click any moodboard cover to open it in Krea.

[![Moodboard for flying whale](https://s.krea.ai/docs/krea-2/moodboard-flying-whale-cover.webp)](https://www.krea.ai/moodboards?share=1e51738c-7413-469e-93b6-ad50db460a1f)

![Output: a flying whale](https://s.krea.ai/docs/krea-2/moodboard-flying-whale-out.webp)

Prompt: *a flying whale with small fish swimming around her in the air*

[![Moodboard for samurai mask](https://s.krea.ai/docs/krea-2/moodboard-samurai-mask-cover.webp)](https://www.krea.ai/moodboards?share=2ab1e2e1-b561-4fc5-8bf1-0250a948f22f)

![Output: a samurai mask](https://s.krea.ai/docs/krea-2/moodboard-samurai-mask-out.webp)

Prompt: *a samurai mask*

[![Moodboard for chrome jaguar teeth](https://s.krea.ai/docs/krea-2/moodboard-jaguar-chrome-cover.webp)](https://www.krea.ai/moodboards?share=98930754-e374-4ef8-837a-8fa2daaa0df7)

![Output: jaguar with chrome teeth](https://s.krea.ai/docs/krea-2/moodboard-jaguar-chrome-out.webp)

Prompt: *extreme close-up of a jaguar's mouth with chromed teeth, side view*

[![Moodboard for house of ramen](https://s.krea.ai/docs/krea-2/moodboard-ramen-house-cover.webp)](https://www.krea.ai/moodboards?share=5ef5c53c-af9a-4fc1-8602-01dba7da0250)

![Output: a house made of ramen](https://s.krea.ai/docs/krea-2/moodboard-ramen-house-out.webp)

Prompt: *a house made of ramen*

## How it works

**1. Create a moodboard in Krea**

Open [krea.ai](https://www.krea.ai/), create a new moodboard, drop in the images that share your creative direction, and save it.

**2. Get the moodboard ID**

Open the [API playground](https://www.krea.ai/app/api/playground) — your saved moodboards are listed there with their IDs. You can also grab one from a moodboard's share URL: `https://www.krea.ai/moodboards?share=<id>` — the UUID after `?share=` is the ID.

**3. Reference it from the API**

Pass the UUID as `id` in the `moodboards` array, along with a `strength` between -0.5 and 1.5. Use it with `krea-2/medium` or `krea-2/large`. Start around `0.35` and tune up if you want the moodboard to dominate the output.

## Code example

```javascript Node.js theme={"theme":{"light":"github-light-default","dark":"vesper"}}
// npm install @krea-ai/sdk
import { Krea } from "@krea-ai/sdk";

const krea = new Krea({ apiKey: process.env.KREA_API_KEY });

const result = await krea.subscribe("image/krea/krea-2/large", {
  input: {
    prompt: "A campaign image for a new outdoor lamp collection",
    aspect_ratio: "16:9",
    resolution: "1K",
    creativity: "high",
    // From a share URL like https://www.krea.ai/moodboards?share=<id>
    moodboards: [{ id: "1e51738c-7413-469e-93b6-ad50db460a1f", strength: 0.35 }],
  },
});

console.log(result.data?.urls[0]);
```


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.