Models & Usage
Create Embedding
Creates a vector representation of text input.
POST
/v1/embeddingsParameters
| Parameter | Type / location | Description |
|---|---|---|
modelRequired | stringbody | Embedding model ID. |
inputRequired | string | arraybody | Text or array of text to embed. |
encoding_formatOptional | stringbody | Vector encoding format. floatbase64 |
dimensionsOptional | integerbody | Requested vector dimensions when supported. |
Request examples
cURL
curl --request POST \
--url 'https://api.juhenextvip.com/v1/embeddings' \
--header 'Authorization: Bearer <YOUR_API_KEY>' \
--header 'Content-Type: application/json' \
--data '{
"model": "text-embedding-3-small",
"input": "JuheNext makes model APIs easier to use.",
"encoding_format": "float"
}'Response examples
JSON
{
"object": "list",
"data": [
{
"object": "embedding",
"index": 0,
"embedding": [0.0123, -0.0456, 0.0789]
}
],
"model": "text-embedding-3-small"
}