Dibbla Docs Get started Guides Workflows Changelog
Open Console
Reference

AI credits

How AI on Dibbla's models is paid for — a prepaid balance in euro, 5 % at top-up and list price per call — with automatic top-up, warnings, the monthly limit, and the CREDITS_EXHAUSTED and MONTHLY_LIMIT_REACHED errors your app should handle.

AI on Dibbla’s models is paid in advance. Your organization tops up a balance of AI credits in euro, and every call your apps, workflows and tools make through the AI gateway with Dibbla’s key draws that call’s price from it.

  • 5 % is added when you top up — not per call. €20 of credits costs €21, plus VAT. That 5 % is Dibbla’s whole share.
  • Every call costs the provider’s list price, converted to euro. Dibbla adds no markup per token. The Cost column in the AI console is exactly what a call drew.
  • The smallest top-up is €20.
  • Credits do not expire. They are not refunded, and neither is the 5 %.

Credits are on Org settings → Plan in the console, under AI credits: the balance, the top-up, the monthly limit, and a history of every top-up, every credit from Dibbla and each day’s AI usage. The same credits are used on every plan — Hobby, Business and Enterprise alike.

What is drawn, and what is not

Drawn from the credits: calls made with Dibbla’s key — from a deployed app, a workflow’s agent node, a pipeline, or a tool on your laptop pointed at the gateway (dibbla ai env).

Never drawn, never stopped:

  • Your own provider key. When your organization has stored its own OpenAI or Anthropic key under Org settings → AI (Bring your own provider key), calls on that key are paid to the provider directly. They do not touch the credits, do not count toward the monthly limit, and are never refused by either.
  • The maintenance agent and application checks. Dibbla pays for those calls.
  • A model call your app makes straight to a provider, with a key of its own, never reaches the gateway at all.

Only catalog models on Dibbla’s key. A call is drawn at the price of its model in Dibbla’s catalog, so a chat, responses or messages call on Dibbla’s key for a model that is not in the catalog is refused before it reaches the provider, and nothing is drawn:

{"error":{"code":"MODEL_NOT_IN_CATALOG","message":"model \"gpt-4o-mini\" is not in the Dibbla model catalog for openai. …"}}

The models the catalog holds are listed in the console’s model pickers and on Models & providers. With your organization’s own provider key, any model of that provider can be called.

Topping up

An organization owner or admin opens Org settings → Plan, enters an amount in whole euros under AI credits — or picks one of the preset amounts — and chooses Top up with card. The console says what you pay before you leave it (“€20.00 in credits. You pay €21.00 + VAT”). Payment is Stripe Checkout, in euro, and your bank may ask you to confirm it. Back in the console the balance shows the new credits as soon as Stripe has confirmed the payment.

  • Minimum €20, maximum €5,000 per top-up.
  • VAT is added on top of the credits and the 5 %, by the same Stripe tax handling as the Business subscription. The receipt shows the credits, the top-up fee and the VAT as separate lines.
  • New organizations can top up at most €100 per 24 hours during their first 30 days. The console shows what is left; contact Dibbla to raise it.
  • Members and viewers see the balance but cannot top up. Ask an owner or admin.
  • A credit from Dibbla — given by us, for example as compensation — appears in the history as Credit from Dibbla and is used like any other credit.

Automatic top-up

So that your apps never stop because the balance ran out, an owner or admin can turn on automatic top-up on the same card: an amount (at least €20) and a threshold. The suggestion is €20 when the balance falls below €5.

  • When calls take the balance below the threshold, the saved card is charged the amount plus 5 %, and the credits are added. It happens once each time the balance crosses the threshold — many calls at the same moment do not charge the card more than once.
  • It needs a saved card. The card from an earlier top-up is the one used; without one, automatic top-up cannot be turned on.
  • If the charge fails — an expired card, a declined payment — automatic top-up pauses instead of retrying. Owners and admins are mailed, and the console shows it as paused. Topping up once with a working card saves that card and turns automatic top-up back on.
  • Turning it off, or changing the amount or threshold, takes effect at once and is logged.

Warnings before the credits run out

Owners and admins are mailed before the balance reaches zero, with the balance and a link to the top-up. Each top-up — and each credit from Dibbla — sets two marks, and each mail is sent once per top-up:

  • When half is used — the balance falls below half of what it was right after the top-up.
  • When the credits are running low — the balance falls below 10 % of the top-up, or below €2 if that is more.

With automatic top-up on there is no “running low” mail, since the card is charged instead; you are mailed if that charge fails.

When the credits are used up

The balance may go €1 below zero, so a call that is already under way does not fail halfway. A call that could take it further is refused before it reaches the provider, with HTTP 402 and the code CREDITS_EXHAUSTED:

HTTP/1.1 402 Payment Required
Content-Type: application/json

{"error":{"code":"CREDITS_EXHAUSTED","message":"The organization's AI credits are used up, so this call was not made. Top up the credits in the Dibbla console (Organization settings → Plan) and the next call works at once. https://console.dibbla.com/org-settings/plan"}}
  • Retrying does not help; topping up does. The next call after a top-up works at once.
  • Calls started at the same moment never pass the stop together. Each call first reserves what it may cost — its input plus the most output it may write (max_tokens and its equivalents) — and is let through only if that fits. A call can therefore be refused with a little above −€1 left, when what it may cost does not fit. Setting max_tokens keeps the reservation close to what the call really costs.
  • The app’s owners are mailed once, with a link to the top-up, and again when the app’s AI works. The console shows a banner while the organization is stopped.

The monthly limit

An owner or admin can set a hard monthly limit on AI spending, in euro, on Org settings → Plan — Set a limit under Monthly limit. It is your own guard against a runaway app: it holds even when there are credits left, and even with automatic top-up on.

  • What counts is what calls drew from the credits this calendar month, in UTC. The card shows it: “€12.40 of €50.00 used this month”.
  • When the limit is reached, a call on Dibbla’s models is refused before it reaches the provider, with HTTP 402 and the code MONTHLY_LIMIT_REACHED.
  • A new month starts from zero: calls work again on the 1st without anyone doing anything.
  • Raising or removing the limit works at once — the next call is decided against the new limit.
  • Calls started at the same moment never pass it together, by the same reservation as for the credits.
  • Your own provider key, the maintenance agent and application checks are never counted and never stopped.
  • The app’s owners and admins are mailed once, and again when the app’s AI works.
HTTP/1.1 402 Payment Required
Content-Type: application/json

{"error":{"code":"MONTHLY_LIMIT_REACHED","message":"The organization's monthly limit for AI spending (50.00 EUR) has been reached, so this call was not made. Calls work again on 1 November 2026 (UTC), or at once if an organization admin raises or removes the limit in the Dibbla console (Organization settings → Plan). https://console.dibbla.com/org-settings/plan"}}

Showing the error to your app’s users

Both refusals are a 402 with a JSON body in the shape OpenAI’s API uses for errors, so the provider SDKs raise them as ordinary API errors. The message is written for the organization’s admins — it says where to top up or raise the limit — and is not meant for the people who use your app. Catch the two codes and show your users something calm instead, and do not retry: the call will be refused again until someone tops up, raises the limit or the month turns.

import openai

AI_PAUSED = {"CREDITS_EXHAUSTED", "MONTHLY_LIMIT_REACHED"}

def summarise(text):
  try:
      reply = client.chat.completions.create(
          model="gpt-5-mini",
          max_tokens=500,
          messages=[{"role": "user", "content": text}],
      )
      return reply.choices[0].message.content
  except openai.APIStatusError as e:
      if e.status_code == 402 and e.code in AI_PAUSED:
          # Not the user's fault, and retrying will not help.
          return ("The AI features are paused right now. "
                  "The team behind this app has been told.")
      raise
import OpenAI from "openai";

const AI_PAUSED = new Set(["CREDITS_EXHAUSTED", "MONTHLY_LIMIT_REACHED"]);

app.post("/summarise", async (req, res) => {
try {
  const reply = await client.chat.completions.create({
    model: "gpt-5-mini",
    max_tokens: 500,
    messages: [{ role: "user", content: req.body.text }],
  });
  res.json({ summary: reply.choices[0].message.content });
} catch (err) {
  if (err instanceof OpenAI.APIError && err.status === 402 && AI_PAUSED.has(err.code)) {
    // Not the user's fault, and retrying will not help.
    return res.status(503).json({
      error: "The AI features are paused right now. The team behind this app has been told.",
    });
  }
  throw err;
}
});
import anthropic

AI_PAUSED = {"CREDITS_EXHAUSTED", "MONTHLY_LIMIT_REACHED"}

def ai_paused(e):
  body = e.body if isinstance(e.body, dict) else {}
  return e.status_code == 402 and body.get("error", {}).get("code") in AI_PAUSED

try:
  reply = client.messages.create(model="claude-haiku-4-5", max_tokens=500, messages=[...])
except anthropic.APIStatusError as e:
  if ai_paused(e):
      show_notice("The AI features are paused right now. "
                  "The team behind this app has been told.")
  else:
      raise

With the OpenAI SDKs the code is on the error itself (e.code, err.code); with the Anthropic SDK it is in the body, under error.code. Any other HTTP client gets the same JSON, and the code at error.code.

A workflow’s agent node fails its step with the same message, and the run shows it.

You do not need to tell the owner

The organization’s owners — and for the monthly limit, its admins — are mailed when an app’s AI is stopped, with a link straight to the top-up or the limit. Your app only needs to tell its own users that AI is paused.