الانتقال إلى المحتوى الرئيسي
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