The embeddings API turns an input string into a vector of numbers. You can compare two vectors to measure how closely related the source texts are. Common use cases include search, classification, recommendations, and retrieval-augmented generation (RAG). For long-term retrieval, store embeddings in a vector database and query by similarity. For the full parameter list, see the Create embedding reference. To browse available models, see serverless models.Documentation Index
Fetch the complete documentation index at: https://docs.together.ai/llms.txt
Use this file to discover all available pages before exploring further.
Generate an embedding
Callclient.embeddings.create with a model and an input string.
data, along with metadata.
JSON
Generate multiple embeddings
Pass an array of strings toinput to embed several texts in one call.
response.data contains one object per input, each with the matching index.
JSON
Next steps
- Browse embedding models.
- Read the Create embedding API reference.
- Use embeddings with the Vercel AI SDK.