Properties
| Name | Type | Description |
|---|---|---|
| model | string | Model id |
| messages | array | Conversation messages |
| stream | boolean | Stream partial deltas as server-sent events |
| temperature | number | Sampling temperature (0-2) |
| top_p | number | Nucleus sampling probability |
| max_tokens | number | Maximum tokens to generate |
| max_completion_tokens | number | Alias for max_tokens; capped by API Stock |
| n | number | Number of completions. API Stock currently supports one. |
JSON Schema
{
"$schema": "https://json-schema.org/draft/2020-12/schema",
"$id": "https://artifacts.apis.io/api-stock-com/json-schema/api-stock-com-chat-completion-request-dto-schema.json",
"title": "ChatCompletionRequestDto",
"x-generated": "2026-10-30",
"x-method": "derived",
"x-generator": "derive-json-schema.py",
"x-source": "openapi/api-stock-com-openapi.json#/components/schemas/ChatCompletionRequestDto",
"type": "object",
"properties": {
"model": {
"type": "string",
"description": "Model id"
},
"messages": {
"description": "Conversation messages",
"type": "array",
"items": {
"$ref": "#/$defs/ChatMessageDto"
}
},
"stream": {
"type": "boolean",
"description": "Stream partial deltas as server-sent events",
"default": false
},
"temperature": {
"type": "number",
"description": "Sampling temperature (0-2)"
},
"top_p": {
"type": "number",
"description": "Nucleus sampling probability"
},
"max_tokens": {
"type": "number",
"description": "Maximum tokens to generate"
},
"max_completion_tokens": {
"type": "number",
"description": "Alias for max_tokens; capped by API Stock"
},
"n": {
"type": "number",
"description": "Number of completions. API Stock currently supports one.",
"default": 1,
"maximum": 1
}
},
"required": [
"model",
"messages"
],
"$defs": {
"ChatMessageDto": {
"type": "object",
"properties": {
"role": {
"type": "string",
"description": "Role of the message author"
},
"content": {
"type": "object",
"description": "Message content. Either a string or an array of content parts (multimodal)."
},
"name": {
"type": "string",
"description": "Optional author name"
}
},
"required": [
"role",
"content"
]
}
}
}
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/api-stock-com-chat-completion-request-dto"
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.