
Share
OpenAI's GPT-5 ushers in a revolutionary Responses API, transforming how developers interact with AI for reasoning tasks and agentic interfaces, marking a significant leap from the previous completions model.
With the release of GPT-5, OpenAI has introduced significant advancements in how developers can integrate and utilize AI models. The new Responses API is a key component of this evolution, designed specifically for reasoning models and the agentic future. This article delves into what's changed technically and why it matters to practitioners.
The Responses API represents a major shift from previous generations of OpenAI APIs. Here’s a breakdown of the technical changes and their implications:
From Completions to Responses:
/v1/completions): This endpoint was straightforward but limited. You provided a prompt, and the model would generate text to complete it. While useful for simple tasks, it lacked the flexibility needed for more complex interactions./v1/responses): The Responses API introduces a more dynamic interaction model. Instead of just completing prompts, it allows models to respond in a way that is contextually aware and can handle multiple turns of conversation.Enhanced Role-Based Interactions:
system, user, and assistant, which provide better structure for multi-turn conversations. This makes it easier to build chat interfaces with custom instructions and context.Function-Calling and Agentic Interfaces:

Enhanced Capabilities:
Improved User Experience:
API Endpoint: /v1/responses
messages: An array of message objects, each with a role (system, user, assistant), content, and optional function calls.functions: A list of functions that the model can call.choices: An array of response objects, each containing the generated text and any function results.Example Usage:
import openai
openai.api_key = 'your-api-key'
response = openai.ChatCompletion.create(
model="gpt-5",
messages=[
{"role": "system", "content": "You are a helpful assistant."},
{"role": "user", "content": "What is the capital of France?"},
{"role": "assistant", "content": "The capital of France is Paris."}
],
functions=[
{
"name": "search_web",
"description": "Search the web for information.",
"parameters": {
"type": "object",
"properties": {
"query": {"type": "string", "description": "The search query"}
}
}
}
]
Tags
Original Sources
↗ https://developers.openai.com/blog/responses-api?utm_source=tldrai
About the author
Kai built ML infrastructure at a Bay Area startup before developing an obsession with transformer architectures and inference optimisation that eventually pulled him out of product work entirely. A stint at a compute research lab sharpened his instinct for what actually matters in a model release versus what is marketing. He writes from the inside — from the perspective of someone who has debugged the systems he is describing at three in the morning. He is allergic to hype and instinctively drawn to the unglamorous plumbing questions that everyone else skips over.
More from The Engineer →This Week's Edition
23 September 2025
88 articles
Related Articles
Related Articles
More Stories