Embeddings
Vector embeddings, compatible with OpenAI /v1/embeddings.
Endpoint
POST/v1/embeddings
| Field | Type | Description | |
|---|---|---|---|
| model | string | required | Embedding model name. |
| input | string | array | required | Text to embed; pass an array for batches. |
| encoding_format | string | optional | float (default) or base64. |
| dimensions | integer | optional | Output dimensions (where the model supports it). |
curl https://www.link42.ai/v1/embeddings \
-H "Authorization: Bearer $LINK42_API_KEY" \
-H "Content-Type: application/json" \
-d '{"model": "text-embedding-v4", "input": ["API gateway", "model proxy"]}'- Billed per input token.