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

# Fireworks AI Integration

> Connect Helicone with Fireworks AI, a platform that provides a fast, affordable, and customizable solution for generative artificial intelligence that helps product developers run, fine-tune, and share large language models.

<Warning>
  This integration method is maintained but no longer actively developed. For the best experience and latest features, use our new [AI Gateway](/gateway/overview) with unified API access to 100+ models.
</Warning>

You can follow their documentation here: [https://docs.fireworks.ai/getting-started/quickstart](https://docs.fireworks.ai/getting-started/quickstart)

# Gateway Integration

<Steps>
  <Step title="Create a Helicone account">
    Log into [helicone](https://www.helicone.ai) or create an account. Once you have an account, you
    can generate an [API key](https://helicone.ai/developer).
  </Step>

  <Step title="Create an FireworksAI account">
    Log into [www.fireworks.ai](http://www.fireworks.ai) or create an account. Once you have an account, you
    can generate an [API key](https://fireworks.ai/api-keys).
  </Step>

  <Step title="Set HELICONE_API_KEY and FIREWORKS_API_KEY as environment variable">
    ```javascript theme={null}
    HELICONE_API_KEY=<your API key>
    FIREWORKS_API_KEY=<your API key>
    ```
  </Step>

  <Step title="Modify the base URL and add Auth headers">
    Replace the following FireworksAI URL with the Helicone Gateway URL:

    `https://api.fireworks.ai/inference/v1/chat/completions` -> `https://fireworks.helicone.ai/inference/v1/chat/completions`

    and then add the following authentication headers.

    ```
    Helicone-Auth: `Bearer ${HELICONE_API_KEY}`
    Authorization: `Bearer ${FIREWORKS_API_KEY}`
    ```
  </Step>
</Steps>

Now you can access all the models on FireworksAI with a simple fetch call:

## Example

```bash theme={null}
curl --request POST \
  --url https://fireworks.helicone.ai/inference/v1/completions \
  --header "Authorization: Bearer $FIREWORKS_API_KEY" \
  --header "Helicone-Auth: Bearer $HELICONE_API_KEY" \
  --header "Content-Type: application/json" \
  --data '{
    "model": "accounts/fireworks/models/llama-v3-8b-instruct",
    "prompt": "Say this is a test"
}'
```

For more information on how to use headers, see [Helicone Headers](https://docs.helicone.ai/helicone-headers/header-directory#utilizing-headers) docs.
And for more information on how to use FireworksAI, see [FireworksAI Docs](https://docs.fireworks.ai/).
