API reference
Embeddings
No model serves this yet
Nothing in the model catalogue supports this route right now. The page stays for reference.
POST
/v1/embeddingsVector embeddings on the OpenAI shape — text-embedding-3, jina-embeddings, voyage and vendor equivalents. Billing is by input tokens.
#Request parameters
modelstringrequiredAn embedding model ID, e.g. text-embedding-3-small.
inputstring | arrayrequiredOne string or an array — the response returns vectors in the same order.
dimensionsintegeroptionalTruncate the vector on models that support Matryoshka dimensions.
encoding_formatstringoptional"float" (default) or "base64" for a compact payload.
#Related errors
- 400 invalid_request_errorMalformed body or unsupported parameter for this model.
- 401Invalid or missing bearer token. No error.code on this path — match the status.
- 402 insufficient_user_quotaWallet balance cannot cover the pre-reserved estimate.
- 429Per-key throttle. Empty body; wait for Retry-After. A 429 that does carry insufficient_user_quota is a daily spend cap instead.
- 503 model_not_foundUnknown model, or no healthy channel serves it right now.
#Request example
curl https://www.aisplice.store/v1/embeddings \
-H "Authorization: Bearer sk-YOUR_KEY" \
-H "Content-Type: application/json" \
-d '{
"model": "text-embedding-3-small",
"input": ["hello world", "another sentence"]
}'#Response
response.json
{
"object": "list",
"model": "text-embedding-3-small",
"data": [
{"object": "embedding", "index": 0, "embedding": [0.0023, -0.0091, …]},
{"object": "embedding", "index": 1, "embedding": [0.0154, 0.0007, …]}
],
"usage": {"prompt_tokens": 8, "total_tokens": 8}
}Still stuck?
Send us the request ID or the error message and we will look into it.