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 indata. 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/exportsand reading an export need the workspace entitled to audit logs, which the Enterprise plan includes; otherwise they return403.
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-rewritereturns 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 returns422 REFUSAL_NOT_REWRITABLE. - Changed: for a run refused for its prompt,
get_forge_run’serrornow 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_workflowsMCP 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/estimateprices 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 withINVALID_INPUTS,PROMPT_REQUIRED,MISSING_REQUIRED_GUIDANCE_FILE,REFERENCE_SET_REQUIREDor the like. A few inputs a provider’s own check needs are still required, such as a dub’starget_language. A prompt shorter than the model takes is accepted for pricing and no longer refused withPROMPT_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 saysx-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_spendapproves 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_responsereturns such a run aspending_spend(itsconfirmation_id, Creative Units, model, output count and description), with the cost inreply. 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/estimateand the MCP toolrun_inference_tooltakesource_transformon an image reframe, saying where the source sits in the new frame:rotateturns it clockwise about its center, thencropdraws 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 sizeinput.aspect_ratiosets, and the crop takes its shape to within 1.5%; on anAUTOaspect ratio the crop is the frame. An estimate takes it withsource_sizetoo. Asource_transformon a tool that is not an image reframe, or without a source, is refused withINVALID_INPUTSnamingsource_transforminfield, and a crop off the frame’s shape namessource_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_enabledAI 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 theAI Policiesendpoints. 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 asgetWorkspaceMemberUsagedoes. 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 areok,warningorblocked. Empty below Enterprise.getWorkspaceMemberUsagereturns 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_feedbacktool 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 akind, a one-sentencesummary, and optionaldetails,tool_nameandworkspace_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/estimateand the MCP toolrun_inference_tooltakemasked_edit_outputbesidemask_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_framereturns the model’s whole output with nothing blended into it, for you to mask;layersreturns a layered PSD, the source below and the model’s whole output above it with the mask as its layer mask. Amasked_edit_outputwithout a mask, or on a tool or model whose schema doesn’t sayx-source.takes_mask, is refused withINVALID_INPUTS, namingmasked_edit_outputinfield. 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_appliedis true,reference_sets_degradedis false and noreference_sets_warningis returned, on the MCP server’sestimate_forge_price,execute_forgeandget_forge_runand 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_appliedinreference_set_contributionscovers 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}/inferencesand its estimate,run_inference_toolon the MCP server, and a run of a base model onPOST …/base-models/{slug}/inferences, with or withoutinference_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 asaspect_ratio,transparencyoruse_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 …/inferencesand its estimate, andexecute_forgeand the forge estimates on the MCP server, leavetransparencyunset when the body leaves outtransparencyorremove_background, so the AI policy’stransparencydefault for the model applies. A run that left it out asked for an opaque output, whatever the policy said. An explicitfalsestaysfalse, and a background-removal model still takes notransparency, 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/estimatetakessource_sizein place ofsource_file_id: thewidthandheightin pixels of an image or video source that is not uploaded yet, and a video’sduration_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_sizestands in for the source alone: a masked edit takes its mask as an uploaded file, bymask_file_id, and on some models the mask changes the price. A body with bothsource_file_idandsource_sizeis a422withINVALID_INPUTSandfieldsource_size; so issource_sizefor a tool that works on audio or a 3D model. - Changed:
POST …/inference-tools/{inference_tool_key}/inferencesrefusessource_sizewith a422,INVALID_INPUTSandfieldsource_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
fieldnaming the source field sent:source_file_id, orsource_sizeon 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_listingcreates 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_projectlists the reference sets once they land. - New:
create_productadds a product (an app with its store identifiers, a website, or a Shopify item) to an existing project.
2026-11-12: creative trends weight ads by launch date
Section titled “2026-11-12: creative trends weight ads by launch date”- Changed:
GET …/workspaces/{id}/trendsand the MCPlist_trendstool 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:
GETandPOST /v2/workspaces/{workspace_id}/projects/{project_id}/products, andGET,PATCHandDELETE …/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 theprojects:readscope and writesprojects:write; a product of an archived project can be read but not changed (PROJECT_ARCHIVED). - New: the MCP tools
update_productanddelete_productchange and remove a project’s products from an agent, alongsidecreate_product.get_projectlists a project’s products.
2026-11-11: creative trends ordered by new ads
Section titled “2026-11-11: creative trends ordered by new ads”- Changed:
GET …/workspaces/{id}/trendsand the MCPlist_trendstool ordercreativetrends 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.
2026-11-11: estimates take a session name
Section titled “2026-11-11: estimates take a session name”- New:
POST …/inference-tools/{inference_tool_key}/inferences/estimateandPOST …/workspaces/{id}/inferences/estimateacceptsession_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_namenow 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-urland the MCP toolsrequest_file_upload_urlandupload_fileaccept 3D meshes:model/gltf-binary,model/gltf+json,model/obj,model/stl,model/plyandapplication/fbx, up to 100 MB. An OBJ, STL, PLY or glTF is converted into a GLB after upload, keeping the original; a.gltfmust 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 afile_idthat 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-sourceon a Layer tool’s schema (GET …/inference-tools/{inference_tool_key}/inference-schema, andinput_schemafromget_inference_toolon the MCP server) carriesx-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.orderon 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 anorderone higher than before.
2026-11-10: an invitation’s message
Section titled “2026-11-10: an invitation’s message”- New: the invitations the management MCP server returns (
create_invite,resend_invite,revoke_invite,list_invites) carry amessage: 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_forgeandestimate_forge_priceon the MCP server name the file in aFILE_NOT_FOUNDerror, 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_sessionslists only the sessions that hold a conversation with a Layer agent. Passinclude_sessions_without_turnsto also list the sessions that hold only generations; start a conversation in one withsend_agent_message. - Changed:
get_agent_responseon 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, andinput_schemafromget_inference_toolon the MCP server) puts the garment field in the grouptryOn(“Person and garment”) in itsx-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}/inferenceschecks itswebhookbefore it finds or makes the sessionsession_namenames, as the Layer tool run does, so a URL refused with a422leaves no new session behind. - Changed: its
expected_eventssays what can arrive. The list is narrowed bywebhook.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_responsereads a turn waiting on a card in the Layer app ascompleted, with the card inreply: a question card’s questions, a form card’s fields, or a priced plan withpending_plan.list_chat_sessionsshows the same status. Such a turn readworkinguntil someone answered the card in the app; answered there, it still carries on and readsworkingagain. - Changed:
send_agent_messageon that session answers the card in words: the waiting turn is stopped and the message starts the next turn, whereTURN_IN_PROGRESSrefused 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_responseandlist_chat_sessions, a turn’sagent_idnames only an agentlist_agentsoffers. A session last answered by another agent in the Layer app shows noagent_id; pass anagent_idfromlist_agentstosend_agent_messageto continue it. - Changed:
send_agent_messagenames the agents you can use when it refuses anagent_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, onPOST …/workspaces/{id}/inferences(inference_tool_keyin the body) orPOST …/base-models/{slug}/inferences?inference_tool_key=…makes its outputs versions of its source, asPOST …/inference-tools/{inference_tool_key}/inferencesdoes, 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.editonseedance-v2.5-referenceorimage.editonkling-image-o3, makes its outputs versions of the source on any of the three, and onrun_inference_toolandexecute_forge(with aninference_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_moverun on any of the three, andrun_inference_toolandexecute_forgeon 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_forgerun on the MCP server that names a Layer tool which makes something new, such asimage.createwith 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, besidedetail: for now, the value a Layer tool fixes onINFERENCE_TOOL_PIN_MISMATCHand the scale factor onINFERENCE_TOOL_UPSCALE_COPIES_SOURCE, on all three runs. See Error codes. - Docs: a tool key that names no tool is a
404INFERENCE_TOOL_NOT_FOUNDin a tool route’s path, and a422UNKNOWN_INFERENCE_TOOLin 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
initializerequest without a bearer token with401and aWWW-Authenticateheader 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/listandresources/readstill 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
noneintoken_endpoint_auth_methods_supported, even if itstoken_endpoint_auth_methodnames 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_headerson the response ofPOST /v2/workspaces/{workspace_id}/files/upload-urland of the MCPrequest_file_upload_urltool: the headers to send, exactly as given, on the POST that starts the resumable upload (Content-Type,x-goog-resumableandx-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 with400.
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-toolsand the MCPlist_inference_tools.image.nine_slicemakes 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’snine_slicemetadata.image.sprite_sheetmakes 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 anine_slicefield, 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 toolslist_inference_toolsandget_inference_tool, carriessubmit_label(what the Layer app’s run button says, such asRemove background) andprogress_label(what a run says while it is in progress, such asRemoving background).
2026-11-07: invitations people accept
Section titled “2026-11-07: invitations people accept”- New:
POST /workspaces/{workspace_id}/invitesinvites 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}/inviteslists a workspace’s invitations with theirstatus(pending,expired,claimed,revoked).POST …/invites/{invite_id}/resendemails one again with a new link, andDELETE …/invites/{invite_id}revokes it. - New: the management MCP tools
create_invite,list_invites,resend_inviteandrevoke_invitedo the same. - Deprecated:
POST /workspaces/{workspace_id}/membersand the management MCP toolinvite_member, which add the address as a member at once. The endpoint keeps working until its sunset date, 2027-02-08, and its responses carryDeprecationandSunsetheaders. UsePOST /workspaces/{workspace_id}/invitesandcreate_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, MCPexecute_forgeandestimate_forge_pricetakeanimated,animation_frame_countandanimation_frame_duration_ms. On a model whose capabilities reportanimated_gif(GPT Image 2.6 Flare and Sunburst),animated: truemakes a looping GIF of 2 to 16 frames, 20 to 2000 ms each, delivered as animage/giffile.widthandheightare 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 withINVALID_ANIMATION. - New: the same endpoint and tools take
svg. On a model whose capabilities reportsvg_on_request(GPT Image 2.6 Flare and Sunburst),svg: truemakes animage/svg+xmlfile, drawn from the prompt alone from a reference image of at most one megapixel, and billed as one megapixel. A model that reportsvector_outputalways 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 withINVALID_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_timelinetemplate takes optionalfade_in_framesandfade_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’sduration_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_agentslists the agents your AI policy allows, with what a build round costs in Creative Units and time.send_agent_messagestarts or continues a session and returns aturn_idat once;get_agent_responsewaits on the turn and returns the agent’sreply, itsoutputsand anypending_plan;cancel_agent_turnstops a turn;list_chat_sessionslists 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 thesessions:readscope to read andsessions:writeto send. See Layer agents. - New: the
SESSION_NOT_FOUND,AGENT_NOT_FOUND,TURN_NOT_FOUND,TURN_IN_PROGRESSandAGENT_UNAVAILABLEMCP 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,POSTandPATCH/workspaces/{workspace_id}/members) and a group (/workspaces/{workspace_id}/groups) carryrole_idandrole_name, the role they hold or grant, custom roles included. The management MCP toolslist_workspace_members,invite_member,suspend_member,reactivate_memberand 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 toolsinvite_member,create_groupandupdate_group_role. Find a role’s ID withlist_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 readsmemberfor a member holding a custom role and is null for a group granting one. Userole_id. - Changed:
roleis a string in the OpenAPI description, no longer theRoleenum. - Changed:
PATCH /workspaces/{workspace_id}/groups/{group_id}takesrole_idorrole; 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_forgetakes an optionalinference_tool_key, such asimage.upscale, so the asset a forge run makes reopens in that tool in the Layer app. The run must be one the tool makes: abase_model_idfrom 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_MISMATCHand the rest).get_forge_runreturns the run’sinference_tool_key, ornullfor 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-toolscarries 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) andbatches_outputs(whether a run can make more than one output). The MCP server’slist_inference_toolsreturns 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}returnsinference_tool_key, the Layer tool the run was made with (such asimage.upscale), beside thebase_model_idit ran on, so a client can reopen a past run in its tool on its model. It isnullfor a run made without a tool. The webhook that delivers a run’s result carries it too, since itsdatais 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 carriesx-layer.batchable: true, such asimage.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.
2026-11-04: a webhook on a Layer tool run
Section titled “2026-11-04: a webhook on a Layer tool run”- New:
POST …/workspaces/{id}/inference-tools/{inference_tool_key}/inferencestakes awebhook, asPOST …/workspaces/{id}/inferencesdoes: the run’s terminal events go to your URL instead of you polling for them. The response’sexpected_eventslists the events the run can deliver, narrowed bywebhook.events:inference.completed,inference.failedandinference.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 (anhttp://URL, a private address,localhost) is refused with a422before 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-toolsand…/inference-tools/{key}/inference-schematakeproject_idandsession_id, andPOST …/workspaces/{id}/inferences/estimatetakessession_idas 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, withproject_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_toolsandget_inference_tooltakeproject_idandsession_idthe same way, andestimate_training_pricetakesproject_idasstart_trainingdoes.
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_rankoverride 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/estimateprices a run of a Layer tool without starting it. The body is the run’s withoutsession_nameandwebhook, and the run is built asPOST …/inference-tools/{inference_tool_key}/inferencesbuilds it, in the project of itssession_idwhen 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, thebase_model_idthe run takes and what each reference set would contribute. A body the run would refuse is refused here with the same status anderror_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 whenhas_sufficient_creative_unitsis false. - Changed:
POST …/inference-tools/{inference_tool_key}/inferences, andrun_inference_toolon 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/estimatesizes 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.
2026-11-03: Layer tools on the MCP server
Section titled “2026-11-03: Layer tools on the MCP server”- New: the MCP server runs Layer tools as the REST API does.
list_inference_toolslists the tools you can run, with the models each runs on and its default;get_inference_toolreturns a tool’s fields on a model as a JSON Schema;run_inference_toolruns it, polled withget_forge_run. A run lands in a session: it takessession_id,session_nameorproject_id, asexecute_forgedoes. - Changed: on the MCP server, an empty
session_nameis refused as a blank one is (session_name cannot be blank), onexecute_forge,execute_workflow,render_video_timelineandrun_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}/usagereturns the Creative Units one member spent in the workspace betweenstart_dateandend_date(inclusive UTC dates), in total and per bucket.granularityisday(the default: the last 30 days, at most 365) ormonth(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-policysets and liftsusage_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_policydoes the same. APUTorDELETEof a policy keeps its caps. See AI policies.
2026-11-02: run a Layer tool by key
Section titled “2026-11-02: run a Layer tool by key”- New:
POST …/workspaces/{id}/inference-tools/{inference_tool_key}/inferencesruns a Layer tool, such asimage.upscale, on the base model you name inbase_model_id, or on the tool’s default for you.inputholds the fields of the tool’s schema, and the tool sets the values it fixes. An edit takes the file it works on assource_file_id, and the tools whose schema saysx-source.takes_masktake a mask asmask_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 noduration_secondsruns as long as its source clip, up to the longest source the model reads.reference_setsapplies reference sets asPOST …/workspaces/{id}/inferencesdoes; a model that needs one, such as the ElevenLabs voice changer, refuses a run without it.batch_sizeasks for several outputs where the tool and the model make them. The response is that of…/base-models/{slug}/inferencesplus thebase_model_idthe 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_MISMATCHfor a value the tool fixes,INFERENCE_TOOL_MODEL_NOT_IN_POOLfor a model outside the tool, andINVALID_INPUTS, itsdetailnaming 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}/inferenceswith aninference_tool_keyrefuses amaskon a model that edits by reference, such askling-image-o3forimage.edit, with a422whoseerror_codeisINFERENCE_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
422INVALID_INPUTSnamingsubtitle_font_file_id, onPOST …/base-models/{slug}/inferencesas on a tool run. It was a500. - 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-2runs the length it offers nearest its clip’s. Both ran at the model’s default length, 5 seconds, whatever the clip’s length.
2026-11-01: AI policies
Section titled “2026-11-01: AI policies”- New:
GET,PUT,PATCHandDELETEon…/workspaces/{id}/ai-policy, and on the same path underprojects/{project_id},groups/{group_id}andmembers/{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-policieslists every policy stored in the workspace, filterable bykind. - New:
GET …/workspaces/{id}/effective-ai-policyreturns the controls in force for the caller’s work, or another member’s withprincipal_id, in a project withproject_id. - New: on the management MCP server,
patch_ai_policyandget_effective_ai_policy, besideget_ai_policy,set_ai_policyandclear_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’stileability) and the default of a field the tool shows (such as Create skybox’sprojection), except a prompt, which you always write. A skybox run that names noaspect_ratiotakes 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 withINFERENCE_TOOL_PIN_MISMATCHunless it sent that value. A value you send is kept, so a changed fixed value is still refused.
2026-10-30: private projects
Section titled “2026-10-30: private projects”- New:
POST …/workspaces/{id}/projectsandPATCH …/workspaces/{id}/projects/{project_id}takevisibility:workspace(the default on create) opens the project to every workspace member who holds the project permission,memberskeeps 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 usual403PROJECT_ACCESS_DENIED; a workspace admin outside a project open to the workspace can edit it, but changing its visibility is a403witherror_codePROJECT_ACCESS_CHANGE_FORBIDDEN. - New: the same on the Management MCP server:
create_projectandupdate_projecttakevisibility, andlist_projectsandget_projectreturn 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}/inferencestakessession_idas a query parameter, asPOST …/workspaces/{id}/inferencestakes it in its body: the run is filed in that session, which must belong to the workspace. It takes precedence oversession_name. A session the caller cannot reach is a422.
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
sourceinGET …/workspaces/{id}/inference-toolscarriestakes_mask: whether the tool can keep its edit to an area a mask marks. In a tool’s schema,x-source.takes_masksays 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.
2026-10-29: trends
Section titled “2026-10-29: trends”- New:
GET …/workspaces/{id}/trendslists 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=toplists what is charting on public boards such as TikTok, YouTube and Google Trends, in rank order.sourcekeeps to one board, andsearchsearches 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 a404witherror_codeTREND_NOT_FOUND. - New: the same reads on the MCP server, as
list_trendsandget_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}/inferencestakesinference_tool_keyin its body, andPOST …/base-models/{slug}/inferencestakes it as a query parameter: the Layer tool the run is, such asimage.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 a422whoseerror_codesays 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.
2026-10-28: sessions in a project
Section titled “2026-10-28: sessions in a project”- New:
POST /v2/workspaces/{workspace_id}/sessionstakes an optionalproject_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_DELETEDandPROJECT_ACCESS_DENIEDerror codes.
2026-10-28: the Layer tool catalog
Section titled “2026-10-28: the Layer tool catalog”- New:
GET …/workspaces/{id}/inference-toolslists the Layer tools you can run in the workspace, such asimage.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 bymodalityand bygroup(generateoredit). - New:
GET …/workspaces/{id}/inference-tools/{inference_tool_key}/inference-schemareturns 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-sourcesays what the tool works on and whether the model needs it. An unknown tool, or one none of whose models the workspace runs, is a404witherror_codeINFERENCE_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
refusalwhen a guardrail or the model provider refused it: itscode, and for a guardrail block every guardrail that blocked it with itsguardrail_id,name,reasonandcategory. A failed workflow run lists every refused generation inrefusals. Webhook deliveries carry both. See Refused generations. - New: every error body carries
error_code, the code that ends itstype, 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:
nameanddescriptionin the workflows list (GET …/workspaces/{id}/workflows, MCPlist_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.
2026-10-18: annotate your images
Section titled “2026-10-18: annotate your images”- New: a guidance file of type
init_imageorreference_imagetakesannotations: 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 optionalnote. 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
capabilitiesobject reportsvisual_annotations:RENDEREDfor models that read the marks from a copy of the image with them drawn on,NATIVE_BOXESfor 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
metadataobject. Itstileholds a game tile sprite’s grid placement (shape, orientation, footprint, anchor, cell center, base outline) and itsnine_sliceholds 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, andmetadatais null when it has neither. Webhook deliveries carry it too, since theirdatais the matchingGETbody. - New:
metadata.sprite_sheetholds 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
capabilitiesobject carriesduration_seconds_min,duration_seconds_maxandduration_seconds_requiredin v1 as well as v2. Audio models report their selectable clip length there; v1 previously exposed onlyduration_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_secondsrequest 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.
2026-08-26: v2 is now the default
Section titled “2026-08-26: v2 is now the default”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+weighttobase_model_id+modality+ optionalreference_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-setsendpoints. - 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.