---
title: "Get stored prompt and completion content for a generation"
method: GET
path: "/generation/content"
tags: ["Generations"]
---

# Get stored prompt and completion content for a generation

`GET /generation/content`

## Query parameters

- `id` string, required — The generation ID

## Response `200`

Returns the stored prompt and completion content

- GenerationContentResponse — Stored prompt and completion content for a generation
  - `data` GenerationContentData, required — Stored prompt and completion content
    - `input` union, required — The input to the generation — either a prompt string or an array of messages
      - object
        - `prompt` string, required
      - object
        - `messages` unknown[], required
          - unknown
    - `output` object, required — The output from the generation
      - `completion` string, nullable, required — The completion output
      - `reasoning` string, nullable, required — Reasoning/thinking output, if any

## Other responses

- `401` — Unauthorized - Authentication required or invalid credentials
- `403` — Forbidden - Authentication successful but insufficient permissions
- `404` — Not Found - Resource does not exist
- `429` — Too Many Requests - Rate limit exceeded
- `500` — Internal Server Error - Unexpected server error
- `502` — Bad Gateway - Provider/upstream API failure
- `524` — Infrastructure Timeout - Provider request timed out at edge network
- `529` — Provider Overloaded - Provider is temporarily overloaded

---

[API](https://skmtc.net/openrouterteam/apis/openrouter-api.md) · [All operations](https://skmtc.net/openrouterteam/apis/openrouter-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/openrouterteam/openrouter-api/versions/f3788187f5b7/schema)
