Buy a pack of 1 000 Plune AI credits for $80
const url = 'https://beta-api.plune.ai/v1/settings/ai/credits/packs';const options = { method: 'POST', headers: { cookie: 'plune_session=<plune_session>', 'Content-Type': 'application/json' }, body: '{"provider":"monopay"}'};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request POST \ --url https://beta-api.plune.ai/v1/settings/ai/credits/packs \ --header 'Content-Type: application/json' \ --cookie plune_session=<plune_session> \ --data '{ "provider": "monopay" }'#1427 (D9–D11, frame 01). Answers the page to pay on: Paddle’s checkout (US dollars), a Monopay invoice, or our LiqPay page that posts its signed form — the hryvnia amount is $80 × monobank’s selling rate of today, rounded up to the hryvnia. The pack is pending until the provider’s signed webhook says it is paid; then ONE grant of 1 000 credits, usable 12 months from the payment, is written (a repeated webhook writes nothing more). Paid plans only (D11): Free gets 409 paid_plan_required. The project owner, from the signed-in session, who owns the plan (the account itself, or the company’s owner). The link lives 24 hours. Ten a minute.
Authorizations
Section titled “Authorizations ”Request Body required
Section titled “Request Body required ”object
Examples
In hryvnias through monobank
{ "provider": "monopay"}Responses
Section titled “ Responses ”The page to pay on, and the pack waiting for it
object
#1427: one purchase of a Plune AI credit pack — 1 000 credits for $80, usable 12 months from its payment (D9–D12).
object
pending: asked of the provider, not paid yet; paid: its credits granted; failed: nothing was charged.
Bought by overage (D12), not by a click.
What Monopay or LiqPay charges, in kopiyky: $80 × monobank’s selling rate of that day (D9). null for Paddle, or before the amount is fixed.
The page to pay it on while it is pending and its link lives (24 hours) — a checkout, or a Monopay overage invoice; else null.
12 months from paidAt; null until paid.
Example
{ "url": "https://pay.mbnk.biz/inv-1", "pack": { "id": "pack-1", "provider": "monopay", "status": "pending", "auto": false, "credits": 1000, "usdCents": 8000, "uahKopiyky": 331000, "payUrl": "https://pay.mbnk.biz/inv-1", "createdAt": "2026-09-16T09:12:04.151Z", "paidAt": null, "validUntil": null }}Not JSON, or a provider that is not paddle, monopay or liqpay
object
Example
{ "error": "validation failed — provider: must be paddle, monopay or liqpay"}No / invalid session
A member asked (project owner only); an API token (session_required); not the plan’s own owner — the account itself, or the company’s owner (owner_only). A reader is refused by the project guard.
object
Example
{ "error": "only the owner of the plan pays for its Plune AI credits", "code": "owner_only"}paid_plan_required: the plan is Free (D11)
object
Example
{ "error": "Plune AI credit packs and overage are for paid plans — move to Personal or Team first", "code": "paid_plan_required"}Rate-limited: the per-route throttle, or the per-minute request limit of the plan an API token counts by (#1442; the body names the plan, #2092). Retry-After carries the seconds until the window rolls over.
object
Example generated
{ "error": "example"}Headers
Section titled “Headers ”Seconds until the window rolls over
provider_error: the provider refused to open a page; nothing is pending
object
Example
{ "error": "the payment provider refused to open a checkout", "code": "provider_error"}provider_not_configured (Paddle also needs PADDLE_PRICE_CREDIT_PACK), provider_unreachable, rate_unavailable (no USD/UAH rate); or no credits ledger on this server
object
Example
{ "error": "packs through paddle are not configured on this server", "code": "provider_not_configured"}