Skip to content
BENIBIX Learn

OpenAI API

Development🧬 AI EngineeringLLM APIs

Also known as OpenAI Responses API, Responses API, OpenAI Chat Completions API

OpenAI's own web service. Your code sends it a request and gets a reply.

Think of it like

It is like a phone line to a big helper shop. You call, ask, and hear the answer.

Example

Jack's help bot sends each customer question to the OpenAI API. It uses the Responses API, and the reply text goes straight into the chat window.

Why it matters

Its request shape became a common one. Many other model makers and local tools take calls in that shape.

Definition

The OpenAI API is OpenAI's web service for using its GPT models in your code. For new apps, OpenAI says to use the Responses API. It lives at api.openai.com/v1/responses. The older Chat Completions API still works. Your key goes in a header called Authorization. There are code kits for Python, JavaScript, .NET, Java, Go and Ruby.

Example code

bash
curl https://api.openai.com/v1/responses \
  -H "Authorization: Bearer $OPENAI_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"model": "gpt-6-astra", "input": "Hello there"}'
One call to the Responses API. The key goes in the Authorization header.
The OpenAI API, on the right, takes a bearer key, a model and the input.

Common mistake

Starting a new app on the old Assistants API. OpenAI shut it down on August 26, 2026, so new work goes on the Responses API.

Key takeaways

  1. 1
    Responses API. The one to use for new apps.
  2. 2
    A bearer key. Sent in the Authorization header.
  3. 3
    Widely copied. Other tools accept its format.

Compare