Skip to main content
POST
cURL

Authorizations

Authorization
string
header
required

Relace API key Authorization header using the Bearer scheme.

Body

application/json

Codebase context for embedding

model
string

The model to use for embedding

input
string[]

Array of strings to embed

output_dtype
enum<string>
default:float

Data type of the output embedding vectors. The binary quantization results in more compact embeddings with only a small loss in retrieval performance. See HuggingFace blog post for details.

Available options:
float,
binary

Response

Codebase embedded successfully

results
object[]

Array of embeddings of the input strings

usage
object

Token usage information for the request