> ## Documentation Index
> Fetch the complete documentation index at: https://mintlify.com/cheahjs/free-llm-api-resources/llms.txt
> Use this file to discover all available pages before exploring further.

# Fireworks AI

> Get $1 in free credits to access various open-source models on Fireworks AI

## Overview

Fireworks AI provides \$1 in trial credits to new users, allowing you to experiment with a wide variety of open-source language models through their optimized inference platform.

<CardGroup cols={2}>
  <Card title="Trial Credits" icon="dollar-sign">
    \$1 in free credits
  </Card>

  <Card title="Duration" icon="clock">
    No expiration specified
  </Card>
</CardGroup>

## Available Models

Fireworks AI offers access to various open-source models through their platform. You can browse their full model catalog to find models suitable for your use case.

<Info>
  View the complete list of available models at [fireworks.ai/models](https://fireworks.ai/models)
</Info>

## Getting Started

### 1. Sign Up

Visit [fireworks.ai](https://fireworks.ai/) and create a free account to receive your \$1 in trial credits.

### 2. Get Your API Key

After signing up, navigate to your account settings to generate an API key.

### 3. Make API Calls

```python theme={null}
import openai

client = openai.OpenAI(
    api_key="YOUR_FIREWORKS_API_KEY",
    base_url="https://api.fireworks.ai/inference/v1"
)

response = client.chat.completions.create(
    model="accounts/fireworks/models/llama-v3-70b-instruct",
    messages=[{
        "role": "user",
        "content": "What is the capital of France?"
    }]
)

print(response.choices[0].message.content)
```

```javascript theme={null}
import OpenAI from 'openai';

const client = new OpenAI({
  apiKey: process.env.FIREWORKS_API_KEY,
  baseURL: 'https://api.fireworks.ai/inference/v1'
});

const response = await client.chat.completions.create({
  model: 'accounts/fireworks/models/llama-v3-70b-instruct',
  messages: [{
    role: 'user',
    content: 'What is the capital of France?'
  }]
});

console.log(response.choices[0].message.content);
```

```bash theme={null}
curl https://api.fireworks.ai/inference/v1/chat/completions \
  -H "Content-Type: application/json" \
  -H "Authorization: Bearer YOUR_FIREWORKS_API_KEY" \
  -d '{
    "model": "accounts/fireworks/models/llama-v3-70b-instruct",
    "messages": [{
      "role": "user",
      "content": "What is the capital of France?"
    }]
  }'
```

## Use Cases

* **Experimentation**: Test different open-source models before committing to a paid plan
* **Prototyping**: Build proof-of-concept applications with state-of-the-art open models
* **Evaluation**: Compare model performance across different architectures

## Resources

<CardGroup cols={2}>
  <Card title="Fireworks AI Platform" icon="link" href="https://fireworks.ai/">
    Access the platform
  </Card>

  <Card title="Model Catalog" icon="book" href="https://fireworks.ai/models">
    Browse available models
  </Card>
</CardGroup>

<Note>
  Credits are provided for trial purposes. Monitor your usage to make the most of your \$1 credit allocation.
</Note>
