v124

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

Get stored prompt and completion 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

Example response

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