APIPASS API Marketplace · Schema
ClaudeMessagesRequest
Claude Messages API 请求
CompanyArtificial IntelligenceMarketplacePricing
Properties
| Name | Type | Description |
|---|---|---|
| model | string | 模型名称 |
| messages | array | 消息列表 |
| max_tokens | object | 最大输出 tokens (旧参数名) |
| max_output_tokens | object | 最大输出 tokens (新参数名) |
| system | object | 系统提示 |
| stream | boolean | 是否流式返回 |
| metadata | object | 元数据 |
| tools | object | 工具定义 |
| tool_choice | object | 工具选择 |
| temperature | object | 温度参数 |
| top_p | object | 核采样参数 |
| top_k | object | Top-K 采样 |
| stop_sequences | object | 停止序列 |
| thinking | object | 扩展思考配置 |
| thinkingFlag | object | ApiPass 兼容字段:启用扩展思考 |
JSON Schema
{
"$schema": "https://json-schema.org/draft/2020-12/schema",
"$id": "https://raw.githubusercontent.com/api-evangelist/apipass/main/json-schema/apipass-claude-messages-request-schema.json",
"title": "ClaudeMessagesRequest",
"description": "Claude Messages API 请求",
"x-generated": "2026-10-16",
"x-method": "derived",
"x-generator": "derive-json-schema.py",
"x-source": "openapi/apipass-openapi.json#/components/schemas/ClaudeMessagesRequest",
"properties": {
"model": {
"type": "string",
"title": "Model",
"description": "模型名称"
},
"messages": {
"items": {
"$ref": "#/$defs/ClaudeMessage"
},
"type": "array",
"title": "Messages",
"description": "消息列表"
},
"max_tokens": {
"anyOf": [
{
"type": "integer"
},
{
"type": "null"
}
],
"title": "Max Tokens",
"description": "最大输出 tokens (旧参数名)"
},
"max_output_tokens": {
"anyOf": [
{
"type": "integer"
},
{
"type": "null"
}
],
"title": "Max Output Tokens",
"description": "最大输出 tokens (新参数名)"
},
"system": {
"anyOf": [
{},
{
"type": "null"
}
],
"title": "System",
"description": "系统提示"
},
"stream": {
"type": "boolean",
"title": "Stream",
"description": "是否流式返回",
"default": true
},
"metadata": {
"anyOf": [
{
"additionalProperties": true,
"type": "object"
},
{
"type": "null"
}
],
"title": "Metadata",
"description": "元数据"
},
"tools": {
"anyOf": [
{
"items": {},
"type": "array"
},
{
"type": "null"
}
],
"title": "Tools",
"description": "工具定义"
},
"tool_choice": {
"anyOf": [
{
"additionalProperties": true,
"type": "object"
},
{
"type": "null"
}
],
"title": "Tool Choice",
"description": "工具选择"
},
"temperature": {
"anyOf": [
{
"type": "number"
},
{
"type": "null"
}
],
"title": "Temperature",
"description": "温度参数"
},
"top_p": {
"anyOf": [
{
"type": "number"
},
{
"type": "null"
}
],
"title": "Top P",
"description": "核采样参数"
},
"top_k": {
"anyOf": [
{
"type": "integer"
},
{
"type": "null"
}
],
"title": "Top K",
"description": "Top-K 采样"
},
"stop_sequences": {
"anyOf": [
{
"items": {
"type": "string"
},
"type": "array"
},
{
"type": "null"
}
],
"title": "Stop Sequences",
"description": "停止序列"
},
"thinking": {
"anyOf": [
{
"additionalProperties": true,
"type": "object"
},
{
"type": "null"
}
],
"title": "Thinking",
"description": "扩展思考配置"
},
"thinkingFlag": {
"anyOf": [
{
"type": "boolean"
},
{
"type": "null"
}
],
"title": "Thinkingflag",
"description": "ApiPass 兼容字段:启用扩展思考"
}
},
"additionalProperties": true,
"type": "object",
"required": [
"model",
"messages"
],
"$defs": {
"ClaudeMessage": {
"properties": {
"role": {
"type": "string",
"title": "Role"
},
"content": {
"title": "Content"
}
},
"additionalProperties": true,
"type": "object",
"required": [
"role",
"content"
],
"title": "ClaudeMessage",
"description": "Claude 消息格式"
}
}
}
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.
Call it yourself
curl for this page
This JSON Schema
curl "https://apis.io/api/v1/json-schemas/apipass-claude-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. See our Privacy Policy and Terms.
A second provider on the same verified email joins the account you already have.