request id
The unique identifier a provider gives each API call, returned in a response header, that support staff can look up.
In more detail
Log it with the model, usage and outcome of every call: it is the only way to ask a provider about one specific failure, and it links your own logs and traces to theirs. Anthropic returns it in the request-id header and in error bodies.
Related terms
- usage block — The part of a model reply that reports how many tokens the call read and wrote, split by type, which is what you are billed for.
- GenAI span — A trace span for one model call, named after the operation and model, such as "chat claude-sonnet", carrying the GenAI convention attributes.
Taught in
- The Request And The Response — AI Engineering: LLM Apps, RAG & Agents
- What MCP Is — AI Engineering: LLM Apps, RAG & Agents