External Publication
Visit Post

Does Responses API support `stop` parameter or not?

OpenAI Developer Community April 28, 2026
Source

I tried the following request:

curl https://api.openai.com/v1/responses \
  -H "Content-Type: application/json" \
  -H "Authorization: Bearer {My API Key}" \
  -d '{
    "model": "gpt-4.1-mini",
    "input": "Write a short bedtime story in two sentences. End the story with the marker .",
    "stop":["END"]
  }'

and received the error response.

{
  "error": {
    "message": "Unknown parameter: 'stop'. Did you mean 'store'?",
    "type": "invalid_request_error",
    "param": "stop",
    "code": "unknown_parameter"
  }

So, it seems that the Responses API itself supports stop but not with REST API?

Discussion in the ATmosphere

Loading comments...