> ## Documentation Index
> Fetch the complete documentation index at: https://veryfront.com/docs/llms.txt
> Use this file to discover all available pages before exploring further.

# Fireworks AI

> Run chat completions, text completions, and embeddings on open models via the Fireworks AI inference API

## At a glance

* **Availability**: Experimental ([how to enable](/cloud/integrations)).
* **Auth**: API key.
* **Connection**: The key comes from `FIREWORKS_API_KEY`.
* **Docs**: [https://docs.fireworks.ai/api-reference/introduction](https://docs.fireworks.ai/api-reference/introduction)

## Credentials

Set these per environment. See [Connect an integration](/cloud/integrations).

| Variable            | Required | Description                                                                                              |
| ------------------- | -------- | -------------------------------------------------------------------------------------------------------- |
| `FIREWORKS_API_KEY` | Yes      | Fireworks AI API key from account settings [Docs](https://docs.fireworks.ai/api-reference/introduction). |

## Setup

1. **Create a Fireworks AI account**: Go to [https://app.fireworks.ai](https://app.fireworks.ai) and sign up or sign in. New accounts include free credits for testing serverless models.
2. **Create an API key**: Open the API Keys page under account settings ([https://app.fireworks.ai/settings/users/api-keys](https://app.fireworks.ai/settings/users/api-keys)) and create a new key.
3. **Store the key**: Copy the key and add it to your .env file as FIREWORKS\_API\_KEY=...
4. **Verify access**: Run the List Models tool to confirm the key works. A 401 means the key is wrong or revoked.

* The inference API is OpenAI-compatible under [https://api.fireworks.ai/inference/v1](https://api.fireworks.ai/inference/v1)
* Serverless model IDs use the accounts/fireworks/models/\<name> format
* Inference is billed per token once free credits are exhausted

Provider API reference: [https://docs.fireworks.ai/api-reference/introduction](https://docs.fireworks.ai/api-reference/introduction)

## Tools

| Tool                   | Access | Description                                        |
| ---------------------- | ------ | -------------------------------------------------- |
| List Models            | Read   | List the models available on Fireworks AI          |
| Create Chat Completion | Write  | Generate a chat completion from a list of messages |
| Create Completion      | Write  | Generate a text completion from a raw prompt       |
| Create Embedding       | Write  | Create an embedding vector for input text          |

## Example prompts

* List the models available on Fireworks AI for my account.
* Use Fireworks AI to generate a chat response to a prompt I provide.
