Morse · Schema

MessagesRequest

An Anthropic Messages request. Morse reads it as a chat completion and serves it on any chat model, with the same billing, privacy floors, and failover. Fields Morse does not use, such as metadata and service_tier, are ignored.

CompanyArtificial IntelligencePrivate InferenceSecurityOpenAI-Compatible

Properties

Name Type Description
model string A model id from GET /v1/models. Anthropic's own id for a Claude model, such as claude-opus-5-5 or a dated id like claude-opus-5-5-20261001, also names the Morse model anthropic/claude-opus-5.5.
max_tokens integer The output limit. Morse clamps it to the model's limit, as it clamps max_completion_tokens.
messages array The conversation. A user turn takes text, image (base64 source only), and tool_result blocks; a tool_result with is_error true reaches the model with its text prefixed "Error: ". An assistant turn tak
system object The system prompt, a string or text blocks. Blocks are joined with a blank line. cache_control is ignored: Morse places its own cache breakpoints.
stream boolean Stream the reply as Anthropic's named server-sent events.
tools array Custom tools (name, description, input_schema). Anthropic's server tools, such as web_search or code_execution, are refused with a 400 that names the type.
tool_choice object auto, any, tool (with name), or none. disable_parallel_tool_use asks for at most one tool call.
thinking object enabled with budget_tokens sets a reasoning effort from the budget. enabled or adaptive also streams the model's reasoning as thinking blocks where the model shows it. Thinking blocks carry no signatu
output_config object effort sets the reasoning effort (low, medium, high, xhigh, or max). format is refused: Morse serves no structured outputs.
stop_sequences array Sent as stop. An API key needs forward_settings, as for a chat completion's stop.
temperature number 1, Anthropic's default, is ignored. Any other value needs forward_settings, as for a chat completion.
top_p number 1 is ignored. Any other value needs forward_settings, as for a chat completion.
provider object Morse's per-request privacy floor, as on POST /v1/chat/completions.
privacy_veil object Morse's Privacy Veil ask, as on POST /v1/chat/completions.
View JSON Schema on GitHub

JSON Schema

trymorse-ai-messages-request-schema.json Raw ↑
{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/trymorse-ai/json-schema/trymorse-ai-messages-request-schema.json",
  "title": "MessagesRequest",
  "description": "An Anthropic Messages request. Morse reads it as a chat completion and serves it on any chat model, with the same billing, privacy floors, and failover. Fields Morse does not use, such as metadata and service_tier, are ignored.",
  "x-generated": "2026-11-22",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/trymorse-ai-openapi.json#/components/schemas/MessagesRequest",
  "type": "object",
  "required": [
    "model",
    "max_tokens",
    "messages"
  ],
  "properties": {
    "model": {
      "type": "string",
      "description": "A model id from GET /v1/models. Anthropic's own id for a Claude model, such as claude-opus-5-5 or a dated id like claude-opus-5-5-20261001, also names the Morse model anthropic/claude-opus-5.5."
    },
    "max_tokens": {
      "type": "integer",
      "minimum": 1,
      "description": "The output limit. Morse clamps it to the model's limit, as it clamps max_completion_tokens."
    },
    "messages": {
      "type": "array",
      "description": "The conversation. A user turn takes text, image (base64 source only), and tool_result blocks; a tool_result with is_error true reaches the model with its text prefixed \"Error: \". An assistant turn takes text and tool_use blocks. thinking and redacted_thinking blocks are dropped. A message with role system is sent as a system message in its place. document blocks, images linked by URL, images inside a tool_result, and every other block type are refused with a 400 that names the type.",
      "items": {
        "type": "object",
        "required": [
          "role",
          "content"
        ],
        "properties": {
          "role": {
            "type": "string",
            "enum": [
              "user",
              "assistant",
              "system"
            ]
          },
          "content": {
            "oneOf": [
              {
                "type": "string"
              },
              {
                "type": "array",
                "items": {
                  "type": "object"
                }
              }
            ]
          }
        }
      }
    },
    "system": {
      "description": "The system prompt, a string or text blocks. Blocks are joined with a blank line. cache_control is ignored: Morse places its own cache breakpoints.",
      "oneOf": [
        {
          "type": "string"
        },
        {
          "type": "array",
          "items": {
            "type": "object"
          }
        }
      ]
    },
    "stream": {
      "type": "boolean",
      "description": "Stream the reply as Anthropic's named server-sent events."
    },
    "tools": {
      "type": "array",
      "description": "Custom tools (name, description, input_schema). Anthropic's server tools, such as web_search or code_execution, are refused with a 400 that names the type.",
      "items": {
        "type": "object"
      }
    },
    "tool_choice": {
      "type": "object",
      "description": "auto, any, tool (with name), or none. disable_parallel_tool_use asks for at most one tool call."
    },
    "thinking": {
      "type": "object",
      "description": "enabled with budget_tokens sets a reasoning effort from the budget. enabled or adaptive also streams the model's reasoning as thinking blocks where the model shows it. Thinking blocks carry no signature."
    },
    "output_config": {
      "type": "object",
      "description": "effort sets the reasoning effort (low, medium, high, xhigh, or max). format is refused: Morse serves no structured outputs."
    },
    "stop_sequences": {
      "type": "array",
      "items": {
        "type": "string"
      },
      "description": "Sent as stop. An API key needs forward_settings, as for a chat completion's stop."
    },
    "temperature": {
      "type": "number",
      "description": "1, Anthropic's default, is ignored. Any other value needs forward_settings, as for a chat completion."
    },
    "top_p": {
      "type": "number",
      "description": "1 is ignored. Any other value needs forward_settings, as for a chat completion."
    },
    "provider": {
      "type": "object",
      "description": "Morse's per-request privacy floor, as on POST /v1/chat/completions."
    },
    "privacy_veil": {
      "description": "Morse's Privacy Veil ask, as on POST /v1/chat/completions."
    }
  }
}

Work with this as data

Every JSON Schema here is available over the APIs.io API and to AI agents over MCP.

MCP server

One button, every client — Claude, Cursor, VS Code and the rest.

https://apis.io/mcp

Tools for schemas

4 MCP tools reach this
  • find_json_schemasBrowse and filter every JSON Schema in the catalog.
  • apis_io_searchSTART HERE — APIs, providers and tags for one query, each with its total.
  • resolveTurn a domain, URL or GitHub org into the provider it belongs to.
  • find_cohortsEvery scored population of providers in the catalog.
All 92 tools →

Call it yourself

curl for this page
This JSON Schema
curl "https://apis.io/api/v1/json-schemas/trymorse-ai-messages-request"
All schemas
curl "https://apis.io/api/v1/json-schemas?limit=25"

Calls without X-API-Key need no key. Calls with it need a paid plan — get a key.

Get an API key

Free tier, no form to fill in. Signing in shares your email address with us — we store it to create your key and to recognise you if you sign in with another provider. By signing up you are subscribing to the APIs.io and API Evangelist newsletters — you can unsubscribe from any issue. See our Privacy Policy and Terms.

A second provider on the same verified email joins the account you already have.