Learn AI Math

Response Payload

What is Response Payload?

In one sentence: A response payload is the data an API sends back, like the model's answer and information about token usage.

It usually includes the generated text, why the model stopped, and how many tokens were used.

What does Response Payload look like?

A response with "content": "Hello there!" and "usage": {"input_tokens": 5, "output_tokens": 3}.

Why does Response Payload matter?

Reading the response payload lets apps show answers and track costs.

Last updated · Fact-checked by The AI Math

Linking to this page from a lesson or article?

Like this explanation? Get one every week.

The AI Math newsletter turns confusing AI news into plain English. No hype, no jargon walls.