GET

/v1/schemas/ollama/chat/api%2Fchat?kind=output

kind outputactivity chathash 89d133ec…extracted Nov 10, 2026version currentsource upstream spec ↗

Response body

13 properties · 0 required · 3 $defs
propertytypedescriptionconstraints
modelstringModel name used to generate this message
created_atstringTimestamp of response creation (ISO 8601)format: date-time
messageobject
donebooleanIndicates whether the chat response has finished
done_reasonstringReason the response finished
total_durationintegerTotal time spent generating in nanoseconds
load_durationintegerTime spent loading the model in nanoseconds
prompt_eval_countintegerNumber of tokens in the prompt
prompt_eval_cached_countintegerNumber of prompt tokens read from the cache
prompt_eval_durationintegerTime spent evaluating uncached prompt tokens in nanoseconds
eval_countintegerNumber of tokens generated in the response
eval_durationintegerTime spent generating tokens in nanoseconds
logprobsLogprob[]Log probability information for the generated tokens 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", …}]}