TESSEN Platform
Documentation
Docs/API reference
API REFERENCE

Embeddings

Turn text into 384-dimension vectors. Up to 64 inputs per request.

POST/v1/embeddings

Create embeddings.

Auth: Bearer key

Request body

inputstring | array of strings · required

The text to embed. At most 64 inputs; more is refused with 400 { "detail": "At most 64 inputs per request." }.

modelstring

Optional. It is echoed back and never used to choose the embedder; which embedder runs is Tessen's choice, so every vector in one index comes from the same one. The default alias is tessen-embed.

CREATE EMBEDDINGS
curl https://api.tessen.ai/v1/embeddings \  -H "Authorization: Bearer $TESSEN_API_KEY" \  -H "Content-Type: application/json" \  -d '{"input": ["first sentence", "second sentence"]}'

Response

data[].embeddingarray of numbers

384 numbers, in the order of input.

data[].indexinteger

Position of the input.

modelstring

Your alias, or tessen-embed.

dimensioninteger

384.

usageobject

prompt_tokens and total_tokens, both 0: embeddings are not metered and do not debit the wallet.

Note

Tessen does not publish retrieval-quality figures for these vectors. Evaluate them on your own data before depending on them.

Errors

StatusWhen
400More than 64 inputs, or input empty or not strings.
401Missing or invalid key.
502"Embeddings are temporarily unavailable." Retry later.

Search documentation

Titles, headings and guides↑ ↓ navigate · Enter open
Embeddings · Tessen Docs