Pular para o conteúdo principal
POST
Embed texts (OpenAI-compatible)

Autorizações

Authorization
string
header
obrigatório

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

Corpo

application/json
input
obrigatório

One text or up to 128 texts of up to 32 KiB; token ids are refused (LangChain: check_embedding_ctx_length=False).

model
string

conare-embed-1 (default). conare-embed-1-query: alias of conare-embed-1 with input_type: query, for clients that can't send input_type.

input_type
enum<string>
padrão:document

query for a search query, document for stored text.

Opções disponíveis:
document,
query
encoding_format
enum<string>
padrão:float

base64: little-endian float32s. OpenAI's SDKs use it by default.

Opções disponíveis:
float,
base64
dimensions
integer

Must equal the model's dimensions (1024 for conare-embed-1).

Resposta

The vectors, in input order.

object
string
obrigatório
Allowed value: "list"
data
object[]
obrigatório
model
string
obrigatório
usage
object
obrigatório

Tokens billed for this call. Both fields are equal.