🧬OpenAI API
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
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"}'Common mistake
Key takeaways
- 1Responses API. The one to use for new apps.
- 2A bearer key. Sent in the Authorization header.
- 3Widely copied. Other tools accept its format.