POST
/
v1
/
refine
/
embeddings
curl --request POST \
  --url https://api.chonkie.ai/v1/refine/embeddings \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '{
  "chunks": [
    {
      "text": "<string>",
      "start_index": 123,
      "end_index": 123,
      "token_count": 123,
      "context": "<string>"
    }
  ],
  "embedding_model": "<string>"
}'
[
  {
    "text": "<string>",
    "start_index": 123,
    "end_index": 123,
    "token_count": 123,
    "context": "<string>",
    "embedding": [
      123
    ]
  }
]

Authorizations

Authorization
string
header
required

Your API Key from the Chonkie Cloud dashboard

Body

application/json

Request body for the Embeddings Refinery endpoint.

Response

200
application/json
Successful Response: A list of `Chunk` objects with added embeddings.

A list containing Chunk objects, each with an added embedding field.