# Credits and Models — BrandApp Playground

> Read the AI credit balance and the available model catalog in parallel from a Server Component.

- Canonical page: https://brandapp-playground.vercel.app/ai/credits
- Markdown: https://brandapp-playground.vercel.app/ai/credits.md
- SDK module: `@reopt-ai/brandapp-sdk/ai`

## API

- `ai.credits()` → `{ balance, limit, percentage, status, resetAt }`
- `ai.models()` → available models with their tier information

Both run under one `Promise.all()` in a Server Component, so the rendered page needs no
client JavaScript for the data itself.

## Related

- [AI Overview](https://brandapp-playground.vercel.app/ai.md)
- [AI Hooks](https://brandapp-playground.vercel.app/hooks/ai.md)
- [Error Handling](https://brandapp-playground.vercel.app/errors.md)

---

Index of every document: https://brandapp-playground.vercel.app/llms.txt
Single-file copy: https://brandapp-playground.vercel.app/llms-full.txt
HTTP API description: https://brandapp-playground.vercel.app/openapi.json
