> ## Documentation Index
> Fetch the complete documentation index at: https://openrouter.ai/docs/llms.txt
> Use this file to discover all available pages before exploring further.

# GenerationContentResponse

Stored prompt and completion content for a generation

## Example Usage

```typescript theme={null}
import { GenerationContentResponse } from "@openrouter/sdk/models";

let value: GenerationContentResponse = {
  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,
    },
  },
};
```

## Fields

| Field | Type | Required | Description | Example |
| - | - | - | - | - |
| `data` | [models.GenerationContentData](../models/generationcontentdata.mdx) | ✔️ | Stored prompt and completion content, plus the failure error when one was stored | \{ "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 } } |
