GET

/v1/schemas/together/chat/completions

kind inputactivity chathash 37e6814c…extracted Aug 15, 2026version currentsource upstream spec ↗
fieldrecorded source
schemaSource linked above.

upstream-spec

Source trace
468edbdc879c48f500ca284270663ccc30cd83aee57a4e6a4e7a5bc04603b543
{
  "fetchedAt": 1786771359,
  "extractorVersion": "1",
  "verifiedAt": null
}

Request body

18 properties · 2 required · 0 $defs
propertytypedescriptionconstraints
prompt*stringA string providing context for the model to complete.
model*enum | stringThe name of the model to query.<br> <br> [See all of Together AI's chat models](https://docs.together.ai/docs/serverless-models#chat-models)
max_tokensintegerThe maximum number of tokens to generate.
stopstring[]A list of string sequences that truncate (stop) inference text output. For example, "</s>" stops generation as soon as the model generates the given token.
temperaturenumberA decimal number from 0-1 that determines the degree of randomness in the response. A temperature less than 1 favors more correctness and is appropriate for question answering or summarization. A value closer to 1 introduces more randomness in the output.
top_pnumberA percentage (also called the nucleus parameter) that's used to dynamically adjust the number of choices for each predicted token based on the cumulative probabilities. It specifies a probability threshold below which all less likely tokens are filtered out. T…
top_kintegerAn integer that's used to limit the number of choices for the next predicted word or token. It specifies the maximum number of tokens to consider at each step, based on their probability of occurrence. This technique helps to speed up the generation process an…
repetition_penaltynumberA number that controls the diversity of generated text by reducing the likelihood of repeated sequences. Higher values decrease repetition.
streambooleanIf true, stream tokens as Server-Sent Events as the model generates them instead of waiting for the full model response. The stream terminates with `data: [DONE]`. If false, return a single JSON object containing the results.
logprobsintegerAn integer between 0 and 20 of the top k tokens to return log probabilities for at each generation step, instead of only the sampled token. Log probabilities help assess model confidence in token predictions.0 ≤ n ≤ 20
echobooleanIf true, the response contains the prompt. Can be used with `logprobs` to return prompt logprobs.
nintegerThe number of completions to generate for each prompt.1 ≤ n ≤ 128
safety_modelenum | stringThe name of the moderation model used to validate tokens. Choose from the available moderation models found [here](https://docs.together.ai/docs/inference-models#moderation-models).
min_pnumberA number between 0 and 1 that can be used as an alternative to top-p and top-k.
presence_penaltynumberA number between -2.0 and 2.0 where a positive value increases the likelihood of a model talking about new topics.
frequency_penaltynumberA number between -2.0 and 2.0 where a positive value decreases the likelihood of repeating tokens that have already been mentioned.
logit_biasobjectAdjusts the likelihood of specific tokens appearing in the generated output.
seedintegerSeed value for reproducibility.

Validate a payload

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