Base Models
Inferences

Get a model's inference input schema

Changed on

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.

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

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

workspace_idstring uuid required

Id of the workspace that owns the resource.

slugstring required

The base model, named by the id the list endpoint returns, or by its slug, display name, or alias.

Response

Successful Response

object required

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

      the endpoint scheme security serviceAccount was added to the API

    • info

      the security scope generation:read was removed from the endpoint's security scheme oauth2