info Open to new work opportunities! Contact me
Daniel Hladik AI Automation Engineer

← All terms

Endpoint (API endpoint)

A specific URL where an API listens and accepts requests for a given operation or data resource.

What is an endpoint?

An endpoint is a specific URL where an API "listens" and accepts requests. Each endpoint typically represents one operation or data resource. The entire API is then a collection of endpoints.

Example endpoints from the OpenAI API

  • /v1/chat/completions - generating text using a chat model
  • /v1/embeddings - converting text to vectors
  • /v1/models - listing available models

How to use an endpoint

Send an HTTP request (GET, POST, etc.) to the endpoint with the required parameters and API key. The endpoint returns a response - most commonly a JSON with the result of the operation.