Get a model's inference input schema
Changed onReturn 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.
Request
- Base URL: https://api.app.layer.ai/api
- URL: https://api.app.layer.ai/api/v2/workspaces/{workspace_id}/base-models/{slug}/inference-schema
- Auth: one of:
- HTTP bearer
- OAuth 2 (authorization code, authorization URL https://auth.app.layer.ai/authorize, token URL https://auth.app.layer.ai/oauth/token)
- OAuth 2 (client credentials, token URL https://api.app.layer.ai/api/oauth/token, scopes: generation:read)
Path parameters
Id of the workspace that owns the resource.
The base model, named by the id the list endpoint returns, or by its slug, display name, or alias.
Response
Successful Response
Changes
- info
added the required property
to the response with the status - info
added the required property
to the response with the status - info
added the required property
to the response with the status - info
added the required property
to the response with the status - info
added the required property
to the response with the status - info
added the required property
to the response with the status - info
added the required property
to the response with the status
- info
- info
the endpoint scheme security
serviceAccountwas added to the API - info
the security scope
generation:readwas removed from the endpoint's security schemeoauth2
- info