Overview
Integration details
Model features
Setup
To access Fireworks models you’ll need to create a Fireworks account, get an API key, and install thelangchain-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:Installation
The LangChain Fireworks integration lives in thelangchain-fireworks package:
Instantiation
Now we can instantiate our model object and generate chat completions:Invocation
Reasoning effort
Some Fireworks-hosted models support the standardreasoning_effort parameter, which controls the amount of reasoning the model does. ChatFireworks forwards it unchanged as the reasoning_effort request field. Supported values vary by model. It can be set at model construction or per invocation:
reasoning_effort as a standard parameter requires langchain-fireworks>=1.5.2.API reference
For detailed documentation of all features and configuration options, head to theChatFireworks API reference.
Connect these docs to Claude, VSCode, and more via MCP for real-time answers.

