Account · Licence credits & top-ups
Prepaid credits for metered runs.
Plugins and API clients open this route (topUpUrl) when checking or replenishing engine credits on PreviewFix. Local plugin features and validation endpoints always use 0 credits; server-side builds and AI operations deduct fixed unit counts from an append-only ledger with zero surprise overages.
- 0 credits for validation & local tools: Schema checks, QR generation and 10-row PDF previews never deduct units.
- Hard stop at zero balance: Calls exceeding available credits return HTTP
402(insufficient_credits) before any work runs. - BYOK charges 1 base unit: Supplying your own Anthropic, OpenAI or Gemini key runs AI models on your account.
- Portal-managed licences: No payment form is hosted on this reference page; inspect active keys in /portal/licences.
1 · Credit mechanics
Metered cleanly before work runs.
Every marketplace plugin and bearer API key shares the same ledger rules, idempotency guarantees and Bring Your Own Key (BYOK) tariff.
On-device & validation calls cost zero
Editor-only plugin tools run locally inside your host platform without touching the credit ledger. On the server, every validation and preview operation — pdf.preview, einvoice.validate, dpp.qr, dpp.validate, vat.validate, omnibus.lowest-price and llms.validate — is permanently rated at 0 units so malformed data is caught before a paid build executes.
7 micro-API endpoints rated at 0 units
Atomic pre-check & idempotency
Metered deterministic and AI endpoints lock the licence row inside a database transaction and check Idempotency-Key before running. Retrying the same key within 24 hours replays the stored response at zero extra charge. If a request exceeds your remaining balance, the server returns HTTP 402 (insufficient_credits) immediately — never invoking an engine or generating an unexpected overage invoice.
Unique per (licence_id, idempotency_key)
Bring Your Own Key (BYOK) on AI calls
AI-assisted operations (tenders.readiness, alt-text.generate, translate.batch, plus plugin actions prefixed llm. or ai.) accept your own anthropic, openai or gemini API key in the byok field. Model tokens are billed directly by your provider while PreviewFix deducts only 1 base unit (BYOK_BASE_UNITS = 1) for sanitised prompt framing and schema validation.
Keys execute single-call & are never logged
2 · Unit tariffs & reference packs
Fixed unit costs and pack tiers.
Unit prices are defined in the engine micro-API contract so plugins, workflow nodes and custom scripts spend from the same predictable tariff.
Representative engine operation unit costs
All endpoints respond at POST /api/v1/engines/<path>; live catalogue available via GET /api/v1/engines.
| Operations | Execution mode | Standard rate | With BYOK | What is metered |
|---|---|---|---|---|
Stateless checks & local previews pdf.previeweinvoice.validatedpp.qrdpp.validatevat.validateomnibus.lowest-pricellms.validate | Validation & preview | 0 units | Not applicable | First-10-row PDF previews, EN 16931 XML rule checks, GS1 Digital Link QR rendering, VIES syntax/registry lookups and llms.txt linting. |
Single-pass deterministic builds & checks einvoice.builddpp.builddmarc.analyseemail.verifywcag.statementtenders.searchstack.fingerprint | Deterministic | 1 unit | Not applicable | Peppol BIS 3.0 / XRechnung / ZUGFeRD / VeriFactu / KSeF XML generation, Digital Product Passport JSON-LD builds, DNS SPF/DKIM/DMARC inspection and MX verification. |
Browser inspection & snapshot diffing wcag.scanjsonld.buildpricing.diffplanning.searchtrademark.watch | Deterministic | 2 units | Not applicable | Headless WCAG 2.2 Level AA audits across mobile or desktop viewports, structured Schema.org JSON-LD graph generation and pricing snapshot comparison. |
Accessible media description alt-text.generate | AI | 2 units | 1 unit | Context-aware image alt-text generation in the requested language; drops to the single orchestration unit when called with your own model key. |
Platform patch diffs & site compilation wcag.patchllms.compile | Deterministic | 3 units | Not applicable | Platform-targeted accessibility patch diffs (Shopify, WordPress, Wix, Webflow, Shopware or raw HTML) and multi-page llms.txt + llms-full.txt compilation. |
Procurement gate & rubric review tenders.readiness | AI | 4 units | 1 unit | Extracts mandatory pass/fail gates, scoring rubrics and an editable response outline from public tender notices for human bid review. |
Structured string & HTML localisation translate.batch | AI | 1 unit / 1,000 chars | 1 unit | Batch translation preserving HTML tags and placeholders across target locales; capped at the single base unit per call when BYOK is supplied. |
Multi-target document extraction pdf.convert | Deterministic | 5 units | Not applicable | Full supplier invoice or price-list PDF extraction into validated Shopify, WooCommerce, Xero, NetSuite, XLSX or JSON files delivered via signed URLs. |
Reference prepaid credit pack tiers
VAT-inclusive display prices with no card or PayPal surcharges. Tied to an active plugin licence once store listings go live.
| Pack tier | Prepaid credits | List price (VAT-inc.) | Applicable plugin suites | Representative run capacity |
|---|---|---|---|---|
credits-100 | 100 credits | $9.00 | Framer & Webflow AEO suites | Up to 33 llms.compile runs, 50 jsonld.build runs, or 100 BYOK AI calls. |
credits-500 | 500 credits | $19.00 – $39.00 | $19.00 on Stripe & Chrome suites · $39.00 on Framer & Webflow AEO | 500 Peppol/VeriFactu e-invoice builds, 166 wcag.patch diffs, or 100 full pdf.convert runs. |
credits-2000 | 2,000 credits | $59.00 | Stripe e-invoicing & Chrome extension suites | 2,000 e-invoice builds, 1,000 WCAG 2.2 scans, or 400 multi-target PDF conversions. |
Marketplace plugin suites are currently marked Coming soon while store listings are prepared; self-serve pack top-ups attach to an active licence in /portal/licences at launch. Need a one-off audit or file conversion right now? Every standalone service has a free browser preview on /tools.
Email support@previewfix.com3 · Deterministic ledger specimen
Append-only accounting with automatic refunds.
Every credit grant, consumption and compensating refund is an immutable row in usage_credits, serialised per licence under a PostgreSQL row lock.
Illustrative specimen · usage_credits ledger & wire payloads
Balance check, idempotent debit & compensating failure refund
// Request
{
"key": "AG-DEMO-7K4P-9M2X-Q8WN",
"sku": "stripe-einvoice"
}
// Response
{
"ok": true,
"balance": 200,
"byok": false,
"topUpUrl": "https://previewfix.com/account/licenses/credits"
}// Request (row-locked on plugin_licenses)
{
"key": "AG-DEMO-7K4P-9M2X-Q8WN",
"sku": "stripe-einvoice",
"fingerprint": "acct_1SampleWorkspace",
"operation": "einvoice.build",
"units": 1,
"idempotencyKey": "inv-2026-0042-peppol"
}
// First call → charged: 1, replayed: false
// Retry with same idempotencyKey → charged: 1, balance: 199, replayed: trueAppend-only ledger trace · SELECT SUM(delta) FROM usage_credits
Compensating refund verified
| Row | Reason | Operation | Idempotency key | Delta | Balance | Ledger event |
|---|---|---|---|---|---|---|
| L-1041 | grant | plan.monthly | sub_period_2026_11 | +200 | 200 | Monthly allowance credited on active stripe-einvoice subscription. |
| L-1042 | consume | einvoice.build | eng:9f3a8c12…#0 | -1 | 199 | Row-locked pre-flight debit before Peppol BIS 3.0 XML generation. |
| L-1043 | consume | pdf.convert | eng:4d71b0e8…#0 | -5 | 194 | Reserved 5 units prior to supplier PDF conversion attempt. |
| L-1044 | refund | pdf.convert | eng:4d71b0e8…#0:refund | +5 | 199 | Automatic compensating credit appended after upstream timeout. |
4 · Licence management & documentation
Manage licences or inspect contracts.
Check live credit balances and site activations in the customer portal, explore the 20 plugin suites, or read the full HTTP wire contract.
Open licence portal
Sign in with your email magic link to inspect live credit balances, 14-day trial expiry dates, renewal periods and active site or workspace fingerprints.
Open /portal/licences
Browse plugin suites
Review per-suite SKUs, included monthly credit allowances, 14-day full-feature trial terms and current marketplace release status across all 20 platforms.
Open /plugins
Read micro-API credit reference
Inspect all 25 engine operations, Bearer API key vs X-License-Key headers, BYOK request schemas, error codes and worked curl, Node and PHP examples.
Open /developers
Manual allocation & VAT invoices
Need credits allocated to an active test or enterprise licence, or have a billing question? Reach our support inbox directly at support@previewfix.com.
Open /contact
5 · Frequently asked questions
Common questions on engine credits.
Straight answers on plan allowances, failure refunds, CLI balance checks and how licence billing is structured.
How do monthly plan allowances differ from prepaid top-up credits?
usage_credits) where your live balance equals SUM(delta) across plan grants, top-up purchases, consumptions, refunds and expiries. Subscription SKUs that include a monthly or annual allowance grant those baseline units for the billing cycle, whereas prepaid top-up packs append purchase credits tied to your licence so metered runs can continue beyond the plan allowance without changing subscription tiers.What happens if an engine run fails mid-flight or returns demonstration data?
sandbox fixture response automatically writes an idempotent +units compensating row (reason: "refund", keyed to <chargeKey>:refund) to restore your balance.How do I check my remaining credit balance from a plugin, script or CLI?
POST /api/v1/licenses/balance with { "key", "sku" } to receive { "ok": true, "balance", "byok", "topUpUrl" }. Every metered call to POST /api/v1/engines/<path> also returns a usage block containing the units charged and your updated balance.Why is there no payment or card checkout form on this page?
Coming soon on /plugins). Rather than showing an unattached checkout form, this utility route documents exact operation tariffs and pack prices for plugins linking to topUpUrl. Existing licence holders can inspect balances in /portal/licences or email support@previewfix.com for manual credit allocation or invoice enquiries.Already have an issued licence key (AG-…)?
Sign in to the customer portal to check your current credit balance, trial window and active site fingerprints, or email support@previewfix.com for billing support.