apicheats.dev Cheat sheet Raw .md
POST

Try POST /responses/input_tokens — OpenAI API

OpenAI playground

Get input token counts

Credentials

Kept in this tab only. Requests go through apicheats.dev's same-origin proxy straight to api.openai.com; the proxy stores and logs nothing about them.

Headers

Body application/json

12 body fields
  • model · optional · string — Model ID used to generate the response, like `gpt-4o` or `o3`. OpenAI offers a wide range of models with different capabilities, performance characteristics, and price points. Refer to the [model guide](https://developers.openai.com/api/docs/models) to browse and compare available models.
  • input · optional · string — Text, image, or file inputs to the model, used to generate a response
  • previous_response_id · optional · string — The unique ID of the previous response to the model. Use this to create multi-turn conversations. Learn more about [conversation state](https://developers.openai.com/api/docs/guides/conversation-state). Cannot be used in conjunction with `conversation`.
  • tools · optional · object[] — An array of tools the model may call while generating a response. You can specify which tool to use by setting the `tool_choice` parameter.
  • text · optional · object — Configuration options for a text response from the model. Can be plain text or structured JSON data. Learn more: - [Text inputs and outputs](https://developers.openai.com/api/docs/guides/text) - [Structured Outputs](https://developers.openai.com/api/docs/guides/structured-outputs)
  • reasoning · optional · object — Configuration options for [reasoning models](https://developers.openai.com/api/docs/guides/reasoning).
  • truncation · optional · string — Request body field truncation.
  • instructions · optional · string — A system (or developer) message inserted into the model's context. When used along with `previous_response_id`, the instructions from a previous response will not be carried over to the next response. This makes it simple to swap out system (or developer) messages in new responses.
  • personality · optional · string — Request body field personality.
  • conversation · optional · string — The conversation that this response belongs to. Items from this conversation are prepended to `input_items` for this response request. Input items and output items from this response are automatically added to this conversation after this response completes.
  • tool_choice · optional · string — How the model should select which tool (or tools) to use when generating a response. See the `tools` parameter to see how to specify which tools the model can call.
  • parallel_tool_calls · optional · boolean — Whether to allow the model to run tool calls in parallel.