跳转到主要内容
POST
Embed texts

授权

Authorization
string
header
必填

A key from conare.ai/dashboard/keys with full access, some namespaces, or models only (/embed, /rerank, /v1, /v2/rerank, /parse).

请求体

application/json
input
string[]
必填

The texts to embed, up to 32 KiB each.

Required array length: 1 - 128 elements
type
enum<string>
默认值:document

query for a search query, document for stored text.

可用选项:
document,
query
output_dtype
enum<string>
默认值:float

int8: int8 values in [-127, 127] and one scale per vector.

可用选项:
float,
int8

响应

The vectors, in input order.

embeddings
number[][]
必填

Floats; with output_dtype: int8, integers.

model
string
必填
dimensions
integer
必填
scales
number[]

With output_dtype: int8, one per vector (0 for an all-zero vector).

output_dtype
enum<string>

Present only with output_dtype: int8.

可用选项:
int8