Skip to content

API changelog

Dated changes to the Layer REST API and MCP servers, newest first. This changelog covers API-surface changes (new versions, new endpoints and tools, breaking changes, deprecations). For SDK changes, see the SDK’s own release notes.

2026-11-28: Features a workspace is not entitled to

Section titled “2026-11-28: Features a workspace is not entitled to”
  • New: a request that uses a feature the workspace is not entitled to (by its plan, or by its contract with Layer) returns 403 FEATURE_NOT_ENTITLED, with the feature and the reason in data. This covers starting a workflow run, a training run or an agent turn (send_agent_message), listing or getting trends, and file and channel exports. API and MCP generations are never refused for this.
  • Changed: POST /v1/workspaces/{workspace_id}/events/exports and reading an export need the workspace entitled to audit logs, which the Enterprise plan includes; otherwise they return 403.

2026-11-27: Rewrite a prompt a content check refused

Section titled “2026-11-27: Rewrite a prompt a content check refused”
  • Added: POST /v2/workspaces/{workspace_id}/inferences/{inference_id}/prompt-rewrite returns a refused run’s prompt with each named character, game, studio, brand and logo replaced by a plain description, and the names it replaced. A run that was not refused for its prompt returns 422 REFUSAL_NOT_REWRITABLE.
  • Changed: for a run refused for its prompt, get_forge_run’s error now says how to rewrite a prompt that names a character, game, studio or brand, and to offer another model or a changed prompt when it names none.

2026-11-25: list_workflows says it lists published workflows

Section titled “2026-11-25: list_workflows says it lists published workflows”
  • Changed: the list_workflows MCP tool’s description now says it lists only published workflows, and that a draft that was never published does not appear. What it returns is unchanged.

2026-11-23: price a Layer tool form before it is filled in

Section titled “2026-11-23: price a Layer tool form before it is filled in”
  • Changed: POST …/inference-tools/{inference_tool_key}/inferences/estimate prices a form as it stands, as the Layer app does. The body may leave out a prompt, the files of a file slot (such as a try-on’s garment), a relight’s lighting, a camera move, or a reference set the model needs, which are no longer refused with INVALID_INPUTS, PROMPT_REQUIRED, MISSING_REQUIRED_GUIDANCE_FILE, REFERENCE_SET_REQUIRED or the like. A few inputs a provider’s own check needs are still required, such as a dub’s target_language. A prompt shorter than the model takes is accepted for pricing and no longer refused with PROMPT_TOO_SHORT. Where the price does not depend on what is missing or short, the estimate is the completed run’s price; a price that reads the input itself, such as speech priced by the length of its text, is that of the input as given. Every other value the body gives is checked as before, a prompt longer than the model takes included, and the source is still needed where the schema says x-source.required. The run is unchanged: it refuses a form with a required input left out, and a prompt shorter than the model takes.

2026-11-20: approving an agent’s spend over MCP

Section titled “2026-11-20: approving an agent’s spend over MCP”
  • New: confirm_agent_spend approves or declines a run an agent waits on because it costs more than the spend confirmation threshold. The turn carries on with the answer, recorded as the user’s own.
  • Changed: get_agent_response returns such a run as pending_spend (its confirmation_id, Creative Units, model, output count and description), with the cost in reply. An agent over MCP asks for this approval where it refused the run before.

2026-11-19: a reframe places its source in the frame

Section titled “2026-11-19: a reframe places its source in the frame”
  • New: POST …/inference-tools/{inference_tool_key}/inferences, its /estimate and the MCP tool run_inference_tool take source_transform on an image reframe, saying where the source sits in the new frame: rotate turns it clockwise about its center, then crop draws the frame over it in its own pixels, a negative origin or a box past its edges being the area the model fills. The frame keeps the size input.aspect_ratio sets, and the crop takes its shape to within 1.5%; on an AUTO aspect ratio the crop is the frame. An estimate takes it with source_size too. A source_transform on a tool that is not an image reframe, or without a source, is refused with INVALID_INPUTS naming source_transform in field, and a crop off the frame’s shape names source_transform.crop. See Placing a reframe’s source.

2026-11-19: an AI policy control for Layer’s invisible watermark

Section titled “2026-11-19: an AI policy control for Layer’s invisible watermark”
  • New: the invisible_watermark_enabled AI policy control turns on Layer’s invisible watermark for a workspace’s generated images, video and audio. Workspaces only, every plan, off by default. Marking is best effort: an output it cannot mark in time, or in a format it does not mark, is delivered without it. It is read and written with the other controls on the AI Policies endpoints. See Content credentials and watermarks.

2026-11-19: every member’s usage and usage caps

Section titled “2026-11-19: every member’s usage and usage caps”
  • New: GET /v2/workspaces/{workspace_id}/members/usage (listWorkspaceMemberUsage) lists the Creative Units each member spent over a date window, per day or per month, a page at a time. Each member reads as getWorkspaceMemberUsage does. Requires billing admin.
  • New: member usage carries limits, the usage caps the member meters against now, with their spend in each cap’s current period and whether they are ok, warning or blocked. Empty below Enterprise. getWorkspaceMemberUsage returns it too.

2026-11-18: agents report feedback over MCP

Section titled “2026-11-18: agents report feedback over MCP”
  • New: the MCP server’s report_feedback tool sends the Layer team feedback from an agent: a capability no tool offers, a tool that failed or answered wrongly, a description or error that was unclear, or something that worked well. It takes a kind, a one-sentence summary, and optional details, tool_name and workspace_id.

2026-11-17: a masked edit returns its whole frame or layers

Section titled “2026-11-17: a masked edit returns its whole frame or layers”
  • New: POST …/inference-tools/{inference_tool_key}/inferences, its /estimate and the MCP tool run_inference_tool take masked_edit_output beside mask_file_id, saying what the masked edit returns: composite, the default and what a masked run returned before, blends the edit into the source; whole_frame returns the model’s whole output with nothing blended into it, for you to mask; layers returns a layered PSD, the source below and the model’s whole output above it with the mask as its layer mask. A masked_edit_output without a mask, or on a tool or model whose schema doesn’t say x-source.takes_mask, is refused with INVALID_INPUTS, naming masked_edit_output in field. See Running a tool.

2026-11-17: a reference set’s Recraft style counts as applied

Section titled “2026-11-17: a reference set’s Recraft style counts as applied”
  • Fixed: a reference set trained on Recraft V4 now reports its trained style as applied on the Recraft model it was trained for: lora_applied is true, reference_sets_degraded is false and no reference_sets_warning is returned, on the MCP server’s estimate_forge_price, execute_forge and get_forge_run and on the REST generation and estimate responses. Before, the style was applied to the run but the set was reported as degraded, with the warning that the model “has no compatible way to apply it”.
  • Changed: lora_applied in reference_set_contributions covers any trained finetune of the set, a LoRA or a Recraft style.

2026-11-17: a run takes the AI policy’s defaults for what it leaves out

Section titled “2026-11-17: a run takes the AI policy’s defaults for what it leaves out”
  • Fixed: a run of a Layer tool on POST …/inference-tools/{inference_tool_key}/inferences and its estimate, run_inference_tool on the MCP server, and a run of a base model on POST …/base-models/{slug}/inferences, with or without inference_tool_key, take the model’s default from the AI policy in force for the run for a field the body leaves out, whether the workspace, the project, the caller’s groups or the caller’s member policy sets it, as the Layer app does. They took the form’s own default instead, so a policy default for a field the form already defaults, such as aspect_ratio, transparency or use_web_search, never applied, and the estimate priced the run without it. A value the body sends still wins, a value the tool fixes stays the tool’s, an edit that sends no size still keeps its source’s shape, and a policy default the model no longer accepts is skipped.
  • Fixed: POST …/inferences and its estimate, and execute_forge and the forge estimates on the MCP server, leave transparency unset when the body leaves out transparency or remove_background, so the AI policy’s transparency default for the model applies. A run that left it out asked for an opaque output, whatever the policy said. An explicit false stays false, and a background-removal model still takes no transparency, whatever the policy sets.

2026-11-17: price a Layer tool edit before its source is uploaded

Section titled “2026-11-17: price a Layer tool edit before its source is uploaded”
  • New: POST …/inference-tools/{inference_tool_key}/inferences/estimate takes source_size in place of source_file_id: the width and height in pixels of an image or video source that is not uploaded yet, and a video’s duration_seconds. The run is priced as it would be with a file of that size, so a form can show the price before it uploads the source. source_size stands in for the source alone: a masked edit takes its mask as an uploaded file, by mask_file_id, and on some models the mask changes the price. A body with both source_file_id and source_size is a 422 with INVALID_INPUTS and field source_size; so is source_size for a tool that works on audio or a 3D model.
  • Changed: POST …/inference-tools/{inference_tool_key}/inferences refuses source_size with a 422, INVALID_INPUTS and field source_size: a run needs the uploaded file.
  • Changed: on the run and the estimate, a source given to a tool that takes none, or to a model that takes none for the tool, is refused with field naming the source field sent: source_file_id, or source_size on the estimate.

2026-11-12: a game’s project from its store listings over MCP

Section titled “2026-11-12: a game’s project from its store listings over MCP”
  • New: create_project_from_app_listing creates a project for a published game from its App Store, Google Play and Steam listings, with a product for the game carrying its store identifiers: the same import the Layer app runs to create a project from a game’s store listing. The game’s brand is imported onto the project in the background as reference sets and a brand-book skill; get_project lists the reference sets once they land.
  • New: create_product adds a product (an app with its store identifiers, a website, or a Shopify item) to an existing project.
Section titled “2026-11-12: creative trends weight ads by launch date”
  • Changed: GET …/workspaces/{id}/trends and the MCP list_trends tool count an ad as recent when it launched in the last four weeks, by the ad library’s start date, falling back to when Layer first saw it. Long-running ads that Layer starts tracking no longer count as new when their launch date is known.

2026-11-12: Manage a project’s products through REST and MCP

Section titled “2026-11-12: Manage a project’s products through REST and MCP”
  • New: GET and POST /v2/workspaces/{workspace_id}/projects/{project_id}/products, and GET, PATCH and DELETE …/products/{product_id}, list, create, read, update and delete the products a project advertises: a game or app with its App Store, Google Play and Steam IDs, a website, or a Shopify item. Reads take the projects:read scope and writes projects:write; a product of an archived project can be read but not changed (PROJECT_ARCHIVED).
  • New: the MCP tools update_product and delete_product change and remove a project’s products from an agent, alongside create_product. get_project lists a project’s products.
Section titled “2026-11-11: creative trends ordered by new ads”
  • Changed: GET …/workspaces/{id}/trends and the MCP list_trends tool order creative trends by how many ads show them, with ads first seen in the last four weeks counting 21 times as much as older ones. A trend that keeps appearing in new ads climbs faster than one whose ads were all first seen months ago.
  • New: POST …/inference-tools/{inference_tool_key}/inferences/estimate and POST …/workspaces/{id}/inferences/estimate accept session_name, and price the run in the project of the most recent active session with that name, or in the workspace when none has it.
  • Fixed: a run that names a session only by session_name now picks its model, defaults and checks under the policy of that session’s project, as an estimate with the same name does. Before, the estimate and the model choice used the workspace’s policy and only the launch used the project’s, so the price quoted could differ from the price charged.

2026-11-11: Upload 3D meshes through REST and MCP

Section titled “2026-11-11: Upload 3D meshes through REST and MCP”
  • Changed: POST /v2/workspaces/{workspace_id}/files/upload-url and the MCP tools request_file_upload_url and upload_file accept 3D meshes: model/gltf-binary, model/gltf+json, model/obj, model/stl, model/ply and application/fbx, up to 100 MB. An OBJ, STL, PLY or glTF is converted into a GLB after upload, keeping the original; a .gltf must embed its buffers and textures. REST took only GLB before, and MCP took no mesh.
  • Changed: when the upload cannot be prepared for processing, these calls fail with UPLOAD_FAILED (REST: 502) and leave no file behind, instead of returning a file_id that would never finish processing.

2026-11-10: a Layer tool’s schema describes its source field

Section titled “2026-11-10: a Layer tool’s schema describes its source field”
  • New: x-source on a Layer tool’s schema (GET …/inference-tools/{inference_tool_key}/inference-schema, and input_schema from get_inference_tool on the MCP server) carries x-layer: the source as the Layer app draws it, with the field’s label, the files it takes and its place in the form. A client can draw an edit’s form, its source included, from the schema alone. See Reading a tool’s schema.
  • Changed: x-layer.order on an edit’s properties counts the source in its place, so the source sorts among them. The properties keep their relative order; a property after the source has an order one higher than before.
  • New: the invitations the management MCP server returns (create_invite, resend_invite, revoke_invite, list_invites) carry a message: the inviter’s personal note, quoted in the invitation email and shown in the welcome after joining. It is null when the invitation has none.

2026-11-10: a forge run names the file it cannot find

Section titled “2026-11-10: a forge run names the file it cannot find”
  • Changed: execute_forge and estimate_forge_price on the MCP server name the file in a FILE_NOT_FOUND error, as in “File <id> not found in workspace.”, so a caller with several input files knows which one to replace. The error said only “File not found.”

2026-11-10: listing sessions that hold an agent conversation

Section titled “2026-11-10: listing sessions that hold an agent conversation”
  • Changed: list_chat_sessions lists only the sessions that hold a conversation with a Layer agent. Pass include_sessions_without_turns to also list the sessions that hold only generations; start a conversation in one with send_agent_message.
  • Changed: get_agent_response on a session with no agent conversation says there is no turn to read.

2026-11-10: Virtual try-on groups its garment with the person

Section titled “2026-11-10: Virtual try-on groups its garment with the person”
  • Changed: the schema of image.try_on (GET …/inference-tools/image.try_on/inference-schema, and input_schema from get_inference_tool on the MCP server) puts the garment field in the group tryOn (“Person and garment”) in its x-layer.group, as a model’s own fields carry one, so a form can draw the garment beside the person the tool takes as its source. A render hint only: what a run takes is unchanged.

2026-11-09: an inference run’s webhook is checked before its session

Section titled “2026-11-09: an inference run’s webhook is checked before its session”
  • Changed: POST …/workspaces/{id}/inferences checks its webhook before it finds or makes the session session_name names, as the Layer tool run does, so a URL refused with a 422 leaves no new session behind.
  • Changed: its expected_events says what can arrive. The list is narrowed by webhook.events; of the outcome events, only the one that ends the run arrives; and the scoring events, listed where the scope scores automatically, are left out when the rules cannot be read at submission though they may still arrive.

2026-11-09: answering a card the Layer app is waiting on over MCP

Section titled “2026-11-09: answering a card the Layer app is waiting on over MCP”
  • Changed: get_agent_response reads a turn waiting on a card in the Layer app as completed, with the card in reply: a question card’s questions, a form card’s fields, or a priced plan with pending_plan. list_chat_sessions shows the same status. Such a turn read working until someone answered the card in the app; answered there, it still carries on and reads working again.
  • Changed: send_agent_message on that session answers the card in words: the waiting turn is stopped and the message starts the next turn, where TURN_IN_PROGRESS refused it before.

2026-11-09: continuing a session from the Layer app over MCP

Section titled “2026-11-09: continuing a session from the Layer app over MCP”
  • Changed: in get_agent_response and list_chat_sessions, a turn’s agent_id names only an agent list_agents offers. A session last answered by another agent in the Layer app shows no agent_id; pass an agent_id from list_agents to send_agent_message to continue it.
  • Changed: send_agent_message names the agents you can use when it refuses an agent_id (AGENT_NOT_FOUND) or a follow-up that needs one (INVALID_INPUTS).

2026-11-09: the three runs of a Layer tool agree

Section titled “2026-11-09: the three runs of a Layer tool agree”
  • Changed: an edit run that names a Layer tool, such as image.upscale, on POST …/workspaces/{id}/inferences (inference_tool_key in the body) or POST …/base-models/{slug}/inferences?inference_tool_key=… makes its outputs versions of its source, as POST …/inference-tools/{inference_tool_key}/inferences does, when the source is a file of the run’s workspace. They were standalone assets. Joining the source’s versions never fails a run: a source from another workspace, or one whose versions cannot be read, leaves the outputs standalone.
  • Fixed: an edit run on a model that takes its source as a reference, such as video.edit on seedance-v2.5-reference or image.edit on kling-image-o3, makes its outputs versions of the source on any of the three, and on run_inference_tool and execute_forge (with an inference_tool_key) on the MCP server. They were standalone assets. A reference set’s images beside the source only steer the edit; two references sent in the request, by ID or by URL, name no single source, and the outputs stay standalone.
  • Fixed: a video.camera_move run on any of the three, and run_inference_tool and execute_forge on the MCP server, makes its video a version of the image the camera flies around, as the Layer app does. It was a standalone asset.
  • Changed: an execute_forge run on the MCP server that names a Layer tool which makes something new, such as image.create with an input image, makes a standalone asset. It was a version of the input image when the model was one the image edit tools offer. A run that names no tool is unchanged.
  • New: an error about one request field names it in field, beside detail: for now, the value a Layer tool fixes on INFERENCE_TOOL_PIN_MISMATCH and the scale factor on INFERENCE_TOOL_UPSCALE_COPIES_SOURCE, on all three runs. See Error codes.
  • Docs: a tool key that names no tool is a 404 INFERENCE_TOOL_NOT_FOUND in a tool route’s path, and a 422 UNKNOWN_INFERENCE_TOOL in a run’s body or query. Error codes now says which is which.

2026-11-08: MCP initialize requires sign-in

Section titled “2026-11-08: MCP initialize requires sign-in”
  • Changed: the MCP server answers an initialize request without a bearer token with 401 and a WWW-Authenticate header naming its protected resource metadata, so a client starts the OAuth connection before using the server. Grok’s connectors connect this way. tools/list, resources/list and resources/read still answer without a token.

2026-11-08: MCP sign-in for clients that prefer another token endpoint method

Section titled “2026-11-08: MCP sign-in for clients that prefer another token endpoint method”
  • Changed: a client identified by a Client ID Metadata Document can sign in to the MCP server when its document lists none in token_endpoint_auth_methods_supported, even if its token_endpoint_auth_method names another method. It sends no client authentication to the token endpoint, as Layer’s authorization server metadata advertises. ChatGPT connects this way.

2026-11-08: Signed upload URLs return the headers they are signed with

Section titled “2026-11-08: Signed upload URLs return the headers they are signed with”
  • Added: upload_headers on the response of POST /v2/workspaces/{workspace_id}/files/upload-url and of the MCP request_file_upload_url tool: the headers to send, exactly as given, on the POST that starts the resumable upload (Content-Type, x-goog-resumable and x-goog-content-length-range).
  • Fixed: the upload instructions name x-goog-content-length-range: 0,<file_size_bytes>. The URL has always been signed with it, so a start request without it was refused with 400.

2026-11-07: 9-slice and sprite-sheet Layer tools

Section titled “2026-11-07: 9-slice and sprite-sheet Layer tools”
  • New: two image tools on GET …/inference-tools and the MCP list_inference_tools.
    • image.nine_slice makes a UI panel, button or frame and delivers it as a 9-slice: every run finds the stretchable band, makes the edges and center tile, and records the insets as the file’s nine_slice metadata.
    • image.sprite_sheet makes animation frames laid out on one sheet.
    • Both run only on models that deliver a raster image, so neither offers an SVG-only model.
  • New: the per-model form (GET …/base-models/{slug}/inference-schema) of a text-to-image model that delivers a raster has a nine_slice field, off by default, which the 9-slice tool sets on every run.

2026-11-07: a Layer tool names its run button

Section titled “2026-11-07: a Layer tool names its run button”
  • New: each tool from GET …/inference-tools, and from the MCP tools list_inference_tools and get_inference_tool, carries submit_label (what the Layer app’s run button says, such as Remove background) and progress_label (what a run says while it is in progress, such as Removing background).
  • New: POST /workspaces/{workspace_id}/invites invites an email address into a workspace. The address is emailed a link, valid for 14 days, and whoever follows it signed in with that address joins with the role given (role_id, or the workspace’s default). No Layer user is created and nobody joins until then. Inviting an address that already has an open invitation sends it a new link.
  • New: GET /workspaces/{workspace_id}/invites lists a workspace’s invitations with their status (pending, expired, claimed, revoked). POST …/invites/{invite_id}/resend emails one again with a new link, and DELETE …/invites/{invite_id} revokes it.
  • New: the management MCP tools create_invite, list_invites, resend_invite and revoke_invite do the same.
  • Deprecated: POST /workspaces/{workspace_id}/members and the management MCP tool invite_member, which add the address as a member at once. The endpoint keeps working until its sunset date, 2027-02-08, and its responses carry Deprecation and Sunset headers. Use POST /workspaces/{workspace_id}/invites and create_invite.

2026-11-06: animated GIFs and SVGs from GPT Image 2.6

Section titled “2026-11-06: animated GIFs and SVGs from GPT Image 2.6”
  • New: POST /v2/workspaces/{workspace_id}/base-models/{slug}/inferences, MCP execute_forge and estimate_forge_price take animated, animation_frame_count and animation_frame_duration_ms. On a model whose capabilities report animated_gif (GPT Image 2.6 Flare and Sunburst), animated: true makes a looping GIF of 2 to 16 frames, 20 to 2000 ms each, delivered as an image/gif file. width and height are each frame’s, and a size whose frames don’t fit what the model renders at once is scaled down to fit (up to 960px, or 720px from 10 frames). The run is billed on every frame’s megapixels, at least 1. Another model makes a still. A mask, tiling, a tile grid, a skybox, an output fit, nine-slice, parallax or an upscale can’t be combined with it, and is refused with INVALID_ANIMATION.
  • New: the same endpoint and tools take svg. On a model whose capabilities report svg_on_request (GPT Image 2.6 Flare and Sunburst), svg: true makes an image/svg+xml file, drawn from the prompt alone from a reference image of at most one megapixel, and billed as one megapixel. A model that reports vector_output always makes an SVG; another model makes a raster. Guidance images, an animation, a mask, tiling, a tile grid, a skybox, an output fit, nine-slice, parallax or an upscale can’t be combined with it, and are refused with INVALID_SVG.

2026-11-06: fade a timeline clip in and out

Section titled “2026-11-06: fade a timeline clip in and out”
  • New: every item of a render_video_timeline template takes optional fade_in_frames and fade_out_frames. The item fades from transparent at its start and to transparent at its end, and a video or audio item’s volume ramps with it. Both are scaled down to fit when together they exceed the item’s duration_in_frames, and a side that has a seam transition keeps the transition instead of its fade.
  • Changed: text items can carry seam transitions with an adjacent text, video or image item, as video and image items already could.

2026-11-05: hand whole jobs to Layer’s agents over MCP

Section titled “2026-11-05: hand whole jobs to Layer’s agents over MCP”
  • New: five MCP tools let your own agent hand a job, such as a playable ad or a motion-design video, to one of Layer’s managed agents and hold the conversation with it. list_agents lists the agents your AI policy allows, with what a build round costs in Creative Units and time. send_agent_message starts or continues a session and returns a turn_id at once; get_agent_response waits on the turn and returns the agent’s reply, its outputs and any pending_plan; cancel_agent_turn stops a turn; list_chat_sessions lists your sessions. A priced plan comes back as text for the user to approve, and each turn bills Creative Units as it does in the Layer app. A service account’s token needs the sessions:read scope to read and sessions:write to send. See Layer agents.
  • New: the SESSION_NOT_FOUND, AGENT_NOT_FOUND, TURN_NOT_FOUND, TURN_IN_PROGRESS and AGENT_UNAVAILABLE MCP error codes.

2026-11-05: members and groups name their role by ID

Section titled “2026-11-05: members and groups name their role by ID”
  • New: a member (GET, POST and PATCH /workspaces/{workspace_id}/members) and a group (/workspaces/{workspace_id}/groups) carry role_id and role_name, the role they hold or grant, custom roles included. The management MCP tools list_workspace_members, invite_member, suspend_member, reactivate_member and the group tools return the same two fields.
  • New: inviting or updating a member takes role_id, as creating a group and updating its role already did, and so do the management MCP tools invite_member, create_group and update_group_role. Find a role’s ID with list_roles.
  • Deprecated: role, the built-in role by key (admin, creator, member), on members and groups, in input and output. It still works: as input it names a built-in role, and as output it reads member for a member holding a custom role and is null for a group granting one. Use role_id.
  • Changed: role is a string in the OpenAPI description, no longer the Role enum.
  • Changed: PATCH /workspaces/{workspace_id}/groups/{group_id} takes role_id or role; send either as null to clear the group’s role.

2026-11-04: a forge run can name its Layer tool

Section titled “2026-11-04: a forge run can name its Layer tool”
  • New: on the MCP server, execute_forge takes an optional inference_tool_key, such as image.upscale, so the asset a forge run makes reopens in that tool in the Layer app. The run must be one the tool makes: a base_model_id from the tool’s models, with every value the tool fixes left as the tool sets it. A run that is not is refused with the code the REST runs use (UNKNOWN_INFERENCE_TOOL, INFERENCE_TOOL_MODEL_NOT_IN_POOL, INFERENCE_TOOL_PIN_MISMATCH and the rest). get_forge_run returns the run’s inference_tool_key, or null for a run made without a tool.

2026-11-04: a Layer tool’s list entry describes it as the Layer app does

Section titled “2026-11-04: a Layer tool’s list entry describes it as the Layer app does”
  • New: each tool in GET …/workspaces/{id}/inference-tools carries what the Layer app shows for it: concept (the icon, by concept name), prompt_placeholder, primary (an edit offered first on its asset type), keywords (the extra terms a search matches it by) and batches_outputs (whether a run can make more than one output). The MCP server’s list_inference_tools returns the same fields.

2026-11-04: a run names the tool it was made with

Section titled “2026-11-04: a run names the tool it was made with”
  • New: GET …/workspaces/{id}/inferences/{inference_id} returns inference_tool_key, the Layer tool the run was made with (such as image.upscale), beside the base_model_id it ran on, so a client can reopen a past run in its tool on its model. It is null for a run made without a tool. The webhook that delivers a run’s result carries it too, since its data is the same body.

2026-11-04: a tool’s schema marks the slots it can run once per file

Section titled “2026-11-04: a tool’s schema marks the slots it can run once per file”
  • New: in GET …/workspaces/{id}/inference-tools/{inference_tool_key}/inference-schema, a file slot the tool can run once for each of its files carries x-layer.batchable: true, such as image.edit’s reference images. A run takes every file it is given in one run, so for one run per file, as the Layer app runs them, send one run per file.
  • New: POST …/workspaces/{id}/inference-tools/{inference_tool_key}/inferences takes a webhook, as POST …/workspaces/{id}/inferences does: the run’s terminal events go to your URL instead of you polling for them. The response’s expected_events lists the events the run can deliver, narrowed by webhook.events: inference.completed, inference.failed and inference.cancelled, of which only the one that ends the run arrives, plus the scoring events where the scope scores automatically. A URL that is not public HTTPS (an http:// URL, a private address, localhost) is refused with a 422 before the run starts. See Webhooks.

2026-11-04: discovery answers for the project a run lands in

Section titled “2026-11-04: discovery answers for the project a run lands in”
  • Changed: GET …/workspaces/{id}/base-models, …/base-models/defaults, …/base-models/{slug}, …/inference-tools and …/inference-tools/{key}/inference-schema take project_id and session_id, and POST …/workspaces/{id}/inferences/estimate takes session_id as the run does. With either, the models listed, the defaults and the tools’ models are those a run in that project (or the session’s) gets: a project can allow fewer models than the workspace, or set other defaults. A session must be in the workspace and, with project_id, in that project; a project the caller cannot work in is refused as a session create refuses it (PROJECT_NOT_FOUND, PROJECT_ARCHIVED, PROJECT_ACCESS_DENIED). Without them, nothing changes.
  • Changed: on the MCP server, list_base_models, get_base_model, estimate_forge_price, list_inference_tools and get_inference_tool take project_id and session_id the same way, and estimate_training_price takes project_id as start_training does.

2026-11-04: LoRA rank only where the trainer takes one

Section titled “2026-11-04: LoRA rank only where the trainer takes one”
  • Changed: a training run’s lora_rank override is refused on FLUX.2 [dev], FLUX.2 [klein] 4B and 9B (and their Edit models), Qwen-Image, Qwen-Image 2512 and Krea 2 Turbo when they train on fal, whose trainers pick their own rank. Such an override was accepted and had no effect. Where one of these models also trains on ai-toolkit, that trainer still takes it.

2026-11-04: price a Layer tool run before you start it

Section titled “2026-11-04: price a Layer tool run before you start it”
  • New: POST …/workspaces/{id}/inference-tools/{inference_tool_key}/inferences/estimate prices a run of a Layer tool without starting it. The body is the run’s without session_name and webhook, and the run is built as POST …/inference-tools/{inference_tool_key}/inferences builds it, in the project of its session_id when it names one: the model you name or the tool’s default for you, the values the tool fixes, the source and mask by ID, and the reference sets. The response gives the price in Creative Units, the workspace’s balance before and after it, the base_model_id the run takes and what each reference set would contribute. A body the run would refuse is refused here with the same status and error_code. The run alone checks what the workspace has left when it starts: a run priced here can still be refused by your rate limit or a usage limit, or for the balance when has_sufficient_creative_units is false.
  • Changed: POST …/inference-tools/{inference_tool_key}/inferences, and run_inference_tool on the MCP server, apply a run’s reference sets before sizing it, as the Layer app does, so a run that sets no size can take it from a file a set adds. Before, such a run ignored those files when it was sized.
  • Fixed: POST …/workspaces/{id}/inferences/estimate sizes an edit that sets no size from its source before your project’s or workspace’s default aspect ratio applies, as the run does. Before, the default’s size was priced while the run generated at the source’s shape.
  • New: the MCP server runs Layer tools as the REST API does. list_inference_tools lists the tools you can run, with the models each runs on and its default; get_inference_tool returns a tool’s fields on a model as a JSON Schema; run_inference_tool runs it, polled with get_forge_run. A run lands in a session: it takes session_id, session_name or project_id, as execute_forge does.
  • Changed: on the MCP server, an empty session_name is refused as a blank one is (session_name cannot be blank), on execute_forge, execute_workflow, render_video_timeline and run_inference_tool. Such a run made no session.

2026-11-02: a member’s usage, and their caps in their AI policy

Section titled “2026-11-02: a member’s usage, and their caps in their AI policy”
  • New: GET …/workspaces/{id}/members/{principal_id}/usage returns the Creative Units one member spent in the workspace between start_date and end_date (inclusive UTC dates), in total and per bucket. granularity is day (the default: the last 30 days, at most 365) or month (the last 12 calendar months, at most 731 days); each bucket starts on its day or on the first of its month. Reading your own usage takes billing access, and another member’s takes billing admin.
  • Changed: PATCH …/ai-policy sets and lifts usage_caps, the Creative Units a member may spend per period, which takes the billing admin permission as well. On the management MCP server, patch_ai_policy does the same. A PUT or DELETE of a policy keeps its caps. See AI policies.
  • New: POST …/workspaces/{id}/inference-tools/{inference_tool_key}/inferences runs a Layer tool, such as image.upscale, on the base model you name in base_model_id, or on the tool’s default for you. input holds the fields of the tool’s schema, and the tool sets the values it fixes. An edit takes the file it works on as source_file_id, and the tools whose schema says x-source.takes_mask take a mask as mask_file_id; every file is given by ID. An edit that sets no size keeps its source’s shape, and a video reframe that sets no duration_seconds runs as long as its source clip, up to the longest source the model reads. reference_sets applies reference sets as POST …/workspaces/{id}/inferences does; a model that needs one, such as the ElevenLabs voice changer, refuses a run without it. batch_size asks for several outputs where the tool and the model make them. The response is that of …/base-models/{slug}/inferences plus the base_model_id the run takes and what each reference set contributed, and the asset the run makes reopens in the tool in the Layer app.
  • New: a run the tool cannot make is a 422: INFERENCE_TOOL_PIN_MISMATCH for a value the tool fixes, INFERENCE_TOOL_MODEL_NOT_IN_POOL for a model outside the tool, and INVALID_INPUTS, its detail naming the field, for a source the run needs or cannot take, a mask the tool or model takes none of, or a batch where one output is made. See Error codes.
  • Changed: POST …/workspaces/{id}/inferences with an inference_tool_key refuses a mask on a model that edits by reference, such as kling-image-o3 for image.edit, with a 422 whose error_code is INFERENCE_TOOL_MODEL_TAKES_NO_MASK. Such a model has no image to keep outside the mask, so the run ignored the mask and edited the whole image.
  • Changed: a subtitle font that is not a file ID is a 422 INVALID_INPUTS naming subtitle_font_file_id, on POST …/base-models/{slug}/inferences as on a tool run. It was a 500.
  • Changed: a workflow’s Reframe video node that sets no duration runs as long as its source clip, up to the longest source the model reads, and a Video edit node on ray-3-2 runs the length it offers nearest its clip’s. Both ran at the model’s default length, 5 seconds, whatever the clip’s length.
  • New: GET, PUT, PATCH and DELETE on …/workspaces/{id}/ai-policy, and on the same path under projects/{project_id}, groups/{group_id} and members/{principal_id}: read, replace, merge-patch or clear the AI controls a workspace, project, group or member sets itself (models, modalities, the agent and its subagents, per-model defaults, locks). A read returns what the scope sets and what it inherits, each inherited value with the scope that set it. See AI policies.
  • New: GET …/workspaces/{id}/ai-policies lists every policy stored in the workspace, filterable by kind.
  • New: GET …/workspaces/{id}/effective-ai-policy returns the controls in force for the caller’s work, or another member’s with principal_id, in a project with project_id.
  • New: on the management MCP server, patch_ai_policy and get_effective_ai_policy, beside get_ai_policy, set_ai_policy and clear_ai_policy, which now have reference pages.

2026-10-30: a tool’s form run takes the values the tool sets

Section titled “2026-10-30: a tool’s form run takes the values the tool sets”
  • Changed: on POST …/base-models/{slug}/inferences?inference_tool_key=…, a field you leave out takes the value the tool’s form sets: a value the tool fixes (such as Create texture’s tileability) and the default of a field the tool shows (such as Create skybox’s projection), except a prompt, which you always write. A skybox run that names no aspect_ratio takes the projection’s largest size. Before, such a run took the model’s own defaults, so a run of a tool that fixes a value was refused with INFERENCE_TOOL_PIN_MISMATCH unless it sent that value. A value you send is kept, so a changed fixed value is still refused.
  • New: POST …/workspaces/{id}/projects and PATCH …/workspaces/{id}/projects/{project_id} take visibility: workspace (the default on create) opens the project to every workspace member who holds the project permission, members keeps it to the project’s own members, with no exception for workspace admins. Every project read returns it. Only a member of the project can change it. A caller who can’t edit the project gets the usual 403 PROJECT_ACCESS_DENIED; a workspace admin outside a project open to the workspace can edit it, but changing its visibility is a 403 with error_code PROJECT_ACCESS_CHANGE_FORBIDDEN.
  • New: the same on the Management MCP server: create_project and update_project take visibility, and list_projects and get_project return it.

2026-10-29: a model’s form run files into a session by ID

Section titled “2026-10-29: a model’s form run files into a session by ID”
  • New: POST …/base-models/{slug}/inferences takes session_id as a query parameter, as POST …/workspaces/{id}/inferences takes it in its body: the run is filed in that session, which must belong to the workspace. It takes precedence over session_name. A session the caller cannot reach is a 422.

2026-10-29: a tool’s files by ID, and where it takes a mask

Section titled “2026-10-29: a tool’s files by ID, and where it takes a mask”
  • Changed: in GET …/inference-tools/{inference_tool_key}/inference-schema, a file field takes each file as {"file_id": …, "weight": …}: the ID of a file in the workspace or of a public file, never a URL.
  • New: an edit’s source in GET …/workspaces/{id}/inference-tools carries takes_mask: whether the tool can keep its edit to an area a mask marks. In a tool’s schema, x-source.takes_mask says whether a run on that base model can. A model that edits by reference has no image to restore outside the mask, so it takes none.
  • New: GET …/workspaces/{id}/trends lists the trends on Layer’s Trends page. type=creative, the default, lists hooks and formats distilled from mobile game UA video ads, most-matched first; type=top lists what is charting on public boards such as TikTok, YouTube and Google Trends, in rank order. source keeps to one board, and search searches titles, summaries, tags, genres and countries.
  • New: GET …/workspaces/{id}/trends/{trend_id} returns a trend’s scenario and variants, or its web research for a board trend, and the public reference files that show it, each with a download URL to pass as generation guidance. A trend that is not listed is a 404 with error_code TREND_NOT_FOUND.
  • New: the same reads on the MCP server, as list_trends and get_trend.

2026-10-28: a run can name the Layer tool it is

Section titled “2026-10-28: a run can name the Layer tool it is”
  • New: POST …/workspaces/{id}/inferences takes inference_tool_key in its body, and POST …/base-models/{slug}/inferences takes it as a query parameter: the Layer tool the run is, such as image.upscale. The asset the run makes then reopens in that tool in the Layer app. The run must be one the tool makes: a model from the tool’s models, with every value the tool fixes left as the tool sets it. A run that is not is refused with a 422 whose error_code says why. See Error codes.
  • New: on …/base-models/{slug}/inferences, a run that names a tool fills in the model’s form for the tool’s job, and a reframe tool’s run asks for the reframe itself.
  • New: POST /v2/workspaces/{workspace_id}/sessions takes an optional project_id. Forge and workflow runs in that session follow the project’s AI policy, and their outputs are added to the project. See Sessions in a project.
  • New: the PROJECT_NOT_FOUND, PROJECT_ARCHIVED, PROJECT_DELETED and PROJECT_ACCESS_DENIED error codes.
  • New: GET …/workspaces/{id}/inference-tools lists the Layer tools you can run in the workspace, such as image.upscale, in the order the Layer app’s tools menu shows them. Each names the base models it runs on there and the one a run takes when it names none: the tool’s own default, else your first pinned model among them, else Layer’s recommendation. Filter by modality and by group (generate or edit).
  • New: GET …/workspaces/{id}/inference-tools/{inference_tool_key}/inference-schema returns the JSON Schema of what a run of the tool takes on a base model (base_model_id, else the model a run takes when it names none): the model’s inference form without the fields the tool hides or fixes. An edit’s source is not a field; x-source says what the tool works on and whether the model needs it. An unknown tool, or one none of whose models the workspace runs, is a 404 with error_code INFERENCE_TOOL_NOT_FOUND.

2026-10-20: refusal codes and error codes in every error body

Section titled “2026-10-20: refusal codes and error codes in every error body”
  • New: a failed inference run carries refusal when a guardrail or the model provider refused it: its code, and for a guardrail block every guardrail that blocked it with its guardrail_id, name, reason and category. A failed workflow run lists every refused generation in refusals. Webhook deliveries carry both. See Refused generations.
  • New: every error body carries error_code, the code that ends its type, so you can branch on it without parsing the URI.

2026-10-20: workflow names belong to the workflow

Section titled “2026-10-20: workflow names belong to the workflow”
  • Changed: name and description in the workflows list (GET …/workspaces/{id}/workflows, MCP list_workflows) are the workflow’s current details, not the published version’s. A workflow renamed in Layer shows its new name here at once, without a new publish. The response shape is unchanged.
  • New: a guidance file of type init_image or reference_image takes annotations: numbered marks (boxes, ellipses, arrows, freehand paths and pins) that say what to change where, or what to use from a reference, each with an optional note. Arrows can move what a box or ellipse marks, and a mark can ask for what it encloses to be removed. See Annotating images.
  • New: a model’s capabilities object reports visual_annotations: RENDERED for models that read the marks from a copy of the image with them drawn on, NATIVE_BOXES for models that take boxes as input. A model without it ignores the marks, and the run reports that it did.

2026-10-15: tile, 9-slice and sprite sheet data on outputs

Section titled “2026-10-15: tile, 9-slice and sprite sheet data on outputs”
  • New: every output file of an inference run, a workflow run and a session object carries an optional metadata object. Its tile holds a game tile sprite’s grid placement (shape, orientation, footprint, anchor, cell center, base outline) and its nine_slice holds a UI element’s stretch insets, so an engine can build a TileSet or 9-slice resource without measuring the image. Each is null when the file has no such data, and metadata is null when it has neither. Webhook deliveries carry it too, since their data is the matching GET body.
  • New: metadata.sprite_sheet holds a sprite sheet’s frame grid (columns, rows, cell size, margin, spacing), each frame’s rect and anchor, and its named animations, so an engine can build an animated sprite resource without measuring the sheet. Sheets packed by the sprite sheet tool or a workflow’s image grid step carry it. With no animations, play every frame in order at 12 FPS, looping.

2026-09-07: audio clip length is discoverable

Section titled “2026-09-07: audio clip length is discoverable”
  • New: a model’s capabilities object carries duration_seconds_min, duration_seconds_max and duration_seconds_required in v1 as well as v2. Audio models report their selectable clip length there; v1 previously exposed only duration_seconds, the list of discrete video lengths, which is empty for audio and read as “this model takes no duration”. See Output length.
  • Changed: the duration_seconds request field is documented as an output length for audio as well as video. The field itself is unchanged: it always accepted an audio clip length.

v2 of the Layer REST API is live and is the default across these docs. Every endpoint is available under /v2; v1 remains live under /v1 and will be deprecated as a whole later.

  • Changed: inference endpoints move from model_id + weight to base_model_id + modality + optional reference_sets, and inference responses gain base-model/reference-set fields. Models endpoints are renamed to Base Models. See the v1 → v2 migration guide for the full list.
  • New: …/base-models/{slug}/inference-schema, …/base-models/{slug}/inferences, and …/reference-sets endpoints.
  • Unchanged: all other endpoints are drop-in: identical schemas in v1 and v2.

The docs now carry the version in the URL (/docs/v2/…, /docs/v1/…), and v1 pages point at their v2 equivalents.