[Doc] Show how to get Responses prompt token IDs (#55912)

Signed-off-by: Francisco Javier Arceo <farceo@redhat.com>
Co-authored-by: OpenAI Codex <codex@openai.com>
This commit is contained in:
Francisco Javier Arceo
2026-09-16 02:48:18 +00:00
committed by GitHub
co-authored by OpenAI Codex
parent b0898a4937
commit 7d4bba5498
3 changed files with 44 additions and 3 deletions
@@ -199,6 +199,11 @@ you can use the [official OpenAI Python client](https://github.com/openai/openai
Code example: [examples/tool_calling/openai_responses_client_with_tools.py](../../../examples/tool_calling/openai_responses_client_with_tools.py)
To get prompt token IDs before generation, use
[`/v1/responses/render`](renderer.md#get-responses-prompt-token-ids). It preprocesses
a self-contained Responses request without inference and returns the prompt
token IDs, so a separate `/tokenize` call is not needed.
#### Extra parameters
The following extra parameters in the request object are supported: