Get started in minutes with an OpenAI-compatible endpoint
chat completions
API endpoint.
In this guide, you will get an API key, set up your development environment, and call the Fireworks API with an API Key.
Python (Fireworks)
tab uses our Fireworks Build
SDK for the best performance and developer experience.
See our Client-side performance
optimization guide for
more details.Install SDK
Configure API Key
MacOS/Linux
~/.bash_profile
for Bash or ~/.zshrc
for Zsh
.
You can do this by running the command:echo $FIREWORKS_API_KEY
Windows
Sending the first API Request
LLM
class and call the Fireworks API. The Build SDK handles deployment management automatically.LLM(model="llama4-maverick-instruct-basic", deployment_type="auto", api_key="<FIREWORKS_API_KEY>")