Anthropic · Schema

GeneratePromptResponse

LLMAnthropicArtificial IntelligenceClaudeFoundation ModelsMachine LearningMCPAgents

Properties

Name Type Description
messages array The response contains a list of message objects in the same format used by the Messages API. Typically includes a user message with the complete generated prompt text, and may include an assistant mes
system string Currently, the `system` field is always returned as an empty string (""). In future iterations, this field may contain generated system prompts.
usage object
View JSON Schema on GitHub

JSON Schema

anthropic-generate-prompt-response-schema.json Raw ↑
{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://raw.githubusercontent.com/api-evangelist/anthropic/main/json-schema/anthropic-generate-prompt-response-schema.json",
  "title": "GeneratePromptResponse",
  "x-generated": "2026-09-23",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/anthropic-prompt-generation-api-openapi.yml#/components/schemas/GeneratePromptResponse",
  "type": "object",
  "required": [
    "messages",
    "system",
    "usage"
  ],
  "properties": {
    "messages": {
      "type": "array",
      "description": "The response contains a list of message objects in the\nsame format used by the Messages API. Typically includes a\nuser message with the complete generated prompt text, and\nmay include an assistant message with a prefill to guide\nthe model's initial response.\n",
      "items": {
        "$ref": "#/$defs/PromptMessage"
      }
    },
    "system": {
      "type": "string",
      "default": "",
      "description": "Currently, the `system` field is always returned as an\nempty string (\"\"). In future iterations, this field may\ncontain generated system prompts.\n"
    },
    "usage": {
      "$ref": "#/$defs/UsageInfo"
    }
  },
  "$defs": {
    "PromptMessage": {
      "type": "object",
      "required": [
        "role",
        "content"
      ],
      "properties": {
        "role": {
          "type": "string",
          "enum": [
            "user",
            "assistant"
          ],
          "description": "The role of the message sender"
        },
        "content": {
          "type": "array",
          "description": "The content of the message",
          "items": {
            "$ref": "#/$defs/TextContentBlock"
          }
        }
      }
    },
    "TextContentBlock": {
      "type": "object",
      "required": [
        "type",
        "text"
      ],
      "properties": {
        "type": {
          "type": "string",
          "enum": [
            "text"
          ],
          "description": "The type of content block"
        },
        "text": {
          "type": "string",
          "description": "The text content"
        }
      }
    },
    "UsageInfo": {
      "type": "object",
      "description": "Usage information",
      "required": [
        "input_tokens",
        "output_tokens"
      ],
      "properties": {
        "input_tokens": {
          "type": "integer",
          "description": "Number of input tokens used",
          "minimum": 0
        },
        "output_tokens": {
          "type": "integer",
          "description": "Number of output tokens generated",
          "minimum": 0
        }
      }
    }
  }
}

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/anthropic-generate-prompt-response"
All schemas
curl "https://apis.io/api/v1/json-schemas?limit=25"

Discovery needs no key. Ratings and market analysis are Pro.

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. See our Privacy Policy and Terms.

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