buy_credits
Buy credits
Description
Out of credits? Top up with a credit PACK. Call with no argument to list the available packs (id · credits · price), from the smallest ($10 for 400 credits, for something small and quick) up to $400 for 17,000; $25 buys 1,000 and the bigger packs carry a little more value. Every pack grants exactly its listed credits. If the account has a saved card and you have billing-admin rights, calling with `pack` quotes the exact charge and calling again with confirm:true AND the quote's quote_token charges the saved card instantly (same one-click top-up as the app — no redirect). If there's no saved card yet, you get a Stripe checkout URL to hand your human for the FIRST purchase; their card saves for one-click after that. Packs only; subscriptions are managed by a person in Billing. IF YOU ARE AN AGENT HOLDING YOUR OWN PAYMENT CREDENTIAL, there is a third path that needs no human at all: `POST /api/billing/machine-payment` with a `packId` answers HTTP 402 carrying an MPP challenge, and grants the pack once you authorise and retry with the credential — the same packs, the same prices, the same credits. `GET /api/billing/config` carries a `machinePayments` block listing the packs with their per-credit rates and saying whether that lane is enabled on this server. Most agents do NOT have their own credential yet, so the checkout link above remains the normal path. To stop running out entirely, turn on auto-reload with set_auto_reload (admin) — low balances then top themselves up from the saved card automatically.
Parameters
| Parameter | Type | Description |
|---|---|---|
pack | string | the pack id to buy (e.g. pack-2050) — omit to list the available packs first |
confirm | boolean | set true to actually charge the saved card for `pack` (required for the one-click charge; ignored on the checkout-link path) |
quote_token | string | the quoteToken returned by the quote step — REQUIRED (with confirm:true) to charge; it binds the exact pack + price you quoted (10-minute validity) and makes a retried confirm idempotent |
offer | string | a partner offer code (e.g. SECRET30): instead of a pack, returns the Starter-free-for-1-month checkout link (300 credits during the month, $0 today, card required) when this account can take it |
Example call
Every required parameter is shown, filled from the schema where it gives a value and otherwise with a placeholder naming the type. Replace the placeholders with real values. The same call works on the MCP server, the CLI and POST https://app.hermoso.ai/v1/tools/buy_credits.
MCP (tools/call)
{"jsonrpc":"2.0","id":1,"method":"tools/call","params":{"name":"buy_credits","arguments":{}}}
CLI
hermoso call buy_credits --json '{}'
Credits
Credits are spent only on two things: running an AI model (image, video, voice, text, planning, post-production) and Ad Spy research. See Credits & costs.
Related tools
set_auto_reloadSet auto-reloadhermoso_creditsCredit balancehermoso_other_capabilitiesWhere each Hermoso feature ishermoso_capabilitiesHermoso models, options and credit costsreply_to_inbox_itemReply to anything in the inboxset_watch_keywordsWatch keywords on Threads (and X)whats_newWhat is new on every channel since last time