togetherai_create_embedding
Generate text embeddings by sending text or an array of strings to a Together AI embedding model, enabling vector-based AI agent workflows.
Instructions
Create text embeddings using a Together AI embedding 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>",
"input": "<input>"
},
"name": "togetherai_create_embedding"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| input | Yes | Text string or array of strings to embed | |
| model | No | Embedding model ID (e.g. togethercomputer/m2-bert-80M-8k-retrieval) | |
| api_key | Yes | Together AI API key |