Tạo embeddings

Tạo embeddings cho text input. Tương thích với [OpenAI Embeddings API](https://platform.openai.com/docs/api-reference/embeddings).

Authentication

AuthorizationBearer
API key làm bearer token. Tạo API key tại [Console](https://console.staging.tram.ai.vn/keys).

Request

This endpoint expects an object.
modelstringRequired
Model ID
inputstring or list of stringsRequired

Text hoặc danh sách text cần tạo embedding

encoding_formatenumOptionalDefaults to float

Format output: float (mặc định) hoặc base64

dimensionsintegerOptional

Số dimensions của embedding

Response

Thành công

objectstring
datalist of objects
modelstring
usageobject

Errors

400
Bad Request Error
401
Unauthorized Error
403
Forbidden Error
429
Too Many Requests Error