Prepaid AI credits

AI 선불 크레딧

Draw usage costs from a prepaid credit balance.

···
html
<div class="credits"><div class="top">PREPAID WALLET <b id="balance">60 CR</b></div><div class="tiles" id="tiles"></div><div class="formula">120 CR START <span>·</span> 20 CR / TASK</div><label>TASKS <b id="tasks">3</b><input id="count" type="range" min="0" max="8" value="3"></label><div class="out" id="out">3 TASKS READY</div></div>
css
.credits{width:min(91%,540px);font:800 clamp(10px,2.5vmin,14px)/1.2 sans-serif}.top{display:flex;justify-content:space-between;align-items:end;gap:6px}.top b{font-size:clamp(22px,6vmin,42px);color:var(--accent)}.tiles{display:flex;gap:5px;margin:15px 0 9px}.tiles i{flex:1;height:clamp(42px,12vmin,75px);border:2px solid var(--accent);background:var(--accent);transition:.25s}.tiles i.spent{background:var(--surface);border-color:var(--line)}.formula{display:flex;justify-content:space-between;color:var(--muted)}label{display:block;margin-top:12px}label b{float:right;color:var(--accent)}input{display:block;width:100%;accent-color:var(--accent)}.out{text-align:center;padding:7px;background:var(--accent-2);color:#211b19}@media(min-width:700px){.credits{font-size:13px}}@media(min-width:700px){body>:first-child{transform:scale(1.25);transform-origin:center}}
js
const r=document.querySelector('#count'),tiles=document.querySelector('#tiles');tiles.innerHTML=Array.from({length:6},()=>'<i></i>').join('');function draw(){const tasks=+r.value,used=Math.min(tasks,6);document.querySelector('#tasks').textContent=tasks;document.querySelector('#balance').textContent=(120-used*20)+' CR';document.querySelectorAll('#tiles i').forEach((tile,i)=>tile.classList.toggle('spent',i<used));document.querySelector('#out').textContent=tasks>6?(tasks-6)+' TASKS WAIT FOR TOP-UP':tasks+' TASKS READY'}r.oninput=draw;draw();setTimeout(()=>{r.value=8;draw()},650);setTimeout(()=>{r.value=3;draw()},2600);

Prepaid AI credits let customers buy a balance first and draw down a stated number of credits per task. Unlike a subscription plus later usage charges, the prepaid balance creates a spending boundary.

Increase tasks in the demo to drain the balance. Further work waits when credits run out. Show both credits per task and the currency equivalent so users can interpret cost.

Stripe's 2025 AI pricing framework describes prepaid credits as a risk guardrail, and its 2026 billing comparison says the abstraction must be understandable. State expiry, refund and rollover rules too.

When to use

Use for variable AI demand when an upfront spending boundary helps.

Open as page ↗