SDKs & Integrations
Python SDK
The official Python SDK provides full API coverage with sync and async clients.Features
- Full API coverage (images, video, audio, TTS, voice cloning, music, transcription, embeddings, OCR, prompt enhancement)
- Sync and async clients (
ModelBeamClient/AsyncModelBeamClient) - Automatic job polling with exponential backoff (
.wait()) - Auto-retry on rate limits (429) and server errors (5xx)
- Type-safe with Pydantic v2
- Webhook signature verification
- Price calculation for every method
Quick Example
MCP Server
ModelBeam provides an MCP (Model Context Protocol) server for integration with AI assistants like Claude, ChatGPT, and Cursor.- MCP URL:
https://mcp.modelbeam.ai/mcp - Transport: Streamed HTTP
- Auth: OAuth 2.0 or Bearer token