Inference Event
Viewing v2, the current version
Sent when a generation finishes, fails or is canceled.
Authorizations
Section titled “Authorizations”Request Bodyrequired
Section titled “Request Bodyrequired”Delivered when an inference run reaches a terminal state.
object
Unique event id, repeated in the webhook-id header.
Inference.completed, inference.failed or inference.cancelled.
When the event was raised (RFC 3339).
Identical to the body of GET on the inference run.
object
Unique identifier for this inference run.
Current status: in_progress, complete, failed, canceled, or deleted.
Suggested polling interval in seconds. Present while IN_PROGRESS.
Completion timestamp. Present only on COMPLETE.
Generated assets. Present only on COMPLETE.
object
File ID for the generated asset.
Download URL for the asset.
MIME type, e.g. image/png or video/mp4.
Thumbnail/preview URL.
Width in pixels.
Height in pixels.
Duration for video/audio assets.
File size in bytes.
What an engine needs beyond the image to build a resource from a file. Each kind is null when absent.
object
Where a game tile’s sprite sits on its grid, in the sprite’s own pixels from its top-left corner.
object
The outline of one grid cell seen from straight above.
How the cell is turned to the camera: DIAMOND or ALIGNED for a square, POINTY_TOP or FLAT_TOP for a hexagon.
Camera tilt in degrees above the ground plane; 90 is straight down.
Quarter turn of the camera around the tile, in degrees clockwise seen from above: 0, 90, 180, or 270. A hexagon is only drawn facing 0.
Cells the footprint covers across (the base’s right-hand edge) at facing 0.
Cells the footprint covers deep (the base’s left-hand edge) at facing 0.
Wall height in cell sides: 0 is a flat ground tile, 1 a cube on a square.
Width in pixels of one cell’s base outline in the sprite.
Height in pixels of one cell’s base outline in the sprite.
The point the tile is placed by: the bottom center of the cell it stands on (the front cell of a footprint wider than one).
object
Pixels right of the sprite’s left edge.
Pixels down from the sprite’s top edge.
The center of the anchor’s cell. Godot and Unity pin a tile here rather than at the anchor.
object
Pixels right of the sprite’s left edge.
Pixels down from the sprite’s top edge.
The footprint’s whole base outline, clockwise on screen from the anchor’s vertex or edge.
object
Pixels right of the sprite’s left edge.
Pixels down from the sprite’s top edge.
What the tile shows. Every facing of one subject shares it, so a tileset can group them.
How well the drawing stands on the grid once fitted, from 0 to 1. Null on an older tile.
True when the drawing did not settle on the grid and may not sit exactly on its cell. Check its placement before using it.
The insets a 9-slice draws a UI element by, in the image’s own pixels in from each edge.
The corners are drawn at their own size, the edges repeat along their length, and the center repeats both ways.
object
Pixels in from the left edge.
Pixels in from the top edge.
Pixels in from the right edge.
Pixels in from the bottom edge.
DETECTED when measured off the pixels, USER when a person set the insets.
The frame grid a sprite sheet was packed on, in the sheet’s own pixels from its top-left corner.
Cells start margin pixels in from the sheet’s edges with spacing pixels between them.
object
Cells across.
Cells down.
Width of one cell in pixels.
Height of one cell in pixels.
Pixels between the sheet’s edges and the outer cells.
Pixels between neighboring cells.
The frames, in play order: left to right, then top to bottom, unless the list orders them otherwise.
One frame’s rect on the sheet, in the sheet’s own pixels from its top-left corner.
object
The frame’s cell in reading order over the whole grid (left to right, then top to bottom). Cells that hold no frame are left out, so indexes can skip.
The frame’s left edge on the sheet, in pixels.
The frame’s top edge on the sheet, in pixels.
The frame’s width in pixels.
The frame’s height in pixels.
object
Pixels right of the sprite’s left edge.
Pixels down from the sprite’s top edge.
Named animations over the frames. When empty, play the sheet as one animation named default over every frame in frames order, at 12 fps, looping.
object
The animation’s name.
Frame indexes (frames[].index), in play order.
Frames per second.
Whether the animation restarts after its last frame.
The layers of a layered file, back to front, so drawing each visible PNG at its left and top, in order, rebuilds the image (blend modes and clipping aside).
One layer of a layered file, such as the PSD image.split_layers returns.
object
The layer’s name in the file.
group, pixel, shape, type, smartobject or psdimage.
Download URL of the layer’s pixels as a PNG at the layer’s own size. Null when it has none.
X of the layer’s top-left corner on the canvas, in pixels.
Y of the layer’s top-left corner on the canvas, in pixels.
Width of the layer’s PNG, in pixels.
Height of the layer’s PNG, in pixels.
The layer’s own visibility; a hidden group hides every layer in it.
The layer’s own opacity, 0 (transparent) to 255 (opaque).
Index in layers of the group that holds this layer; a group’s members follow it. Null at the top level.
How a parallax split’s layers scroll. Its layers pair, in order, with top-level layers (group null).
object
True when every layer repeats left to right at the canvas width.
One entry per layer, farthest first.
object
The layer’s name.
Share of the camera’s movement the layer moves by: 1 moves with the camera, as the playfield does, and 0 stays put, as a sky at infinity does.
Actual Creative Units charged. Present only on COMPLETE.
Error message. Present only on FAILED.
Machine-readable error code. Present only on FAILED. Balance-related values: INSUFFICIENT_BALANCE (the workspace ran out of Creative Units — top up and resubmit), BALANCE_UNAVAILABLE (the balance could not be verified, retry later) and USAGE_LIMIT_EXCEEDED (the member is past their usage limit: ask a workspace admin for more, or wait for it to reset). Refusal values, each also described by refusal: INPUT_GUARDRAIL_VIOLATION, CONTENT_POLICY_VIOLATION, PROMPT_INTELLECTUAL_PROPERTY and NO_MEDIA_GENERATED.
object
The generation that was refused.
Machine-readable refusal code: INPUT_GUARDRAIL_VIOLATION (a guardrail the workspace or project set blocked it, and nothing reached the provider), CONTENT_POLICY_VIOLATION (the provider’s content policy), PROMPT_INTELLECTUAL_PROPERTY (the provider refused protected IP) or NO_MEDIA_GENERATED (the provider returned no output: a passing provider failure, a silent refusal of the prompt, or an input the model found nothing in; run it again before rewriting the prompt). A provider refusal of the prompt can be rewritten without the names it refuses with POST .../inferences/{id}/prompt-rewrite.
Every guardrail that blocked the generation. Empty unless code is INPUT_GUARDRAIL_VIOLATION.
object
ID of the guardrail rule that blocked the generation.
The rule’s name as it read when it judged the request.
copyright_infringement, ip_trademark_infringement or artist_style_mimicry for the guardrails Layer ships, custom for a rule the workspace wrote itself.
Why the rule judged the request a violation. May be empty.
Base model the run used, resolved or auto-picked.
The Layer tool the run was made with, such as image.upscale: a key from GET /v2/workspaces/{workspace_id}/inference-tools. Null for a run made without a tool.
Per-set summary of what each reference set contributed.
object
Reference Set ID this contribution belongs to, if any.
True when the set’s trained finetune (a LoRA, or a Recraft style) was applied.
True when an animation (Meshy rigging action) finetune was applied for this set.
True when a voice (ElevenLabs) finetune was applied for this set.
Number of assets successfully mapped to guidance inputs.
True when the set’s palette went into the run’s color palette (up to the model’s color limit), or a palette passed with the request stood in for it.
True when the set fell back to prompt-only representation.
True when the set’s auto prompt addition was appended to the prompt. Informational: the text rides on top of whatever else the set contributed and is not a degradation.
True when SBMC has a LoRA for this set on another base model but not the one used.
True when the set isn’t applicable to the chosen model (its modality / applicable base models exclude it) so no LoRA or assets were applied.
True when the set’s category means nothing for the chosen model’s modality (a camera move on an image model), so it was dropped entirely, prompt text included. Implies skipped_not_applicable.
True when at least one attached reference set did not meaningfully contribute. The run still costs Creative Units.
Names each degraded reference set and why, or null when none is degraded.
What a job’s GET reports about the callback attached to it.
The URL is echoed so a caller can tell which of its endpoints a run was aimed at; the rest is how the delivery went, which is the only place a failed delivery is visible.
object
The callback URL this run was submitted with.
Pending until a delivery settles, then delivered or failed.
How many delivery attempts have been made.
When the last attempt was made.
HTTP status the receiver returned on the last attempt, if it responded.
Why the last attempt did not succeed. Null once delivered.
Whatever you sent as webhook.metadata.
object
Responses
Section titled “ Responses ”Successful Response
Examplegenerated
exampleValidation Error
object
object
object
Examplegenerated
{ "detail": [ { "loc": [ "example" ], "msg": "example", "type": "example", "input": "example", "ctx": {} } ]}