Embeddings

Create Embeddings

OpenAI-compatible embeddings endpoint.

post/v3/embeddings

Request

  • Base URL
    https://api.edenai.run
  • Auth
    HTTP bearer

Request body

tagsunknown
modelstring required

Model identifier in 'provider/model' format, e.g. 'openai/text-embedding-3-small'.

encoding_format'float' | 'base64' nullable

Output encoding: 'float' (default) or 'base64'.

dimensionsinteger nullable

Reduce output vector size. 3-series models only.

userstring nullable

End-user identifier for abuse tracking.

fallbacksstring[] nullable

Embedding models to try, in order, if the primary model fails. Each is a 'provider/model' id or a model name with no provider prefix. Example: ['openai/text-embedding-3-small'].

metadataobject nullable

Arbitrary metadata attached to the request.

extra_headersobject nullable

Additional HTTP headers forwarded to the provider API.

Example request

{
  "tags": {
    "client": "acme",
    "project": "invoices"
  }
}

Response

Successful Response

costnumber nullable
providerstring nullable
modelstring required
object'list' required

Changes

No recorded changes to this operation across all 1 revision of this API.