Discord
此页面暂无中文版本 — 以下显示英文内容。 查看英文版

← API reference

Embeddings

A provider passthrough endpoint kept for drop-in SDK compatibility — not part of the chat/routing surface, but billed and authenticated the same way as every other endpoint.

POST/v1/embeddings

Parameters

ParameterTypeDescription
inputstring or arrayText to embed.
modelstringOptional, default "text-embedding-3-small" (also the "auto" resolution).

Example response

{
  "object": "list",
  "data": [{ "object": "embedding", "index": 0, "embedding": [0.0023, -0.009, "..."] }],
  "model": "text-embedding-3-small",
  "usage": { "prompt_tokens": 8, "total_tokens": 8, "cost": 0.0000016 }
}