Get generation content
/v1/generation/contentGet stored input and output content for a generation.
Use X-Trace-ID from the original model response headers as the generation lookup ID. If X-Trace-ID and X-Request-ID differ, this endpoint uses X-Trace-ID. Do not use the response body id such as chatcmpl_....
Authentication
Authorization Bearer
API key as bearer token in Authorization header.
Query Parameters
idstringrequiredX-Trace-ID from the original model response. If X-Trace-ID and X-Request-ID differ, use X-Trace-ID, not the response body id.
Response
dataobjectStored generation content.
data.inputobject | nullOriginal request payload when available.
data.outputobject | nullSanitized response payload when available. Shape may vary by model; examples include chat choices, image data arrays, or video task fields. For text and vision models, internal upstream usage diagnostics such as upstream_usage and usage_from_upstream are omitted; use data.output.usage when present.
Errors
- 400: Missing required
idquery parameter. - 401: Missing or invalid
Authorization. - 404: Generation not found, or it is not accessible with the authenticated API key.