Nexus
1.x
Docs/Nexus/Anyscale
Open

Reading1 min
Updated31 Jul 2026
Sourcev1/providers/anyscale.mdx

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

Installation01

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

Quick Start02

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

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

Options03

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

Capabilities04

CapabilitySupported
ChatYes
StreamingYes
EmbeddingsNo
VisionNo
ToolsNo
ThinkingNo

Models05

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