Skip to main content
Fireworks provides hosted, OpenAI-compatible endpoints for open large language models.

Authentication

Create a Fireworks API key, then set the FIREWORKS_API_KEY environment variable.

Prompt caching

Prompt caching happens automatically when you use the Fireworks model. Read more about how Fireworks handles caching in their docs.

Example

Install the openai package:
Use Fireworks with your Agent:

Parameters

Fireworks extends the OpenAI-compatible interface and supports most parameters from the OpenAI model.