Theme
Text Embeddings [Chat Compatible Format]
POST
https://www.kkiai.com/v1/embeddings
Request Parameters
Authorization
Add the Authorization parameter to the Header. Its value is the Token concatenated after Bearer.
Example: Authorization: Bearer ********************
Header Parameters
| Parameter Name | Type | Required | Description | Example |
|---|---|---|---|---|
Content-Type | string | Optional | application/json | |
Accept | string | Optional | application/json | |
Authorization | string | Optional | Bearer {{YOUR_API_KEY}} |
Body Parameters (application/json)
| Parameter Name | Type | Required | Description |
|---|---|---|---|
model | string | Required | |
input | string | Required | |
dimensions | integer | Optional |
Request Example
json
{
"model": "string",
"input": "string",
"dimensions": 0
}cURL Example
bash
curl --location --request POST 'https://www.kkiai.com/v1/embeddings' \
--header 'Accept: application/json' \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data-raw '{
"model": "string",
"input": "string",
"dimensions": 0
}'Response
🟢 200 Success
Response Example
json
{}