Skip to main content
This doc helps you get started with Fireworks AI chat models. For a list of all models served by Fireworks see the Fireworks docs.
API ReferenceFor detailed documentation of all features and configuration options, head to the ChatFireworks API reference.

Overview

Integration details

ClassPackageSerializableJS/TS SupportDownloadsVersion
ChatFireworkslangchain-fireworksbeta(npm)PyPI - DownloadsPyPI - Version

Model features

Tool callingStructured outputImage inputAudio inputVideo inputToken-level streamingNative asyncToken usageLogprobs

Setup

To access Fireworks models you’ll need to create a Fireworks account, get an API key, and install the langchain-fireworks integration package.

Credentials

Head to fireworks.ai to sign up to Fireworks and generate an API key. Once you’ve done this set the FIREWORKS_API_KEY environment variable:
To enable automated tracing of your model calls, set your LangSmith API key:

Installation

The LangChain Fireworks integration lives in the langchain-fireworks package:

Instantiation

Now we can instantiate our model object and generate chat completions:

Invocation

API reference

For detailed documentation of all features and configuration options, head to the ChatFireworks API reference.