---
title: "Credit charges per action so the SPA can render on-button cost badges."
method: GET
path: "/api/v1/billing/credit-costs"
tags: ["Billing"]
---

# Credit charges per action so the SPA can render on-button cost badges.

`GET /api/v1/billing/credit-costs`

## Request

- Base URL: `https://api.avatarfactory.io` (the document declares no server; this is the origin it was published from)
- URL: `https://api.avatarfactory.io/api/v1/billing/credit-costs`
- Auth: one of:
  - API key in cookie `session`
  - HTTP bearer

<br/>Internal provider USD costs are deliberately not included. The demo account<br/>reads a third of every price, what its meter charges (``demo_pricing``).

## Response `200`

OK

- CreditCostsResponse: Public credit charges per action, for the on-button cost badges. Credit amounts only. Our internal provider USD cost (``PROVIDER_USD_RATES``) is never exposed here.
  - `avatar_finalize` number, required
  - `image` number, required
  - `refine` number, required
  - `video_models` object[], required
  - `video_per_second` object, required
  - `voice` number, required
  - `voice_refine` number, required

## Other responses

- `422`: Unprocessable Entity

---

[API](https://skmtc.dev/avatarfactory/apis/avatarfactory-api.md) · [All operations](https://skmtc.dev/avatarfactory/apis/avatarfactory-api/llms.txt) · [OpenAPI document](https://skmtc.dev/avatarfactory/apis/avatarfactory-api/revisions/66fc7aa3f296?raw)
