Fireworks vs. OpenAI SDK
Fireworks is OpenAI-compatible, so you can use the OpenAI SDK with Fireworks. The Fireworks SDK offers additional benefits:- Better concurrency defaults — Optimized connection pooling for high-throughput workloads
- Fireworks-exclusive features — Access parameters and response fields not available in the OpenAI API
- Platform automation — Manage datasets, evals, training, and deployments programmatically
Installation
Requires Python 3.9+ and an API key. See Getting your API key for instructions.fireworks-training-cookbook on Python 3.11 or newer. See Cookbook installation for PyPI releases and editable source checkouts. To use the Training API SDK directly, install fireworks-ai[training].
For detailed usage instructions, see the
README.md. To quickly get
started with serverless, see our Serverless
Quickstart.