GET

/v1/schemas/cohere/chat/v1/generate?kind=output

kind outputactivity chathash 5952c448…extracted Nov 4, 2026version currentsource upstream spec ↗
fieldrecorded source
schemaSource linked above.

upstream-spec

Source trace
2a018e8f34bfd1ee4203c69583349290c7eedc2f0fbfe52bc65b061a70b7dec4
{
  "fetchedAt": 1793770244,
  "extractorVersion": "1",
  "verifiedAt": null
}

Response body

4 properties · 2 required · 2 $defs
propertytypedescriptionconstraints
id*string
generations*SingleGeneration[]List of generated results
promptstringPrompt used for generations.
metaApiMeta

Types

2 $defs

ApiMetaobject

api_versionobject
billed_unitsobject
tokensobject
cached_tokensnumberThe number of prompt tokens that hit the inference cache.
warningsstring[]

SingleGenerationobject

id*string
text*string
indexintegerRefers to the nth generation. Only present when `num_generations` is greater than zero.
likelihoodnumber
token_likelihoodsobject[]Only returned if `return_likelihoods` is set to `GENERATION` or `ALL`. The likelihood refers to the average log-likelihood of the entire specified string, which is useful for [evaluating the performance of your model](likelihood-eval), especially if you've cre…

Validate a payload

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