GET

/v1/schemas/ollama/chat/api%2Fchat

kind inputactivity chathash 2182964f…extracted Nov 10, 2026version currentsource upstream spec ↗

Request body

10 properties · 2 required · 5 $defs
propertytypedescriptionconstraints
model*stringModel name
messages*ChatMessage[]Chat history as an array of message objects (each with a role and content)
toolsToolDefinition[]Optional list of function tools the model may call during the chat
formatenum | objectFormat to return a response in. Can be `json` or a JSON schema
optionsModelOptionsRuntime options that control text generation
streambooleandefault: true
thinkboolean | stringControls a model's thinking output. Use `/api/show` to discover the supported values and default for the selected model. `true` requests thinking, `false` requests no thinking output, and `null` uses the model default. String values are model-defined; supporte…nullable
keep_alivestring | numberModel keep-alive duration (for example `5m` or `0` to unload immediately)
logprobsbooleanWhether to return log probabilities of the output tokens
top_logprobsintegerNumber of most likely tokens to return at each token position when logprobs are enabled

Validate a payload

before you spend tokens
shell
$ curl -X POST https://modelschemas.com/v1/validate \
    -d '{"provider":"ollama","endpointId":"api/chat","payload":{…}}'
→ {"valid": false, "errors": [{"path": "#", "keyword": "required", …}]}