GET

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

kind outputactivity chathash 3e3b8201…extracted Nov 10, 2026version currentsource upstream spec ↗

Response body

14 properties · 0 required · 2 $defs
propertytypedescriptionconstraints
modelstringModel name
created_atstringISO 8601 timestamp of response creation
responsestringThe model's generated text response
thinkingstringThe model's generated thinking output
donebooleanIndicates whether generation has finished
done_reasonstringReason the generation stopped
total_durationintegerTime spent generating the response in nanoseconds
load_durationintegerTime spent loading the model in nanoseconds
prompt_eval_countintegerNumber of input 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 output 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/generate","payload":{…}}'
→ {"valid": false, "errors": [{"path": "#", "keyword": "required", …}]}