Nexus

Anyscale

Use Anyscale's Ray-based distributed inference with Nexus.

Anyscale provides Ray-based distributed inference for open-source models. Uses an OpenAI-compatible API.

Installation

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

Quick Start

provider := anyscale.New(os.Getenv("ANYSCALE_API_KEY"))

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

Options

OptionDescription
anyscale.WithBaseURL(url)Override the API base URL (default: https://api.endpoints.anyscale.com/v1)

Capabilities

CapabilitySupported
ChatYes
StreamingYes
EmbeddingsNo
VisionNo
ToolsNo
ThinkingNo

Models

ModelContextMax OutputInput PriceOutput Price
meta-llama/Llama-3-8b-chat-hf8,1924,096$0.15/M$0.15/M
meta-llama/Llama-3-70b-chat-hf8,1924,096$1.00/M$1.00/M

On this page