Base URL:
https://api.freemodel.app/v1Create embeddings
POST /embeddings
Choose an embedding-capable model from GET /v1/models. The example uses <embedding-model-id> to avoid assuming model availability for every account.
Response
Request body
| Field | Type | Required | Description |
|---|---|---|---|
model | string | Yes | An embedding model ID returned for your API key. |
input | string or array | Yes | One text input or an array of text inputs. |
encoding_format | string | No | Output encoding when supported by the selected model. |
Do not mix vectors from different embedding models in the same similarity index.