Fireworks AI REST API enables you to interact with various language, image and embedding models using an API Key. It also lets you automate management of models, deployments, datasets, and more.

Authentication

All requests made to the Fireworks AI REST API must include an Authorization header.

The header should specify a valid Bearer token with your API key and must include the “Content-Type: application/json” header.

This ensures that your requests are properly authenticated and formatted for interaction with the Fireworks AI.

A sample header to be included in the REST API request should look like this:

authorization: Bearer <API_KEY>