text-embedding-3-large

circle-info

This documentation is valid for the following list of our models:

  • text-embedding-3-large

Model Overview

A next-generation embedding model that offers superior performance and flexibility. It converts text into high-dimensional numerical representations that are highly effective for various machine learning tasks.

Setup your API Key

If you don’t have an API key for the AI/ML API yet, feel free to use our Quickstart guidearrow-up-right.

API Schema

post
Authorizations
AuthorizationstringRequired

Bearer key

Body
modelundefined · enumRequiredPossible values:
inputany ofRequired

Input text to embed, encoded as a string or array of tokens.

string · min: 1Optional
or
string[] · min: 1Optional
encoding_formatstring · enum | nullableOptional

The format in which to return the embeddings.

Default: floatPossible values:
dimensionsnumber | nullableOptional

The number of dimensions the resulting output embeddings should have.

Responses
post
/v1/embeddings
201Success

No content

Code Example

This example shows how to set up an API client, send text to the embedding API, and print the response with the embedding vector. See how large a vector response the model generates from just a single short input phrase.

chevron-rightResponsehashtag

You can find a more advanced example of using embedding vectors in our article Find Relevant Answers: Semantic Search with Text Embeddings in the Use Cases section.

Last updated

Was this helpful?