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

backgroundboolean

Whether to process in background

includestring[] nullable

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

inputstring required

The input text to process

modelstring required

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

previous_response_idstring nullable

ID of previous response to continue conversation

streamboolean

Whether to stream the response

Response

Successful Response

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

Changes