/v1/embeddings endpoint to generate dense vector representations of text. These embeddings capture semantic meaning, making them ideal for powering semantic search, document clustering, similarity scoring, and recommendation systems — all without requiring task-specific model fine-tuning.
Request
POSThttps://kiosapi.com/v1/embeddings
Headers
string
required
Must be
application/json.string
required
Your API key in the format
Bearer sk-xxx.Request Body
string
required
The embedding model to use. Example:
text-embedding-3-large.string | array
required
The text to embed. Accepts a single string or an array of strings. Each individual input must not exceed 8192 tokens.
Example Request
- cURL
- Python
Response
The endpoint returns a JSON object containing the embedding vector(s), the model used, and token usage statistics.Response Fields
string
Always
"list".array
An array of embedding objects, one per input string.
string
The model that was used to generate the embeddings.
integer
The number of tokens in the input.
integer
Total tokens processed (equal to
prompt_tokens for embedding requests).