{
"$type": "site.standard.document",
"bskyPostRef": {
"cid": "bafyreicnfnzcgtpn6bpy6nus5qk3qkhxihpdzg5xrxmo6rtjyyagazwk2m",
"uri": "at://did:plc:lk3jfj3zq4k4wxnk474axylu/app.bsky.feed.post/3mkjrwktbrh52"
},
"path": "/t/does-responses-api-support-stop-parameter-or-not/1379909#post_6",
"publishedAt": "2026-04-28T04:05:38.000Z",
"site": "https://community.openai.com",
"textContent": "I tried the following request:\n\n\n curl https://api.openai.com/v1/responses \\\n -H \"Content-Type: application/json\" \\\n -H \"Authorization: Bearer {My API Key}\" \\\n -d '{\n \"model\": \"gpt-4.1-mini\",\n \"input\": \"Write a short bedtime story in two sentences. End the story with the marker .\",\n \"stop\":[\"END\"]\n }'\n\n\nand received the error response.\n\n\n {\n \"error\": {\n \"message\": \"Unknown parameter: 'stop'. Did you mean 'store'?\",\n \"type\": \"invalid_request_error\",\n \"param\": \"stop\",\n \"code\": \"unknown_parameter\"\n }\n\n\nSo, it seems that the Responses API itself supports `stop` but not with REST API?",
"title": "Does Responses API support `stop` parameter or not?"
}