AI API Proxy

通过 Vercel 节点加速访问各大 AI 模型 API,稳定、快速、可靠

🤖

OpenAI

支持 GPT-4、GPT-3.5 等模型的完整 API 访问

Google Gemini

访问 Google 最新的 Gemini Pro 和 Gemini Ultra 模型

🌟

NewAPI

综合性 AI 服务接口,支持多种模型和功能

🧠

Claude

Anthropic 的 Claude 3 系列模型,强大的对话能力

🚀

xAI

Elon Musk 的 xAI Grok 模型访问

🔍

Perplexity

强大的搜索增强型 AI 模型

API 端点配置

OpenAI API

https://api.aptzone.cc/openai/v1/chat/completions

Google Gemini API

https://api.aptzone.cc/gemini/v1beta/models

Claude API

https://api.aptzone.cc/claude/v1/messages

NewAPI

https://api.aptzone.cc/newapi/v1/chat/completions

xAI API

https://api.aptzone.cc/xai/v1/chat/completions

Perplexity API

https://api.aptzone.cc/perplexity/chat/completions

使用示例

curl https://api.aptzone.cc/openai/v1/chat/completions \
  -H "Content-Type: application/json" \
  -H "Authorization: Bearer YOUR_API_KEY" \
  -d '{
    "model": "gpt-3.5-turbo",
    "messages": [
      {
        "role": "user",
        "content": "Hello, how are you?"
      }
    ],
    "temperature": 0.7
  }'
import requests

url = "https://api.aptzone.cc/openai/v1/chat/completions"
headers = {
    "Content-Type": "application/json",
    "Authorization": "Bearer YOUR_API_KEY"
}
data = {
    "model": "gpt-3.5-turbo",
    "messages": [
        {
            "role": "user",
            "content": "Hello, how are you?"
        }
    ],
    "temperature": 0.7
}

response = requests.post(url, headers=headers, json=data)
print(response.json())
const response = await fetch('https://api.aptzone.cc/openai/v1/chat/completions', {
  method: 'POST',
  headers: {
    'Content-Type': 'application/json',
    'Authorization': 'Bearer YOUR_API_KEY'
  },
  body: JSON.stringify({
    model: 'gpt-3.5-turbo',
    messages: [
      {
        role: 'user',
        content: 'Hello, how are you?'
      }
    ],
    temperature: 0.7
  })
});

const data = await response.json();
console.log(data);
const axios = require('axios');

const response = await axios.post('https://api.aptzone.cc/openai/v1/chat/completions', {
  model: 'gpt-3.5-turbo',
  messages: [
    {
      role: 'user',
      content: 'Hello, how are you?'
    }
  ],
  temperature: 0.7
}, {
  headers: {
    'Content-Type': 'application/json',
    'Authorization': 'Bearer YOUR_API_KEY'
  }
});

console.log(response.data);