Embeddings
API Endpoints
Embeddings
Generate vector representations of text for semantic search, clustering, or RAG.
POST
Embeddings
Generates a vector representation (embeddings) of the input text. This endpoint is fully compatible with the OpenAI Embeddings API.
Request Headers
| Header | Type | Required | Description |
|---|---|---|---|
Authorization | string | Yes | Must be set to Bearer <your-api-key> (starts with mb-). |
Content-Type | string | Yes | Must be set to application/json. |
x-mibyan-api-key | string | No | Alternative way to pass your API key. |
Request Body
The embedding model to use.
mibyan-embed-1: High-dimensional text embedding model optimized for semantic search and retrieval-augmented generation (RAG). (3072 dimensions)mibyan-embed-small: A fast, lightweight embedding model suitable for lower-latency semantic tasks. (1536 dimensions)
Input text to embed, encoded as a string or array of strings. To embed multiple inputs in a single request, pass an array of strings.
Response Body
The object type, always
list.A list of embedding objects.
The model used to generate the embeddings.
Usage statistics for the request.
