API Reference
Embeddings API Reference
Specification for the authenticated POST /v1/embeddings endpoint.
POST /v1/embeddings (Authenticated Endpoint)
Creates an embedding vector representing the input text.
Authenticated Access: Requires an API key passed via
Authorization: Bearer sk_live_....
Request
Parameters
| Parameter | Type | Required | Description |
|---|---|---|---|
input | string | array | Yes | Input text or array of text strings to embed. |
model | string | Yes | ID of the model to use. |
encoding_format | string | No | Format to return the embeddings in. Can be float (default) or base64. |