メインコンテンツへスキップ
POST
Embed texts (OpenAI-compatible)

承認

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
必須

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>
デフォルト:document

query for a search query, document for stored text.

利用可能なオプション:
document,
query
encoding_format
enum<string>
デフォルト:float

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

利用可能なオプション:
float,
base64
dimensions
integer

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

レスポンス

The vectors, in input order.

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

Tokens billed for this call. Both fields are equal.