---
title: "Create Response"
method: POST
path: "/api/v1/responses"
tags: ["OpenAI Responses API"]
---

# Create Response

`POST /api/v1/responses`

Create a response using OpenAI Responses API format.

This endpoint accepts a flow_id in the model parameter and processes
the input through the specified Langflow flow.

Args:
    request: OpenAI Responses API request with model (flow_id) and input
    background_tasks: FastAPI background task manager
    api_key_user: Authenticated user from API key
    http_request: The incoming HTTP request
    telemetry_service: Telemetry service for logging

Returns:
    OpenAI-compatible response or streaming response

Raises:
    HTTPException: For validation errors or flow execution issues

## Request body

- OpenAIResponsesRequest — OpenAI-compatible responses request with flow_id as model parameter.
  - `background` boolean — Whether to process in background
  - `include` string[], nullable — Additional response data to include, e.g., ['tool_call.results']
  - `input` string, required — The input text to process
  - `model` string, required — The flow ID to execute (used instead of OpenAI model)
  - `previous_response_id` string, nullable — ID of previous response to continue conversation
  - `stream` boolean — Whether to stream the response
  - `tools` unknown[], nullable — Tools are not supported yet
    - unknown

## Response `200`

Successful Response

- unknown

## Other responses

- `422` — Validation Error

---

[API](https://skmtc.net/langflow-ai/apis/langflow.md) · [All operations](https://skmtc.net/langflow-ai/apis/langflow/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/langflow-ai/langflow/revisions/22962dc5e81b/schema)
