v1

latestOpenAPI 3.0.02026-07-228239173.7 KB
Client API v2

Estimate the price of an embedding request.

post/api/v2/embeddings/price

Headers

Accept'application/json' required

Request body

modelstring required

The embedding model to use. Available models can be retrieved via the GET /api/v1/client/models endpoint.

Example request

{
  "input": "This is a sample text for embedding generation.",
  "model": "Bge_M3_FP16"
}

Response

Calculated price for txt2embedding inference.

Example response

{
  "data": {
    "price": 0.0003
  }
}