Skip to main content
POST
Create embeddings (legacy engines)

授權

Authorization
string
header
必填

Your DGrid API key. All endpoints use Authorization: Bearer <DGRID_API_KEY>.

路徑參數

engine
string
必填

Engine identifier used in the request path.

主體

application/json
model
string
必填

Embedding model ID used in the JSON body.

input
string
必填

Input text to embed.

回應

Embedding results.

object
string

Always list.

data
object[]

Embedding results.

model
string

Model used for the request.

usage
object