OpenAI Responses API

Create Response

Create a response using OpenAI Responses API format.<br><br>This endpoint accepts a flow_id in the model parameter and processes<br>the input through the specified Langflow flow.<br><br>Args:<br> request: OpenAI Responses API request with model (flow_id) and input<br> background_tasks: FastAPI background task manager<br> api_key_user: Authenticated user from API key<br> http_request: The incoming HTTP request<br> telemetry_service: Telemetry service for logging<br><br>Returns:<br> OpenAI-compatible response or streaming response<br><br>Raises:<br> HTTPException: For validation errors or flow execution issues

post/api/v1/responses

Request body

modelstring required

The flow ID to execute (used instead of OpenAI model)

inputstring required

The input text to process

streamboolean

Whether to stream the response

backgroundboolean

Whether to process in background

previous_response_idstring nullable

ID of previous response to continue conversation

includestring[] nullable

Additional response data to include, e.g., ['tool_call.results']

Response

Successful Response

{"stackTrail":"paths:/api/v1/responses:post:responses:200:content:application/json:schema","oasType":"schema","type":"unknown"}

Changes