Create completion
Generate text completions for a given prompt using a language, code, or image model.
Authorizations
Body
The name of the model to query.
See all of Together AI's chat models
meta-llama/Llama-2-70b-hf, mistralai/Mistral-7B-v0.1, mistralai/Mixtral-8x7B-v0.1, Meta-Llama/Llama-Guard-7b "mistralai/Mixtral-8x7B-Instruct-v0.1"
A 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. This technique helps maintain diversity and generate more fluent and natural-sounding text.
An 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 and can improve the quality of the generated text by focusing on the most likely options.
The name of the moderation model used to validate tokens. Choose from the available moderation models found here.
Meta-Llama/Llama-Guard-7b "safety_model_name"
Response
200