GET

/v1/schemas/ollama/chat/api/generate?kind=output

kind outputactivity chathash 3e3b8201…extracted Nov 10, 2026version currentsource upstream spec ↗
fieldrecorded source
schemaSource linked above.

upstream-spec

Source trace
d8e08be41dd858c933c32bef5ee8d0c5faf7d7462069a49b368731cfbceaab03
{
  "fetchedAt": 1794288644,
  "extractorVersion": "2",
  "verifiedAt": null
}

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

Types

2 $defs

Logprobobject

Log probability information for a generated token

tokenstringThe text representation of the token
logprobnumberThe log probability of this token
bytesinteger[]The raw byte representation of the token
top_logprobsTokenLogprob[]Most likely tokens and their log probabilities at this position

TokenLogprobobject

Log probability information for a single token alternative

tokenstringThe text representation of the token
logprobnumberThe log probability of this token
bytesinteger[]The raw byte representation of the token

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", …}]}