• Pricing
  • Blog
Log inBook a demo

Add billing with
Gemini

Start billing for freeRead docs

Automatic

Billing expertise built into Gemini

Scaffold billing workflows with Gemini and deploy them with Commet. Plans, usage tracking, and checkout in minutes.

billing.ts
import { Commet } from "@commet/node";
const commet = new Commet({ apiKey: process.env.COMMET_API_KEY });
// Track usage
await commet.usage.track({
customerId: "cus_123",
featureCode: "api_calls",
value: 1,
eventId: "request_01JXYZ",
});
// Check access
const access = await commet.usage.check({
customerId: "cus_123",
featureCode: "api_calls",
});
if (!access.allowed) {
throw new Error("Usage limit reached");
}
import { Commet } from "@commet/node";
const commet = new Commet({ apiKey: process.env.COMMET_API_KEY });
// Track usage
await commet.usage.track({
customerId: "cus_123",
featureCode: "api_calls",
value: 1,
eventId: "request_01JXYZ",
});
// Check access
const access = await commet.usage.check({
customerId: "cus_123",
featureCode: "api_calls",
});
if (!access.allowed) {
throw new Error("Usage limit reached");
}
~/.gemini/settings.json
{
"mcpServers": {
"commet": {
"httpUrl": "https://commet.co/mcp/v2"
}
}
}
{
"mcpServers": {
"commet": {
"httpUrl": "https://commet.co/mcp/v2"
}
}
}

Easy to use

Add Commet MCP to Gemini

Configure the MCP server to create plans, manage subscriptions, and track usage directly from Gemini.

Get startedDocumentation

Agent Skills

Install Commet Skills

Agent Skills give Gemini the expertise it needs to set up billing, configure pricing models, and follow best practices. Install them with a single command.

Get startedDocumentation
Terminal
npx skills add commet-labs/skills
npx skills add commet-labs/skills

Frequently Asked Questions

Install the Commet MCP server in Gemini and connect it with your API key. Once connected, you can create plans, configure pricing models, manage subscriptions, and track usage — all without leaving Gemini.

Commet supports metered (pay for what you use), credits (block when exhausted), balance (spend across features), seats (per-user pricing), and boolean (feature gating). You can configure any of these through the MCP server or SDK.

The Commet MCP server is a Model Context Protocol server that gives Gemini native tools to manage billing. Once installed, Gemini can create plans, manage subscriptions, track usage, and generate invoices through natural language.

Agent Skills give Gemini modular billing expertise — pricing model patterns, subscription lifecycle best practices, and SDK integration knowledge. Install them with a single command: npx skills add commet-labs/skills.

Yes. Commet has a built-in AI model catalog with per-token pricing. You can track input, output, and cache tokens with configurable margins. Usage events calculate costs automatically using the balance consumption model.

Yes. Commet is a Merchant of Record that handles taxes, compliance, refunds, and payouts. Stripe Tax is integrated for automatic tax calculation. You don't need to worry about tax logic.

Commet has no setup fees and no monthly minimums. You only pay 5% + $0.40 per successful transaction. You can start building and testing for free using the sandbox environment.

Subscription billing built for developers and agents

Get startedBook a demo

Accept global payments, handle usage-based pricing, subscriptions, and seats — without building your own infrastructure.

Status unavailable

Frameworks

  • Next.js
  • Remix
  • Nuxt
  • SvelteKit
  • Astro
  • Express
  • Hono
  • Django
  • FastAPI

Resources

  • Documentation
  • Guides
  • Blog
  • Templates
  • Changelog
  • Glossary
  • Billing for AI models

Company

  • Solutions
  • About
  • Open Source

Compare

  • Stripe Billing
  • Orb
  • Chargebee
  • Lago
  • Autumn
  • Yuno

AI

  • Commet Agents
  • MCP Server
  • Skills
  • Claude Code
  • Codex
  • Cursor
Follow us
© 2026 Commet Co.TermsPrivacy PolicyCookie Policy