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

# Billing และ trials

> Minor credits, welcome credit และ payment errors

# Billing และ trials

Prism เก็บจำนวนเงินเป็น integer minor credits:

| จำนวนเงิน | Minor credits |
| --------- | ------------: |
| 1 บาท     |         `100` |
| 20 บาท    |        `2000` |
| 100 บาท   |       `10000` |

## Welcome-credit trial

Welcome-credit policy กำหนด grant ครั้งเดียวไว้ที่ 20 บาท (`2000` minor
credits) แต่การสมัครบัญชีอย่างเดียวไม่รับประกันว่าจะได้เครดิต Prism จะจัดบัญชี
เป็น trial ต่อเมื่อ ledger มี `welcome_credit` entry แล้ว

จนกว่าเจ้าของ key จะเติมเงินผ่าน mPAY หรือ Polar สะสมอย่างน้อย 100 บาท trial
จะใช้ได้เฉพาะ chat และโมเดลจาก `GET /v1/trial-policy`

Embeddings, image, video creation และ video polling จะคืน
`trial_scope_denied` ส่วน chat model นอก allowlist จะคืน
`trial_model_denied`

## HTTP 402

เครดิตหรือ budget ไม่พอจะคืน `402` พร้อม stable fields:

```json theme={null}
{
  "error": {
    "type": "payment_required",
    "code": "insufficient_credits",
    "action": "top_up",
    "help_url": "https://dashboard.prismgateway.io/billing"
  }
}
```

ให้ใช้ `action` แทนการเทียบข้อความ: `top_up` ให้เปิด `help_url` และ
`contact_org_admin` ให้ผู้ใช้ติดต่อผู้ดูแลองค์กร

[English version](/billing-and-trials)
