Skip to main content
Fireworks /

Moa

accounts/fireworks/models/moa

LLMServerlessChat

MOA Base Model

Serverless API

Moa 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 moa. API reference

import requests
import json

url = "https://9780533-preview.api.fireworks.ai/inference/v1/chat/completions"
payload = {
  "model": "accounts/fireworks/agents/moa",
  "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))