STSuperTomorrow

工具接入

Node.js

使用 OpenAI Node SDK,把 baseURL 指向 SuperTomorrow API。

接入参数

Base URL

https://api.supertomorrow.cc/v1

API Key

在 Dashboard 创建 API Key。完整 Key 只在创建或重生成时显示一次,请立即复制并保存到本地安全位置。

模型名

模型名填写用户已开通、并已绑定到当前 API Key 的模型别名,例如 deepseek-chat。未绑定模型会返回 403。

示例配置

import OpenAI from "openai";

const client = new OpenAI({
  apiKey: process.env.SUPERTOMORROW_API_KEY,
  baseURL: "https://api.supertomorrow.cc/v1",
});

const response = await client.chat.completions.create({
  model: "deepseek-chat",
  messages: [{ role: "user", content: "Hello" }],
  max_tokens: 160,
});

console.log(response.choices[0].message.content);

常见错误

401:API Key 缺失、无效、过期或已禁用。请确认使用 Authorization: Bearer YOUR_API_KEY。
402:Credits 不足。请在 Dashboard 充值后重试。
403:当前 Key 未绑定该模型,或模型未上架。请在 API Key 页面调整模型范围。
429:触发 API Key 或模型通道限流。请降低并发并退避重试。
502:上游模型通道暂不可用。失败请求不会扣费,可稍后重试或切换模型。

相关链接