Skip to main content
Retrieve detailed metadata for a completed generation by its ID. Use this endpoint to check cost and usage for any past request.

Endpoint

Query Parameters

Example Request

Example Response

Response Fields

Notes

  • Generation metadata is typically available within a few seconds of the request completing
  • Generation IDs are returned in the id field of every chat completion response
  • Historical data is retained for 90 days