Nexus

Fireworks AI

Use Fireworks AI for fast open-source model inference with Nexus.

Fireworks AI provides fast inference for open-source models with embedding support. Uses an OpenAI-compatible API.

Installation

import "github.com/xraph/nexus/providers/fireworks"

Quick Start

provider := fireworks.New(os.Getenv("FIREWORKS_API_KEY"))

gw := nexus.New(
    nexus.WithProvider(provider),
)

Options

OptionDescription
fireworks.WithBaseURL(url)Override the API base URL (default: https://api.fireworks.ai/inference/v1)

Capabilities

CapabilitySupported
ChatYes
StreamingYes
EmbeddingsYes
VisionNo
ToolsYes
ThinkingNo

Models

ModelContextMax OutputInput PriceOutput Price
accounts/fireworks/models/llama-v3p1-405b-instruct131K4,096$3.00/M$3.00/M
accounts/fireworks/models/llama-v3p1-8b-instruct131K4,096$0.20/M$0.20/M
accounts/fireworks/models/mixtral-8x22b-instruct65,5364,096$0.90/M$0.90/M

On this page