Skip to main content

Create embeddings

POST 

/embeddings

Turns text into vectors, in the format of OpenAI's embeddings API (client.embeddings.create in the OpenAI SDKs). qwen3-embedding-0.6b (alias qwen/qwen3-embedding-0.6b) returns one vector of 1024 numbers per input, for at most 512 inputs per request.

Billed on usage.prompt_tokens, the input tokens the model read, at the model's input price; output is not billed. GET /v1/models?format=openai lists the model with endpoints: ["/v1/embeddings"] and its price per million tokens. Only Serenity Edge API keys can use this route. See the Embeddings, rerank and redaction guide.

Request​

Responses​

One embedding per input, in input order, with the model id and the tokens the model read. The vectors of the example are shortened to four numbers; each has 1024.