Skip to main content
Fireworks /

Alpha

accounts/fireworks/models/alpha

LLMServerlessChat

Alpha Base Model

Serverless API

Alpha is available via Fireworks' serverless API, where you pay per token. There are several ways to call the Fireworks API, including Fireworks' Python client, the REST API, or OpenAI's Python client.

See below for easy generation of calls and a description of the raw REST API for making API requests. See the Querying text models docs for details.

Try it

API Examples

Generate a model response using the chat endpoint of alpha. API reference

import requests
import json

url = "https://a7b3f31-preview.api.fireworks.ai/inference/v1/chat/completions"
payload = {
  "model": "accounts/fireworks/agents/alpha",
  "messages": [
    {
      "role": "user",
      "content": "Hello, how are you?"
    }
  ],
  "tools": [],
  "temperature": 0.1,
  "top_p": 1,
  "top_k": 40,
  "presence_penalty": 0,
  "frequency_penalty": 0
}
headers = {
  "Accept": "application/json",
  "Content-Type": "application/json",
  "Authorization": "Bearer <API_KEY>"
}
requests.request("POST", url, headers=headers, data=json.dumps(payload))