Zum Hauptinhalt springen
POST
Embed texts (OpenAI-compatible)

Autorisierungen

Authorization
string
header
erforderlich

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

Body

application/json
input
erforderlich

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>
Standard:document

query for a search query, document for stored text.

Verfügbare Optionen:
document,
query
encoding_format
enum<string>
Standard:float

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

Verfügbare Optionen:
float,
base64
dimensions
integer

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

Antwort

The vectors, in input order.

object
string
erforderlich
Allowed value: "list"
data
object[]
erforderlich
model
string
erforderlich
usage
object
erforderlich

Tokens billed for this call. Both fields are equal.