cURL
Embeddings
Embeddings Price Calculation
Estimate the price of an embedding request.
POST
cURL
Estimate the cost of an embedding job before submitting it.
Authorizations
Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Headers
Available options:
application/json Body
application/json
Text to embedding conversion parameters
Input text(s) to generate embeddings for. Can be a single string or array of strings (max 2048 items). Each input limited to 8192 tokens, total request limited to 300k tokens.
Example:
"This is a sample text for embedding generation."
The embedding model to use. Available models can be retrieved via the GET /api/v1/client/models endpoint.
Example:
"Bge_M3_FP16"
Response
Calculated price for txt2embedding inference.