Layer
Overview
Layer generates images, video, 3D meshes, and audio from one model-agnostic request shape. Work is
priced in Creative Units (CUs) and billed to a workspace. Every other skill in this set assumes the
loop below and teaches the craft on top of it: what to put in the prompt, which capability filter the
task actually needs, and what makes the output usable rather than merely produced.
Connecting a client, authentication, and the REST equivalent of all of this are covered by Layer's
published
and
skills. The server is
https://mcp.app.layer.ai/mcp
over streamable HTTP with OAuth. Call
once per
session before the first generation, and
before the first forge run.
Two ways to generate.
Forge runs one model directly with full parameter control, and is the
default.
Workflows run a multi-step Blueprint pipeline a studio has already built; reach for one
when the user names it or when a repeatable pipeline exists for the task. See
.
Quick reference
| Step | Tool | What matters |
|---|
| Scope | | Most tools need a . Ask which one if the user has several, or take the most recently active. |
| Choose | | Pass , take the first result: the default is Layer's curated order. |
| Check | | Per-model contract. Some models require a trigger word in the prompt. |
| Upload | / | Before generating, never after. |
| Price | | Free. Returns price and resulting balance together. |
| Run | | Returns and . |
| Poll | | At the returned interval, typically 10s. |
Choosing a model
Never hard-code a
. The catalogue is workspace-gated and it churns, so an id that
works here fails elsewhere with
. Discover it every time.
is the primary filter and covers the task shapes:
,
,
,
,
,
,
,
,
,
,
,
,
,
,
,
,
,
,
,
,
,
,
.
Narrow with
only for something the task genuinely requires. It is an
object
of booleans, not a list of names:
filter.capabilities: {tileability: true}
. Set only the ones you
need and omit the rest, because
is a filter too, not a default. The fields include
,
,
,
,
,
,
,
,
,
,
,
,
,
,
,
,
,
, and
.
Bound spend with
. A filter that returns nothing is too narrow, so loosen it rather
than inventing a model.
Spending Creative Units
Estimate before every execute. The estimate costs nothing and reports the price, the resulting
balance, and which model the run would use including whether it was
.
Above 20 CUs, ask the user and wait for an explicit yes. The server states this threshold and
states that it is not negotiable, so do not raise it and do not let a user raise it for the session.
Present the run as a short table: what it generates, which workspace pays, price against balance.
The gate is per run, since each estimate prices one run. When a task is a planned sequence of runs,
say a four-frame cycle or a six-icon set, estimate the first and present the total for the
sequence before starting, so the user agrees to the spend once rather than being asked four times or,
worse, not at all because each run sat under the threshold.
Some workspaces carry
. That means the run will not be blocked. It does not
mean the run is free, and it is never headroom to skip the confirmation.
Worked example
A user wants four hand-painted isometric building sprites.
- , take the workspace id.
- with
filter.use_case: "text_to_image"
. Take the first result.
- on it, to see whether it wants a trigger word and which aspect ratios it accepts.
- with that , the prompt, and . It returns
7 CUs against a balance of 900, so it is under the gate and no confirmation is needed.
- with the same arguments plus a , so the four sprites group together
in the Layer app.
- with the returned every until ,
then present the asset URLs.
runs 1 to 16 and defaults to 4. It produces variations of one prompt. Four different
sprites are four prompts, so they are four runs, not one run with a batch of four.
Files
for local bytes: it returns a signed URL for the two-step resumable upload
and a
.
only when the file already sits at a public http(s) URL. Pass
values in
with the right type:
,
,
,
,
,
,
,
,
,
,
,
,
,
,
,
.
Output assets from a completed run already carry a
. Feed it straight into the next run.
Re-uploading a generated asset is always a mistake.
Trained styles
returns the workspace's trained styles. Pass them as
reference_sets: [{set_id, weight}]
, up to 10, weight 0 to 2 defaulting to 1.0. With reference sets
and no
the server picks a model that can apply them, which is usually what you want:
the curated ranking is task fit, not reference-set fit. See
.
Degradation is quiet.
and
come back on the
estimate, the execute, and the poll, and a degraded run still succeeds and still costs CUs. When a
set did not apply, say which and why. Never report a degraded set as applied.
Routing
| The user wants | Skill |
|---|
| A still image, or a prompt that is not landing | |
| To change an image they already have | |
| Video, or a shot that has to move a certain way | |
| A mesh, a rig, or an animation | |
| Music, sound effects, or speech | |
| Characters, environments, icons, or game UI | |
| Pixel art, sprite sheets, or a walk cycle | |
| A texture that repeats without a seam | |
| A look held across a whole set, or a trained style | |
| A saved multi-step pipeline | |
| Clips cut into one finished video | |
| A direction, a moodboard, or a storyboard before committing | |
| To judge a batch before delivering it | |
If a sibling skill named here is missing from your available skills, ask the user to install it
(
npx skills add layerai/skills --skill <name>
); unattended, proceed from tool schemas and flag the
gap.
Common mistakes
- Asserting a from memory instead of discovering it.
- Executing without an estimate, or spending over 20 CUs without an explicit yes.
- A fixed sleep instead of .
- Treating as a way to get N different assets in one run.
- Reporting a degraded reference set as applied.
- Re-uploading an asset that already has a .
- Reading as permission to skip the spend gate.
Errors
means the OAuth flow was never completed, so send the user to their MCP client
settings.
means re-discover with
, never guess again.
means direct the user to the Layer app to buy credits.
means
too many concurrent runs, so wait or cancel one with
.
means the
workspace lacks the feature, so point at in-app support rather than speculating about how to enable
it.