Skip to main content

Embeddings API

Return an embedding for a given text and, optionally, an image.

Endpoint

Request Body (EmbedRequest)

Example Request

Response Body (EmbedResponse)

Returns a JSON object containing the generated embedding.

Example Response

Responses

  • 200 OK: Successful Response (EmbedResponse)
  • 422 Validation Error: (HTTPValidationError)