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

# App settings and usage limits

> Configure provider credentials, usage allowances, and free usage in the management panel.

## Configure the app

1. In **Apps**, select the app associated with the AppKey. Check its **File retention hours** and upload limit settings. See [Files](https://docs.backapp.dev/files.md) for storage and upload behavior.
2. In **App credentials**, add or activate the credential for the provider used by the app's AI operations. V2 AI calls use the app's own credential. A missing credential returns HTTP 503 with `provider_not_configured`.
3. In **Plans**, configure any allowance overrides for this app. Configure the free allowance if unsubscribed users should be able to try an AI operation.

## Enable AI jobs

In **Apps**, add the operations you want to enable to **Allowed operations**. The field takes a JSON list, for example `["speech_to_text", "image_to_image", "text_to_text"]`. Configure an active OpenAI credential for [Speech to Text](https://docs.backapp.dev/ai/speech-to-text.md) and [Text to Text](https://docs.backapp.dev/ai/text-to-text.md), and an active OpenAI or Replicate credential for the [image models](https://docs.backapp.dev/ai/image-to-image.md) you want to offer. Confirm the app's usage allowance. Set **Job retention days** to control when new job records and their results expire. A blank value leaves jobs without a scheduled expiry. Source uploads follow **File retention hours** separately.

## Give unsubscribed users a free allowance

The default allowance for an unsubscribed user is **\$0**. To allow free use, add one **Plan** for that app with these settings:

| Field | Value |
| - | - |
| App | Select the app that will offer free usage. |
| Kind | **free (non-subscribers)** |
| Limit type | **fixed USD per period** |
| Limit value | A positive USD allowance approved for this app. |
| Period | Choose daily, weekly, monthly, yearly, or lifetime. Lifetime has no reset. |

Save the plan and verify the flow with an unsubscribed test user. The allowance applies per user within the app. Provider charges still accrue to the account behind the app's configured key.

## Configure subscribed users and subscription trials

Active subscribers, including users with an active subscription trial, follow the **paid** Plan. The default is 100% of the subscription price prorated to a rolling monthly window. Add a paid Plan to override the amount or period. Set **Trial limit value** on that plan if subscription trials need a different allowance. A blank trial value uses the paid plan's regular limit. [Subscription state](https://docs.backapp.dev/subscriptions.md) comes from the configured integration.

## How usage limits work

V2 image effects, transcription jobs, image transform jobs, and text generation jobs check recorded estimated spend before calling the provider. If recorded spend has reached the computed allowance, submission returns HTTP 402:

```json theme={"dark"}
{
  "error": {
    "code": "quota_exceeded",
    "message": "The usage limit of this account is reached."
  }
}
```

The check uses recorded usage. It does not reserve the next call's cost, and in-flight requests or metering delays can exceed the threshold. When the paid allowance cannot be computed from available price, period, or configuration data, this check allows the request. A fixed USD plan gives the check a known allowance. Uploading files and reading subscription state are separate operations.


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