WiseX API Gateway

高性能 AI 模型接口服务

服务运行中
📋

模型列表

获取所有可用的 AI 模型信息

GET /v1/models
💬

聊天完成

发送消息并获取 AI 响应

POST /v1/chat/completions

流式输出

支持实时流式响应,提升用户体验

stream: true

🤖 支持的模型

GPT-4o mini
GPT-5 Nano
GPT-5 Mini
GPT-5
Doubao seed
Text to Image (GPT4)
GPT-o3 (Reasoning model)
Qwen - Trubo
Qwen - Plus
Qwen - Max
Gemini-2.5 Pro
GLM-4 Flash
GLM-Z1 Flash
GLM-Z1 Air
Deepseek-R1
Deepseek Chat

📖 使用示例

⚠️ API Key 说明:
默认 API Key 为 sk-123456,可通过环境变量 API_KEY 自定义设置。
curl https://wisecleaner-2api.jason141.fun/v1/chat/completions \
  -H "Content-Type: application/json" \
  -H "Authorization: Bearer sk-123456" \
  -d '{
    "model": "gpt-5",
    "messages": [
      {"role": "user", "content": "Hello!"}
    ],
    "stream": false
  }'
import OpenAI from 'openai';

const client = new OpenAI({
  baseURL: 'https://wisecleaner-2api.jason141.fun/v1',
  apiKey: 'sk-123456'
});

const response = await client.chat.completions.create({
  model: 'gpt-5',
  messages: [{ role: 'user', content: 'Hello!' }]
});
// Python 示例
from openai import OpenAI

client = OpenAI(
    base_url="https://wisecleaner-2api.jason141.fun/v1",
    api_key="sk-123456"
)

response = client.chat.completions.create(
    model="gpt-5",
    messages=[{"role": "user", "content": "Hello!"}]
)