Dongfangshuo

Dongfangshuo 27B v2 API

Dongfangshuodongfangshuo-27b-v2131K 上下文OpenAI Chat CompletionsAnthropic Messages API
你的应用Claude CodeCodex CLISDKlovely1 keyClaude/v1/messagesclaude-opus-5.5claude-sonnet-5.5claude-haiku-5.5GPT/v1/responsesgpt-6.1-solgpt-6-astragpt-5.6-terraGemini/v1betagemini-3.1-progemini-3.8-flashgemini-3-flash
输入
$1.50
美元 / 百万 Token
输出
$23.40
美元 / 百万 Token
缓存读取
$0.15
美元 / 百万 Token
缓存写入
—
美元 / 百万 Token

交给你的 AI 智能体

把这段提示词复制到 Claude Code、Cursor、Codex 或任何编程智能体中。它会告诉智能体文档在哪里,以及如何使用你的 API 密钥。

Integrate the model `dongfangshuo-27b-v2` from Lovely Router into this project through the native Anthropic Messages API.

- Docs (read first): https://lovelyrouter.com/docs/models/anthropic.md
- Use the official Anthropic SDK and only change the base URL to https://lovelyrouter.com (or set ANTHROPIC_BASE_URL=https://lovelyrouter.com). Endpoints: POST https://lovelyrouter.com/v1/messages and /v1/messages/count_tokens, unchanged from Anthropic, so Anthropic's docs are the reference for every parameter. `Authorization: Bearer` works too.
- Model id: `dongfangshuo-27b-v2`. GET https://lovelyrouter.com/v1/models lists every model with its price.
- Auth: read my API key from the LOVELY_API_KEY environment variable and send it as `x-api-key: $LOVELY_API_KEY`. Never print or commit the key. If it is not set, ask me to create one at https://lovelyrouter.com/app/keys.
- Billing is prepaid: every call is charged to my balance, so test with a small request before running anything large.
- Every docs page is plain Markdown; the full index is https://lovelyrouter.com/llms.txt.

My task: <describe what you want to build or get>

单次请求费用

10,000 输入 + 1,000 输出 token:$0.038
其中 9,000 输入 token 来自缓存时:$0.026

提示缓存如何工作

可用性(过去 24 小时)

● 正常

实时状态

各渠道组价格

渠道分组输入输出缓存读取
Creative · Hosted
Dedicated GPUs
$1.50$23.40$0.15

什么是渠道组

调用示例

快速开始 →

Anthropic Messages API

curl https://lovelyrouter.com/v1/messages \
  -H "x-api-key: $LOVELY_API_KEY" \
  -H "anthropic-version: 2023-06-01" \
  -H "content-type: application/json" \
  -d '{"model": "dongfangshuo-27b-v2", "max_tokens": 1024, "messages": [{"role": "user", "content": "Hello"}]}'

常见问题

Dongfangshuo 27B v2 每百万 token 多少钱?

在价格最低的渠道组中,每百万输入 token $1.50,每百万输出 token $23.40。一次 10,000 输入、1,000 输出 token 的请求约 $0.038。

Dongfangshuo 27B v2 支持提示缓存吗?

支持。缓存读取每百万 token $0.15,因此同样的请求若有 9,000 个输入 token 从缓存读取,费用约为 $0.026。Lovely Router 会让同一对话保持在同一渠道,使缓存持续命中。

Dongfangshuo 27B v2 的上下文窗口有多大?

131K token。

Dongfangshuo 27B v2 使用哪种 API 格式?

OpenAI Chat Completions, Anthropic Messages API。使用你现有的官方 SDK:把 Base URL 改为 Lovely Router,并使用你的 Lovely Router API 密钥。

有订阅或速率限制吗?

无需订阅:充值预付费余额,按 token 付费。你可以为每个 API 密钥自行设置每分钟请求数和并发限制。