Embedding API
Convert text to vector representations for semantic search, clustering, and classification.
Endpoint
http
POST https://api.tk-novalink.com/v1/embeddingsParameters
| Parameter | Type | Required | Description |
|---|---|---|---|
| model | string | Yes | Model name, e.g. text-embedding-3-small |
| input | string/array | Yes | Input text |
| encoding_format | string | No | float or base64 |
Request Example
bash
curl -X POST "https://api.tk-novalink.com/v1/embeddings" \
-H "Authorization: Bearer sk-xxxxxxxx" \
-H "Content-Type: application/json" \
-d '{
"model": "text-embedding-3-small",
"input": "The quick brown fox jumps over the lazy dog"
}'Supported Models
| Model | Dimensions | Description |
|---|---|---|
| text-embedding-3-small | 1536 | OpenAI small embedding |
| text-embedding-3-large | 3072 | OpenAI large embedding |
| bge-large-zh | 1024 | Chinese embedding model |
Next
Moderation API