What's free
$1 trial credit
Rate limits
Various open-weight models
The catch
Default monthly spend cap of $50 for new accounts; no card needed to activate the $1 credit, card needed once it's spent
Quickstart — chat completions
from openai import OpenAI
client = OpenAI(base_url="https://api.fireworks.ai/inference/v1", api_key="<YOUR_FREE_API_KEY>")
resp = client.chat.completions.create(
model="<a-free-model>",
messages=[{"role": "user", "content": "Hello!"}],
)
print(resp.choices[0].message.content)…or with curl:
curl https://api.fireworks.ai/inference/v1/chat/completions \
-H "Authorization: Bearer $API_KEY" \
-H "Content-Type: application/json" \
-d '{"model":"<a-free-model>","messages":[{"role":"user","content":"Hello!"}]}'