Native OpenAI Format
POST /v1/embeddings
Request Parameters
| Parameter | Type | Required | Description |
|---|---|---|---|
| None |
Request Example
{
"body": {
"model": "text-embedding-ada-002",
"input": "string"
}
}
Response Fields(200)
| Field Name | Type | Description |
|---|---|---|
model | string | - |
input | string | array<string> | p p-0 Text to embed |
encoding_format | string | - |
dimensions | integer | p p-0 Output vector dimensions |