Skip to main content

/v1/responses Endpoint Introduction

LaoZhang API fully supports OpenAI’s latest Responses API, the next-generation agent-building interface introduced in March 2025. Responses API combines the simplicity of Chat Completions with the tool usage and state management capabilities of Assistants API, providing developers with a more flexible and powerful AI application development experience.
Next-Gen API: Responses API is a superset of Chat Completions, providing all Chat Completions features plus advanced capabilities like built-in tools and state management. However, it only supports select new OpenAI models - see details below.

Core Features

Built-in Tool Support

Rich tools including web search, file search, code interpreter, function calling

State Management

Maintain conversation context and state via previous_response_id

Reasoning Persistence

O3/O4-mini reasoning tokens persist across requests

Full Compatibility

Supports all tool-capable GPT-4.1 and O3 series models

Supported Models

  • O3 Series: o3, o3-pro, o4-mini
  • Features: Reasoning tokens persist across requests for smarter contextual understanding

Conversational Models

  • GPT-4.1 Series: gpt-4.1, gpt-4.1-mini
  • Features: Powerful tool calling and multimodal capabilities
Model Requirements: Only newer models support the /v1/responses endpoint. Legacy models like GPT-3.5 do not support this interface.

Basic Usage

Simple Conversation

Actual Response Example

Complete response format:

Request Parameters

Required Parameters

Optional Parameters

Built-in Tool Support

1. Function Calling

2. Code Interpreter

State Management

Maintaining Conversation Context

Multi-turn Tool Calling

Reasoning Model Features

O3/O4-mini Reasoning Persistence

Reasoning models have special advantages in Responses API:

Comparison with Chat Completions

Migration Example

Migrating from Chat Completions to Responses API:

Advanced Features

Parallel Tool Calling

Output Format Control

Reasoning Effort Control (O3 Series)

Response Fields

Core Fields

Output Message Format

Usage Statistics

Error Handling

Standard Error Format

Common Errors

Best Practices

1. State Management Strategy

2. Tool Calling Optimization

3. Reasoning Model Optimization

Future Development

Upcoming Features

  1. Full Assistants API feature integration (H1 2026)
  2. More built-in tools: Web search, computer use, etc.
  3. Model Context Protocol (MCP) support
  4. Enhanced multimodal capabilities

Migration Timeline

  • Now: Can start using Responses API
  • H1 2026: Feature parity with Assistants API
  • 2026: Assistants API deprecation announcement
  • 2027: Complete migration to Responses API
Development Recommendation: New projects should use Responses API directly, existing projects can migrate gradually. LaoZhang API will continue to follow OpenAI updates to ensure feature completeness.

Need more help? Visit LaoZhang API or check OpenAI Responses API Official Documentation.