Skip to main content
POST
cURL

Authorizations

Authorization
string
header
required

Should follow the format Basic {credentials}. The {credentials} consists of the Base64-encoded string of the API key and the secret in the format key:secret. You can create a key in one command with the Inworld CLI: inworld workspace add-key.

Body

application/json

Request message for Embed method. Contains the input texts and model configuration for the embeddings request

inputs
object[]
required

Input to embed.

model
object
required

The ID of the model to be used to generate embeddings. If no model_id is specified, the default model will be used. See Models for available models.

Response

A successful response message for Embed method

embeddings
object[]

List of embeddings generated from the input messages