The other day I was looking for a syntax for Chat Completions API, but couldn’t find it anymore. So I thought of letting people know of this little trick.
Currently if you enter some topics, there will only be Responses API examples:
But in some pages like this one, there is still a Responses x Completions toggler:
After toggling it to completions, if you visit the previous page, the examples will be using chat completions:
Alternatively, you can also add the parameter ?api-mode=chat or api-mode=responses at the end of some urls to switch modes.
- https://platform.openai.com/docs/guides/text?api-mode=chat
- https://platform.openai.com/docs/guides/text?api-mode=responses
It would be nice if OpenAI were to fix this and allow the selector back, as it was before.


