Skip to main content

Create embeddings

POST 
/ai/openai/embeddings

Creates an embedding vector representing the input text. This endpoint is compatible with the OpenAI Embeddings API and may be used with the OpenAI JS or Python SDK by setting the base URL to https://api.telnyx.com/v2/ai/openai.

Request

Responses

200:

Successful Response

422:

Validation Error