Fireworks AI
Advertisement
Free Models
| Model ID | Context | Modalities | RPM | RPD |
|---|---|---|---|---|
accounts/fireworks/models/llama-v2-70b-chat | 4K | text | — | — |
Quick Start
Python (OpenAI SDK)
from openai import OpenAI
client = OpenAI(
base_url="https://api.fireworks.ai/inference/v1",
api_key="YOUR_API_KEY", # get at https://fireworks.ai/account/api-keys
)
response = client.chat.completions.create(
model="accounts/fireworks/models/llama-v2-70b-chat",
messages=[{"role": "user", "content": "Hello!"}],
)
print(response.choices[0].message.content) curl
curl https://api.fireworks.ai/inference/v1/chat/completions \
-H "Authorization: Bearer YOUR_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"model": "accounts/fireworks/models/llama-v2-70b-chat",
"messages": [{"role": "user", "content": "Hello!"}]
}' Advertisement