Passer au contenu principal
POST
Embed texts

Autorisations

Authorization
string
header
requis

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

Corps

application/json
input
string[]
requis

The texts to embed, up to 32 KiB each.

Required array length: 1 - 128 elements
type
enum<string>
défaut:document

query for a search query, document for stored text.

Options disponibles:
document,
query
output_dtype
enum<string>
défaut:float

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

Options disponibles:
float,
int8

Réponse

The vectors, in input order.

embeddings
number[][]
requis

Floats; with output_dtype: int8, integers.

model
string
requis
dimensions
integer
requis
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.

Options disponibles:
int8