logo

Available API Endpoints

Generate

This endpoint generates realistic text conditioned on a given input.

Embed

This endpoint returns text embeddings. An embedding is a list of floating point numbers that captures semantic information about the text that it represents.

Classify

This endpoint makes a prediction about which label fits the specified text inputs best.

Tokenize

This endpoint splits input text into smaller units called tokens using byte-pair encoding (BPE).

Detokenize

This endpoint takes tokens using byte-pair encoding and returns their text representation.

Detect Language

This endpoint identifies which language each of the provided texts is written in.

Summarize

This endpoint generates a summary in English for a given text.

Rerank

This endpoint takes in a query and a list of texts and produces an ordered array with each text assigned a relevance score.

Generate Code

Using generate end point to generate code.