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

# Get a generation

> Where a generation stands. Once it succeeds, each output has a private download link that lasts an hour; read the generation again for a fresh one. Reads are never charged.



## OpenAPI

````yaml /openapi.json get /generations/{id}
openapi: 3.1.0
info:
  title: Superscore Studio API
  version: '2026-11-29'
  description: >-
    Generate images and short videos with your organization's Studio API key.
    Every generation is asynchronous: create it, then poll its Location.
servers:
  - url: https://studio.superscore.ai/api/v1
security:
  - bearerAuth: []
paths:
  /generations/{id}:
    get:
      summary: Get a generation
      description: >-
        Where a generation stands. Once it succeeds, each output has a private
        download link that lasts an hour; read the generation again for a fresh
        one. Reads are never charged.
      parameters:
        - name: id
          in: path
          required: true
          schema:
            type: string
            format: uuid
      responses:
        '200':
          description: 'Finished: succeeded or failed.'
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Generation'
        '202':
          description: Still queued or running.
          headers:
            Location:
              description: Where to poll this generation.
              schema:
                type: string
            Retry-After:
              description: Seconds to wait before polling, while it runs.
              schema:
                type: integer
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Generation'
        '401':
          description: >-
            invalid_key: the Bearer key is missing, revoked or expired, or its
            issuer no longer has Superscore access.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '404':
          description: 'not_found: no such generation in your organization.'
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '503':
          description: >-
            temporarily_unavailable: retry with the same Idempotency-Key.
            dispatch_failed (generation routes): the job could not start and is
            settled as failed; retry with a new Idempotency-Key.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
components:
  schemas:
    Generation:
      type: object
      required:
        - id
        - status
        - outputs
        - billing
      properties:
        id:
          type: string
          format: uuid
        object:
          const: generation
        type:
          enum:
            - image
            - video
        model:
          type: string
        route:
          type: string
        status:
          enum:
            - queued
            - running
            - succeeded
            - failed
        created_at:
          type: string
          format: date-time
        finished_at:
          type:
            - string
            - 'null'
          format: date-time
        outputs:
          type: array
          items:
            type: object
            properties:
              index:
                type: integer
              url:
                type:
                  - string
                  - 'null'
                format: uri
              content_type:
                type: string
              expires_at:
                type:
                  - string
                  - 'null'
                format: date-time
        error:
          type:
            - object
            - 'null'
          properties:
            code:
              type: string
            message:
              type: string
        billing:
          type: object
          description: >-
            Held at the maximum before dispatch; on success, charged the
            provider's receipt (never above the maximum); on failure, released
            in full.
          properties:
            state:
              enum:
                - held
                - captured
                - released
            currency:
              const: USD
            expected_usd:
              type: number
            max_usd:
              type: number
            charged_usd:
              type:
                - number
                - 'null'
            provider_credits:
              type:
                - integer
                - 'null'
            superscore_fee_usd:
              type: number
            rate_version:
              type: string
            quote_id:
              type:
                - string
                - 'null'
    Error:
      type: object
      required:
        - error
      properties:
        error:
          type: object
          required:
            - code
            - message
            - request_id
          properties:
            code:
              type: string
            message:
              type: string
            request_id:
              type: string
            field:
              type: string
              description: The offending field, for validation errors.
  securitySchemes:
    bearerAuth:
      type: http
      scheme: bearer
      description: >-
        An organization API key (sk_studio_…) from Studio → API. Only the owner
        and admins create keys.

````

## Related topics

- [Generations](https://docs.superscore.ai/generations.md)
- [Quickstart](https://docs.superscore.ai/quickstart.md)
- [Idempotency and quotes](https://docs.superscore.ai/idempotency-and-quotes.md)
- [Superscore Studio API](https://docs.superscore.ai/index.md)
- [Errors](https://docs.superscore.ai/errors.md)


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.