Nexus

DeepSeek

Use DeepSeek reasoning models (R1) and chat models with Nexus.

DeepSeek offers reasoning-capable models including DeepSeek-R1 with extended thinking support. Uses an OpenAI-compatible API.

Installation

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

Quick Start

provider := deepseek.New(os.Getenv("DEEPSEEK_API_KEY"))

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

Options

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

Capabilities

CapabilitySupported
ChatYes
StreamingYes
EmbeddingsNo
VisionNo
ToolsYes
ThinkingYes (R1 model)

Models

ModelContextMax OutputInput PriceOutput Price
deepseek-chat65,5368,192$0.27/M$1.10/M
deepseek-reasoner65,5368,192$0.55/M$2.19/M

On this page