GET
/v1/schemas/ollama/chat/api%2Fchat?kind=output
Accept:
Response body
13 properties · 0 required · 3 $defs| property | type | description | constraints |
|---|---|---|---|
| model | string | Model name used to generate this message | |
| created_at | string | Timestamp of response creation (ISO 8601) | format: date-time |
| message | object | ||
| done | boolean | Indicates whether the chat response has finished | |
| done_reason | string | Reason the response finished | |
| total_duration | integer | Total time spent generating in nanoseconds | |
| load_duration | integer | Time spent loading the model in nanoseconds | |
| prompt_eval_count | integer | Number of tokens in the prompt | |
| prompt_eval_cached_count | integer | Number of prompt tokens read from the cache | |
| prompt_eval_duration | integer | Time spent evaluating uncached prompt tokens in nanoseconds | |
| eval_count | integer | Number of tokens generated in the response | |
| eval_duration | integer | Time spent generating tokens in nanoseconds | |
| logprobs | Logprob[] | Log probability information for the generated tokens when logprobs are enabled |
Validate a payload
before you spend tokensshell
$ curl -X POST https://modelschemas.com/v1/validate \
-d '{"provider":"ollama","endpointId":"api/chat","payload":{…}}'
→ {"valid": false, "errors": [{"path": "#", "keyword": "required", …}]}