Convert text to vector embeddings
| Parameter | Type | Required | Description |
|---|---|---|---|
model | string | Yes | Embedding model ID |
input | string/array | Yes | Text(s) to embed |
encoding_format | string | No | Output format: float or base64 |
dimensions | integer | No | Output dimensions (model-dependent) |
| Model | Dimensions | Description |
|---|---|---|
text-embedding-3-small | 1536 | Fast, cost-effective |
text-embedding-3-large | 3072 | Higher accuracy |
text-embedding-ada-002 | 1536 | Legacy model |