---
name: claila
description: Generate images, videos, music and voice-overs with CLAILA (FLUX, Nano Banana 2, Kling, Wan, MiniMax, ElevenLabs) and call GPT, Claude, Gemini, Grok or Mistral, billed in the user's CLAILA credits. Use when the user asks to create or edit visual, video or audio content, especially for social media posts.
---

# CLAILA

Prefer the CLAILA MCP server when it is connected (`https://api.claila.com/mcp`): tools `generate_image`, `edit_image`, `remove_background`, `upscale_image`, `generate_video`, `get_generation`, `generate_music`, `text_to_speech`, `chat`, `list_models`, `get_account`.

Without MCP, call the REST API at `https://api.claila.com/v1` with `Authorization: Bearer $CLAILA_API_KEY`.

## Social media presets

- `instagram_post`: Instagram post 4:5
- `instagram_square`: Instagram square 1:1
- `story_reel`: Story / Reel / TikTok 9:16
- `youtube_thumbnail`: YouTube thumbnail 16:9
- `pinterest`: Pinterest pin 2:3
- `linkedin`: LinkedIn / Facebook link 1.91:1

## Choosing a model

- Photo-like images: `flux-2-pro` (default). Drafts: `flux-schnell`.
- Text inside the image (posters, quotes, infographics) or reference images: `nano-banana-2`.
- Edit or combine existing images: `edit_image` / `nano-banana-2`, `flux-2-pro-edit`, `flux-kontext`.
- Video from text: `kling-2.6-pro`. Animate a picture: `wan-2.2`.

## Models and prices

- `flux-2-pro` (image, 3 credits per image up to 1 megapixel; 2 MP costs double): Photorealistic images, products, people and scenes. Best default for social media photos.
- `flux-pro-ultra` (image, 5 credits per image (up to 4 MP)): High resolution FLUX up to 4 megapixels, for prints and large banners.
- `flux-schnell` (image, 1 credits per image): Fast and cheap drafts. Use it to explore ideas before a final render.
- `nano-banana-2` (image, 6 credits per image at 1K; 2K = 9, 4K = 13 credits): Google Gemini image model. Best for readable text in images, posters, infographics and editing with reference images.
- `flux-2-pro-edit` (image, 5 credits per image): Edit or combine up to 4 images with an instruction ("put this product on a marble table").
- `flux-kontext` (image, 4 credits per image): Precise single-image edits that keep the subject: change background, clothes, style or text.
- `remove-background` (image, 2 credits per image): Transparent PNG cut-out of the main subject.
- `upscale` (image, 3 credits per image (2x or 4x)): Sharper, larger image (2x or 4x).
- `kling-2.6-pro` (video, 54 credits per 5 s video with sound; 10 s = 108; without sound 27 / 54): Cinematic text-to-video with generated sound (audio: false halves the price). 5 or 10 seconds, 16:9, 9:16 or 1:1.
- `wan-2.2` (video, 8 credits per 5 s video, 720p): Animate a still image into a 5 second clip.
- `minimax-music-2.6` (audio, 12 credits per song with vocals): Full songs with vocals from a style prompt and optional lyrics.
- `elevenlabs-music` (audio, 48 credits per 60 s track): Studio quality 60 second music track, optionally instrumental.
- `stable-audio-3` (audio, 3 credits per clip up to 30 s): Sound effects, loops and short instrumentals.
- `tts` (audio, 3 credits per each 1000 characters): Natural voice-over from text.

## REST quick reference

```bash
# image (sync, returns URLs valid 7 days)
curl https://api.claila.com/v1/images/generations -H "Authorization: Bearer $CLAILA_API_KEY" -H "Content-Type: application/json" \
  -d '{"model":"flux-2-pro","prompt":"...","preset":"instagram_post","n":1}'

# any model; video and music are async: poll GET https://api.claila.com/v1/generations/{id}
curl https://api.claila.com/v1/generations -H "Authorization: Bearer $CLAILA_API_KEY" -H "Content-Type: application/json" \
  -d '{"model":"kling-2.6-pro","prompt":"...","aspect_ratio":"9:16","wait":60}'

# balance
curl https://api.claila.com/v1/credits -H "Authorization: Bearer $CLAILA_API_KEY"
```

## Rules

- Every call costs credits. Before many generations, check `get_account` or `GET /v1/credits`.
- HTTP 402 means no credits or no payment method: give the user the `billing_url` from the error.
- Results are saved in the user's CLAILA library (https://app.claila.com/assets).
- Never request sexual content, content with minors, or real people in compromising situations; the providers' safety filters refuse it and the call is not billed.
