Available SDKs
Go SDK
Type-safe Go client with async batching support
Python SDK
Sync and async Python client with Pydantic models
TypeScript SDK
ESM and CommonJS support with full TypeScript types
MCP Server
Model Context Protocol server for AI assistants
Quick Comparison
| Feature | Go | Python | TypeScript | MCP |
|---|---|---|---|---|
| Package | github.com/flexprice/flexprice-go/v2 | flexprice | @flexprice/sdk | @flexprice/mcp-server |
| Min Version | Go 1.20+ | Python 3.10+ | Node.js 18+ | Node.js 20+ |
| Async Support | ✓ (Batching) | ✓ (Native) | ✓ (Promise-based) | N/A |
| Type Safety | ✓ | ✓ (Pydantic) | ✓ (TypeScript) | ✓ |
| Install Command | go get | pip install | npm install | npx |
| Best For | Backend services, high-volume events | Django/Flask apps, data pipelines | Node.js APIs, Next.js apps | AI assistants, IDE integrations |
Installation
Common Features
All SDKs provide:- Full API coverage – Customers, plans, events, invoices, payments, entitlements, and more
- Type-safe models – Request and response types generated from OpenAPI spec
- Built-in retries – Automatic retry logic with exponential backoff
- Error handling – Structured error responses with status codes
- Authentication – Simple API key authentication via
x-api-keyheader
Base URL Configuration
Authentication
All SDKs use API key authentication:Get your API key
Retrieve your API key from the FlexPrice dashboard
API keys are for server-side use only. Never expose them in client-side code or public repositories.
Next Steps
Choose your language to get started:Go SDK Guide
Go installation, initialization, and examples
Python SDK Guide
Python setup with sync and async examples
TypeScript SDK Guide
TypeScript/JavaScript integration guide
MCP Server Guide
Set up FlexPrice in Claude, Cursor, or VS Code