c01407ce6d8c

OpenAPI 3.1.0MITraw.githubusercontent.com2026-08-11967631.3 MB
Generations

Get stored prompt, completion, and error content for a generation

get/generation/content

Query parameters

idstring required

The generation ID

Example:gen-1234567890

The generation ID

Response

Returns the stored prompt and completion content, plus the failure error when the generation failed

Example response

{
  "data": {
    "error": null,
    "input": {
      "messages": [
        {
          "content": "What is the meaning of life?",
          "role": "user"
        }
      ]
    },
    "output": {
      "completion": "The meaning of life is a philosophical question...",
      "reasoning": null
    }
  }
}