Create Embeddings
Embeddings
Create Embeddings
Generate vector embeddings for input text using AI models
POST
Create Embeddings
Create embeddings for the given input text(s).
This endpoint creates vector embeddings, typically for the purpose of “RAG” (Retrieval Augemented Generation) storage. It automatically manages sessions and routes requests to the appropriate embedding model.
Headers
string
required
API key in format:
Bearer sk-xxxxxxBody
string
required
Input text to generate embeddings for. Can be a single string or an array of strings.Single text example:Multiple texts example (batch processing):
string
required
Model ID to use for embedding generation (blockchain hex address or name)
Use the List Models endpoint to see available embedding models.
string
default:"float"
Format for the embedding vectors. Options:
float or base64string
Unique identifier representing your end-user for monitoring and abuse detection
Response
string
Always returns
"list"array
Array of embedding objects
string
Model used for generating the embeddings
object
Token usage statistics
Example Request
Use Cases
Semantic Search
Generate embeddings for documents and queries to enable similarity-based search
Clustering
Group similar texts together by comparing embedding vectors
Recommendations
Build recommendation systems by finding similar items based on embeddings
Classification
Use embeddings as features for text classification models

