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.