---
title: "Get a model's inference input schema"
method: GET
path: "/v2/workspaces/{workspace_id}/base-models/{slug}/inference-schema"
tags: ["Base Models", "Inferences"]
---

# Get a model's inference input schema

`GET /v2/workspaces/{workspace_id}/base-models/{slug}/inference-schema`

Return the JSON Schema for a base model's inference form — the shape of the `input` accepted by POST /base-models/{slug}/inferences. Property render hints live under `x-layer`.

## Path parameters

- `workspace_id` string, uuid, required — Id of the workspace that owns the resource.
- `slug` string, required — The base model, named by the id the list endpoint returns, or by its slug, display name, or alias.

## Response `200`

Successful Response

- object

## Other responses

- `401` — Unauthenticated — missing or invalid Bearer token.
- `403` — Forbidden — insufficient permissions, or the access token lacks the scope the operation requires.
- `404` — Resource not found.
- `409` — The request with this `Idempotency-Key` is still running — retry after the number of seconds in `Retry-After`.
- `422` — Invalid input parameters, or an `Idempotency-Key` reused for a different request.
- `429` — Rate limited — retry after the number of seconds in `Retry-After`.
- `500` — Internal server error.

---

[API](https://skmtc.dev/layer/apis/layer-rest-api.md) · [All operations](https://skmtc.dev/layer/apis/layer-rest-api/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/layer/layer-rest-api/revisions/fafc779f9ba2/schema)
