Skip to main content

Official SDKs

Runcrate provides official SDKs for Python and TypeScript, giving you full access to both the Models API (inference) and the Infrastructure API (instances, storage, billing, and more).

Python SDK

pip install runcrate-sdk — sync + async, Pydantic models, auto-retry

TypeScript SDK

npm install @runcrate/sdk — zero deps, native fetch, ESM + CJS

Quick Comparison

FeaturePythonTypeScript
Packageruncrate-sdk@runcrate/sdk
Installpip install runcrate-sdknpm install @runcrate/sdk
Async supportSync + Async clientsAsync (native Promises)
RuntimePython 3.9+Node.js 18+
Dependencieshttpx, pydanticZero (native fetch)
StreamingIterator / AsyncIteratorAsyncGenerator
Auto-retryExponential backoff + jitterExponential backoff + jitter
Type safetyPydantic models + mypy strictFull TypeScript types

What You Can Do

Both SDKs provide identical functionality:
  • Model Inference — Chat completions, image generation, video generation, text-to-speech, transcription
  • GPU Instances — Create, list, terminate, check status, browse GPU types
  • SSH Keys — Manage keys for instance access
  • Storage — Create, list, resize, delete volumes
  • Billing — Check balance, list transactions, view usage
  • Templates — Browse pre-configured environments
  • Environments — Create and manage deployment environments

Authentication

Both SDKs use the same API key format. Generate one from your Dashboard.
rc_live_YOUR_API_KEY
Pass it directly or set the RUNCRATE_API_KEY environment variable.