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

# Get Billing Rates

> What a minute of a phone call costs, for each voice model an agent can run on, and the
flat prices around it. Required scope `billing:read`. The prices are the ones a call is
charged from, so a price read here is the price a call on that model is charged.

Every price is in credits (cents) per minute. `voice_models` lists one entry per model, in a
stable order (`gemini-3.1-flash-live`, `gemini-3.8-live`, `gpt-live`); `model` is the same id an
agent carries as `model`. A call on a model with no price of its own is charged
`default_rate_per_minute_cents`. Browser calls and the part of a call after it is passed to a
person keep their own flat prices, whatever the model.

`ai_training_multiplier` is `2` on a workspace that opted out of AI training and `1` otherwise:
what the workspace is charged per minute is the price times it, exactly as on its call charges.

A key limited to agents is refused with `403 API_KEY_AGENT_SCOPED`, as the rest of billing is.


What a minute of a phone call costs on each voice model, and the flat prices around it. Requires `billing:read`. These are the prices a call is charged from: a price you read here is the price a call on that model is charged.

```bash theme={null}
curl "https://api.goyappr.com/billing/rates" \
  -H "Authorization: Bearer $YAPPR_API_KEY"
```

```json theme={null}
{
  "currency": "usd",
  "voice_models": [
    { "model": "gemini-3.1-flash-live", "name": "Gemini 3.1 Flash Live", "rate_per_minute_cents": 30, "effective_from": "2026-09-01T00:00:00.000Z" },
    { "model": "gemini-3.8-live", "name": "Gemini 3.8 Live", "rate_per_minute_cents": 30, "effective_from": "2026-09-01T00:00:00.000Z" },
    { "model": "gpt-live", "name": "GPT Live", "rate_per_minute_cents": 30, "effective_from": "2026-09-01T00:00:00.000Z" }
  ],
  "default_rate_per_minute_cents": 30,
  "browser_call_rate_per_minute_cents": 10,
  "after_transfer_rate_per_minute_cents": 25,
  "ai_training_multiplier": 1
}
```

## Per voice model

Each voice model an agent can run on has its own price per minute, listed in `voice_models`. `model` is the same id an agent carries as `model` (see [the voice models](https://docs.goyappr.com/api-reference/agents/get.md)), so the price beside a model in your own picker is `voice_models[].rate_per_minute_cents` for the agent's `model`. The list is in a stable order: `gemini-3.1-flash-live`, `gemini-3.8-live`, `gpt-live`.

| Field | Meaning |
| - | - |
| `voice_models[].model` | The model id. |
| `voice_models[].name` | The model's name, for display. |
| `voice_models[].rate_per_minute_cents` | Credits (cents) per minute of a phone call on this model, before `ai_training_multiplier`. |
| `voice_models[].effective_from` | When this price took effect. Calls are charged the price in force when they end. |

A call is charged at the price of the model it **ran on**. A call on a model with no price of its own, or whose model is not known, is charged `default_rate_per_minute_cents`. Today every model is priced the same as the default, so no call's price depends on the model until a model's price is changed here first.

## What does not depend on the model

* `browser_call_rate_per_minute_cents` - browser calls: your test calls from the dashboard, calls through a shared link, and browser calls started through the API.
* `after_transfer_rate_per_minute_cents` - the part of a call after it is passed to a person. A call passed to a person is charged in two parts: up to the handoff at its model's price, then from the handoff at this one.

## Your workspace's multiplier

`ai_training_multiplier` is `2` if the workspace opted out of AI training and `1` otherwise. What the workspace is charged per minute is the listed price times it, which is how each call's charge is worked out. Each call's charge is rounded up to the next cent.

A key limited to agents is refused with `403 API_KEY_AGENT_SCOPED`, like the rest of billing. To see what a call actually cost, read [`GET /calls/{id}`](https://docs.goyappr.com/api-reference/calls/get); for what was spent and on what, [Billing consumption](https://docs.goyappr.com/api-reference/billing/consumption.md).


## OpenAPI

````yaml GET /billing/rates
openapi: 3.1.0
info:
  title: Yappr API
  description: >
    Create and manage AI voice agents, purchase phone numbers, configure tools,
    and initiate calls — all via REST.
  version: 1.0.0
  contact:
    url: https://goyappr.com
servers:
  - url: https://api.goyappr.com
    description: Production
security:
  - apiKey: []
paths:
  /billing/rates:
    get:
      tags:
        - Billing
      summary: Get per-minute rates, per voice model
      description: >
        What a minute of a phone call costs, for each voice model an agent can
        run on, and the

        flat prices around it. Required scope `billing:read`. The prices are the
        ones a call is

        charged from, so a price read here is the price a call on that model is
        charged.


        Every price is in credits (cents) per minute. `voice_models` lists one
        entry per model, in a

        stable order (`gemini-3.1-flash-live`, `gemini-3.8-live`, `gpt-live`);
        `model` is the same id an

        agent carries as `model`. A call on a model with no price of its own is
        charged

        `default_rate_per_minute_cents`. Browser calls and the part of a call
        after it is passed to a

        person keep their own flat prices, whatever the model.


        `ai_training_multiplier` is `2` on a workspace that opted out of AI
        training and `1` otherwise:

        what the workspace is charged per minute is the price times it, exactly
        as on its call charges.


        A key limited to agents is refused with `403 API_KEY_AGENT_SCOPED`, as
        the rest of billing is.
      operationId: getBillingRates
      responses:
        '200':
          description: The prices
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/BillingRates'
              example:
                currency: usd
                voice_models:
                  - model: gemini-3.1-flash-live
                    name: Gemini 3.1 Flash Live
                    rate_per_minute_cents: 30
                    effective_from: '2026-09-01T00:00:00.000Z'
                  - model: gemini-3.8-live
                    name: Gemini 3.8 Live
                    rate_per_minute_cents: 30
                    effective_from: '2026-09-01T00:00:00.000Z'
                  - model: gpt-live
                    name: GPT Live
                    rate_per_minute_cents: 30
                    effective_from: '2026-09-01T00:00:00.000Z'
                default_rate_per_minute_cents: 30
                browser_call_rate_per_minute_cents: 10
                after_transfer_rate_per_minute_cents: 25
                ai_training_multiplier: 1
        '400':
          description: >-
            BILLING_QUERY_INVALID: a query parameter. This route reads none, and
            anything sent is refused by name rather than ignored.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '401':
          description: Unauthorized
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '403':
          description: >
            INSUFFICIENT_SCOPE — the key lacks `billing:read`.
            API_KEY_AGENT_SCOPED — the key is limited to agents, and billing
            belongs to the whole workspace.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
components:
  schemas:
    BillingRates:
      type: object
      required:
        - currency
        - voice_models
        - default_rate_per_minute_cents
        - browser_call_rate_per_minute_cents
        - after_transfer_rate_per_minute_cents
        - ai_training_multiplier
      properties:
        currency:
          type: string
          example: usd
        voice_models:
          type: array
          description: >-
            One entry per voice model with a price of its own, ordered by
            `model`.
          items:
            $ref: '#/components/schemas/VoiceModelRate'
        default_rate_per_minute_cents:
          type: integer
          nullable: true
          description: >-
            What a phone minute costs on a model with no price of its own, or
            when a call's model is not known. Credits (cents) per minute.
          example: 30
        browser_call_rate_per_minute_cents:
          type: integer
          nullable: true
          description: >-
            Browser calls - your test calls, shared links and browser calls
            started through the API - whatever the model.
          example: 10
        after_transfer_rate_per_minute_cents:
          type: integer
          nullable: true
          description: >-
            The part of a call after it is passed to a person, whatever the
            model.
          example: 25
        ai_training_multiplier:
          type: integer
          enum:
            - 1
            - 2
          description: >-
            2 on a workspace that opted out of AI training, 1 otherwise. The
            price charged per minute is the listed price times this.
    Error:
      type: object
      required:
        - error
        - code
      description: >
        Every error response - the secret-key API and the browser data plane
        alike - carries a

        human-readable `error` and a stable machine `code`, and a refusal that
        names what is

        wrong with the request carries `issues[]` too. Branch on `code`, never
        on the `error`

        text. A refusal that names nothing more specific carries the code its
        status means:

        `BAD_REQUEST` (400), `UNAUTHORIZED` (401, the browser data plane; the
        secret-key API

        answers `MISSING_KEY`, `INVALID_KEY` or `EXPIRED_KEY`), `BILLING_ERROR`
        (402),

        `FORBIDDEN` (403), `NOT_FOUND` (404), `METHOD_NOT_ALLOWED` (405),
        `CONFLICT` (409),

        `GONE` (410), `PAYLOAD_TOO_LARGE` (413), `UNSUPPORTED_MEDIA_TYPE` (415),

        `UNPROCESSABLE_REQUEST` (422), `RATE_LIMIT` (429), `INTERNAL_ERROR`
        (500),

        `UPSTREAM_ERROR` (502), `SERVICE_UNAVAILABLE` (503), `UPSTREAM_TIMEOUT`
        (504). Some

        refusals add members of their own beside these (a call request's
        `status`, a workflow's

        `current_version`); the operation says which.
      properties:
        error:
          type: string
          description: The refusal, in one sentence for a person. Its wording may change.
        code:
          type: string
          description: The stable code to branch on.
        issues:
          type: array
          description: >
            Each thing at fault, on a 400 or 422 that names them: every query
            parameter or body field, not just the first. `path` is the
            parameter's name or the field's location.
          items:
            type: object
            required:
              - code
              - message
            properties:
              code:
                type: string
                description: >-
                  query_param_unknown, query_param_repeated, query_param_blank,
                  query_param_invalid, field_unknown, field_required,
                  field_invalid, or the route's own word.
              path:
                type: string
              message:
                type: string
    VoiceModelRate:
      type: object
      required:
        - model
        - name
        - rate_per_minute_cents
        - effective_from
      properties:
        model:
          type: string
          description: The model id, the same value an agent carries as `model`.
          example: gpt-live
        name:
          type: string
          example: GPT Live
        rate_per_minute_cents:
          type: integer
          description: >-
            Credits (cents) per minute of a phone call on this model, before the
            AI-training multiplier.
          example: 30
        effective_from:
          type: string
          format: date-time
          nullable: true
          description: When this price took effect.
  securitySchemes:
    apiKey:
      type: http
      scheme: bearer
      bearerFormat: API Key
      description: >-
        Your Yappr API key (e.g. `ypr_live_...`). Generate one in the dashboard
        under **Settings → API Keys**. No key is `401 MISSING_KEY`; a key that
        is not one of ours, or is revoked, is `401 INVALID_KEY`; an expired one
        is `401 EXPIRED_KEY`. A valid key without the scope an operation needs
        is `403 INSUFFICIENT_SCOPE` on every operation, and the message names
        the scope. Every response, a 401 included, carries X-RateLimit-Limit,
        X-RateLimit-Remaining and X-RateLimit-Reset: the budget is 60 requests a
        minute per API key. Every 429, whatever its code, carries Retry-After
        (whole seconds, never zero): the per-key budget's `RATE_LIMIT` asks for
        what is left of the minute, a route's daily cap (`RATE_LIMITED`) for the
        time until that cap resets. All four headers are listed in
        Access-Control-Expose-Headers, so a browser can read them. A path the
        API does not serve (an unknown sub-path, an id left empty) is `404
        ROUTE_NOT_FOUND`, and a method a served path does not take is `405
        METHOD_NOT_ALLOWED` with an `Allow` header; both are answered before any
        scope check, and nothing is read or changed. A trailing slash is ignored
        where it cannot be an id left empty (`POST /calls/` is `POST /calls`)
        and refused where it can (`GET /calls/`). A doubled slash inside a path
        is merged into one before the request reaches the API (`GET //calls` is
        `GET /calls`).

````

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