🧭 Dytchem API Proxy

AI API 代理网关 · 托管于波兰华沙(serv00)· 所有请求自动 CORS 开放

📌 快速开始

所有接口都支持 CORS,可直接从浏览器或前端项目调用。
认证方式:在请求头中添加 X-API-Key: your_api_key

🔍 Tavily 搜索 API

POST /api/tavily/search

通用网络搜索,返回结构化结果

curl -X POST https://api.dytchem.cn/api/tavily/search \
  -H "Content-Type: application/json" \
  -H "X-API-Key: tvly-dev-YOUR_TAVILY_KEY" \
  -d '{"query": "最新 AI 技术动态", "max_results": 5}'

请求体字段:query(必填)、max_results(默认5)、search_depth(basic/advanced)

POST /api/tavily/qna

基于搜索结果的问答(先搜后答,质量更高)

curl -X POST https://api.dytchem.cn/api/tavily/qna \
  -H "Content-Type: application/json" \
  -H "X-API-Key: tvly-dev-YOUR_TAVILY_KEY" \
  -d '{"question": "量子计算的最新进展是什么?"}'

🤖 MiniMax 对话 API

GET /api/minimax/v1/models

列出可用的模型

curl https://api.dytchem.cn/api/minimax/v1/models \
  -H "X-API-Key: YOUR_MINIMAX_API_KEY"
POST /api/minimax/v1/chat/completions

对话补全(OpenAI 兼容格式)

curl -X POST https://api.dytchem.cn/api/minimax/v1/chat/completions \
  -H "Content-Type: application/json" \
  -H "X-API-Key: YOUR_MINIMAX_API_KEY" \
  -d '{
    "model": "MiniMax-Text-01",
    "messages": [
      {"role": "user", "content": "你好"}
    ]
  }'

🌐 通用意图代理

GET /proxy?target=https://...

将任意 HTTP GET 请求代理到目标 URL(适合绕过 CORS 限制)

curl "https://api.dytchem.cn/proxy?target=https://httpbin.org/get"

🏥 健康检查

GET /health
curl https://api.dytchem.cn/health