PureGamma AI,返回首页
APIPureGamma API · OpenAI Compatible

选择模型,复制配置,直接上线

与 OpenAI SDK 兼容的轻量 API Gateway。使用您自己的 sk-pg 密钥和独立 API 预付余额;我们只路由到官方 Provider API。

01 / 模型目录

模型目录

选择模型后,Quick Start、代码示例与参数会同步切换。

01b / 本部署对外提供的全部模型

本部署对外提供的全部模型

直接读取公开模型目录接口。目录一旦提供,模型就会出现在这里,包括尚无人工摘要的型号。

模型目录未返回任何模型。

DeepSeek价格目录加载中

DeepSeek V4.1 Flash

DeepSeek 于 2026 年 9 月 10 日发布的当前 Flash 代模型,能力超过上一代 V4 Flash 且价格更低,是 PureGamma 对话、Agent、报告与研究任务的默认路由。支持思考模式,但上述路径默认关闭。

PureGamma 模型 ID
deepseek-flash
官方上游 ID
—
上下文
—
快速对话 · 批量任务 · 成本敏感工作负载
最大输出
—
请求级 max_tokens 控制
能力
实时模型可用性以带您的 API Key 的 GET /v1/models 返回为准。
02 / 定价

价格明细

目录报价仅供参考,不能替代可计费价格。

输入 / cache miss
待审核
输出
待审核
缓存命中
待审核
03 / 请求参数

请求参数

请求格式遵循 OpenAI Chat Completions;额外的 Provider 参数仅在模型能力允许时透传。

ParameterType / range说明
model必填使用当前页面显示的 PureGamma 模型 ID。
messages必填OpenAI messages 数组。
stream可选true 时以 Server-Sent Events 返回。
temperature0–2控制生成随机性;与 top_p 二选一进行调优。
top_p0–1Nucleus sampling;通常不要和 temperature 同时调整。
max_tokens1–131072输出上限;实际模型最大值以目录为准。
response_format可选使用 JSON mode / JSON Schema 前先核对能力。
tools / tool_choice可选函数调用输入不可信;执行前必须验证 schema 与权限。
04 / 后端配置

后端配置

把 Key 留在服务器的密钥管理或环境变量中。Vercel、Railway、Cloud Run、Docker 和自建后端都只需要这三项配置。

.env.production
# .env.production / Vercel / Railway / Docker secret store
PUREGAMMA_API_KEY=sk-pg-...
PUREGAMMA_BASE_URL=https://api.puregamma.ai/v1
PUREGAMMA_MODEL=deepseek-flash

# Do not prefix these variables with NEXT_PUBLIC_.
# Do not ship sk-pg keys to the browser, desktop client, or mobile app.
流式与工具调用

路由层支持 stream、JSON mode 和 tools。先从 GET /v1/models 核对启用能力;对外部 API、支付、数据库或文件执行工具调用前,请在您的服务端进行授权和参数验证。

TypeScript
const stream = await client.chat.completions.create({
  model: "deepseek-flash",
  stream: true,
  messages: [{ role: "user", content: "Summarize the report." }],
  tools: [{
    type: "function",
    function: {
      name: "lookup_price",
      description: "Read a price from your own service",
      parameters: {
        type: "object",
        properties: { symbol: { type: "string" } },
        required: ["symbol"],
      },
    },
  }],
});
独立 API 余额

中转站使用独立预付余额。Stripe 确认的金额 1:1 记入 API 钱包,不会消耗 PureGamma 产品订阅或 Credits。

不要把 sk-pg Key 写进 NEXT_PUBLIC_ 变量、前端 bundle、移动应用、仓库、截图或工单。疑似泄露时,请在 API 控制台暂停或轮换。