---
title: "Get actual recorded generation costs"
method: GET
path: "/v2/generate/{id}/costs"
tags: ["Generate"]
---

# Get actual recorded generation costs

`GET /v2/generate/{id}/costs`

## Request

- Base URL: `https://api.sync.so`
- URL: `https://api.sync.so/v2/generate/{id}/costs`
- Auth: API key in header `x-api-key`

Recorded lip-sync and dubbing charges for a past generation. Credit amounts are USD face value, not cash paid. Metered usage excludes invoice adjustments and tax. A null total means one or more components are pending or unavailable. Does not estimate prices or change billing.

## Path parameters

- `id` string, required

## Response `200`

- GenerationCostsDto
  - `generationId` string, uuid, required
  - `generationStatus` string, required
  - `currency` 'USD', required
  - `availability` 'complete' | 'pending' | 'partial' | 'unavailable', required
  - `totalCostUsd` string, nullable, required
  - `knownSubtotalUsd` string, required
  - `retryAfterSeconds` integer, nullable, required
  - `components` object[], required
    - `type` 'lipsync' | 'dubbing' | 'speech_synthesis', required
    - `operationId` string, uuid, nullable, required
    - `status` 'recorded' | 'pending' | 'unavailable' | 'not_charged', required
    - `amountUsd` string, nullable, required
    - `credits` string, nullable, required
    - `valueBasis` 'credit_face_value' | 'metered_usage' | 'none', nullable, required
    - `quantity` number, nullable, required
    - `unit` 'frames' | 'seconds', required
    - `unitRateUsd` string, nullable, required
    - `source` 'credit_ledger' | 'recorded_usage' | 'billing_context', nullable, required
    - `reason` string, nullable, required
  - `excludedCosts` string[], required

## Other responses

- `400`: Invalid generation ID
- `401`: Authentication required
- `404`: Generation not found or inaccessible

## Changes

- **2026-10-30** `e93bb609962a`: 1 info
  - endpoint added

[Operation history](https://skmtc.dev/sync/apis/sync-api-v2/changes/v2/generate/:id/costs/get.md)

---

[API](https://skmtc.dev/sync/apis/sync-api-v2.md) - [All operations](https://skmtc.dev/sync/apis/sync-api-v2/llms.txt) - [OpenAPI document](https://skmtc.dev/sync/apis/sync-api-v2/revisions/26662c96c138?raw)
