Embeddings API
Convert text into numerical vectors for semantic search, clustering, and RAG applications.
https://api.qorebit.ai/v1/embeddingsRequest Body
| Parameter | Type | Required | Description |
|---|---|---|---|
model | string | Yes | The ID of the model to use. e.g., openai/text-embedding-3-small |
input | string or array | Yes | Input text to embed, encoded as a string or array of tokens. |
Example Request
curl https://api.qorebit.ai/v1/embeddings \
-H "Authorization: Bearer qb_live_..." \
-H "Content-Type: application/json" \
-d '{
"model": "openai/text-embedding-3-small",
"input": "Qorebit is the best AI gateway."
}'Response Example
{
"object": "list",
"data": [
{
"object": "embedding",
"index": 0,
"embedding": [
0.0023064255,
-0.009327292,
...
]
}
],
"model": "openai/text-embedding-3-small",
"usage": {
"prompt_tokens": 8,
"total_tokens": 8
}
}