Quickstart
Get started in minutes with an OpenAI compatible endpoint
Fireworks AI is the best platform for building AI product experiences with open source AI models. You can run and customize AI models with just a few lines of code.
Using the API, you can access popular open-source models like Llama, DeepSeek, etc. The example below generates text output through an OpenAI-compatible 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.
Get an API key
Sign up or login to your Fireworks account. Generate an API key by navigating to the API Keys page and click on ‘Create API key’. Store the API Key in a safe location.
Set up your developer environment & call the Fireworks API
Install SDK
Before installing, ensure that you have the right version of Python installed. Optionally you might want to setup a virtual environment too.
Configure API Key
Step-by-step instructions for setting an environment variable for respective OS platforms:
Sending the first API Request
You can quickly instantiate with the generated API Key and call the Fireworks API.
Install SDK
Before installing, ensure that you have the right version of Python installed. Optionally you might want to setup a virtual environment too.
Configure API Key
Step-by-step instructions for setting an environment variable for respective OS platforms:
Sending the first API Request
You can quickly instantiate with the generated API Key and call the Fireworks API.
Install SDK
Before installing, ensure that you have the right version of Python installed. Optionally you might want to setup a virtual environment too.
Configure API Key
Step-by-step instructions for setting an environment variable for respective OS platforms:
Sending the first API Request
You can quickly instantiate with the generated API Key and call the Fireworks API through OpenAI Python SDK.
Install SDK
Configure API Key
Step-by-step instructions for setting an environment variable for respective OS platforms:
Sending the first API Request
Install SDK
Before installing, ensure that you have the right version of Node. Please make sure you have the npm
installed or a package manager of your choice.
Configure API Key
Step-by-step instructions for setting an environment variable for respective OS platforms:
Sending the first API Request
You can quickly instantiate with the generated API Key and call the Fireworks API through OpenAI JavaScript SDK.
cURL is a popular open-source command line tool to send HTTP requests. Most Operating systems ship cURL by default. However, if you are not sure, you can follow the first two steps of this guide to setup cURL. If not, we recommend skipping to Step Three.
Check if your operating system has cURL installed by running curl https://api.fireworks.ai
Setup cURL
Configure API Key
Step-by-step instructions for setting an environment variable for respective OS platforms:
Sending the first API Request
Making your first API request with cURL. Notice the use of $FIREWORKS_API_KEY
.
More details on calling various APIs can be found at our API Reference
Explore further
Build with text models
Learn more about prompting text models
Explore API reference
View the full API reference
Fine Tune a Model
Customize a model for your specific use case
Use Dedicated Deployments
Get the best speed, reliability, & scalability
Query Vision Language Models
Query vision language models
Transcribe Audio
Convert speech to text async or in realtime
Was this page helpful?