togetherai_completion
Generate text completions by providing a prompt and API key to any Together AI model. Customize output with parameters like temperature, top-p, and stop sequences.
Instructions
Run a text completion with any Together AI model.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"api_key": "<api_key>",
"prompt": "<prompt>"
},
"name": "togetherai_completion"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| stop | No | Stop sequences | |
| model | No | Model ID (e.g. mistralai/Mistral-7B-v0.1) | |
| top_k | No | Top-k sampling | |
| top_p | No | Top-p nucleus sampling | |
| prompt | Yes | Text prompt to complete | |
| api_key | Yes | Together AI API key | |
| max_tokens | No | Maximum tokens to generate | |
| temperature | No | Sampling temperature 0-2 |