Create embeddings
Embeddings
Create embeddings
Generates embeddings for the given input text. Supports single strings or arrays of strings. Response includes token usage and cost information.
POST
Create embeddings
Authorizations
Enter the API key with the Bearer: prefix, e.g. "Bearer "
Path Parameters
The workspace ID
Pattern:
^[a-f0-9]{24}$Body
application/json
Text or array of texts to embed
Embedding model ID. Supported models:
google/gemini-embedding-2intfloat/multilingual-e5-largegoogle/gemini-embedding-001openai/text-embedding-3-smallopenai/text-embedding-3-largeopenai/text-embedding-ada-002
Example:
"openai/text-embedding-3-small"
Output dimensions (model-dependent)
Encoding format for embeddings
End-user identifier
