Embeddings
Create vectors from strings and batches of strings.
Live system status and incident history →
POST /v1/embeddings
Use an active embedding model. input accepts a nonempty string or 1–128 nonempty strings, each up to 1,000,000 characters, subject to the 1 MiB body limit. Token-ID inputs are rejected. Each input must fit the model context independently.
curl 'https://api.xoomcloud.si/v1/embeddings' \
-H "Authorization: Bearer $XOOMCLOUD_API_KEY" \
-H 'Content-Type: application/json' \
-d '{
"model": "BAAI/bge-m3",
"input": [
"Searchable text",
"Another document"
],
"encoding_format": "float"
}'Dimensions and encoding
encoding_format is float (default) or base64. Optional dimensions is an integer from 1 to 8,192; it cannot exceed native dimensions when the catalog specifies them. A larger request returns 400 invalid_dimensions. user is an optional string of up to 200 characters. Unknown fields are rejected.
Vectors, usage and billing
Responses follow the OpenAI embedding list shape, with indexed data and usage. Check the model ID with model discovery first; a chat model sent here returns model_not_found. Embeddings use the same wallet reservations, rate limits and metadata headers as chat. The preview mock returns deterministic data, not validated production semantic embeddings.