模型类型 | 代表模型 |
---|---|
音乐生成 | suno-v3 | suno-v3.5 |
图片生成 | chat_dalle | dalle-3 | stable-diffusion 系列 |
联网模型 | bing 系列 | net-gpt-4 |
全能模型 | gpt-4o-all(支持联网/文件分析/生成图片,禁止高并发场景) |
问答模型 | 其他未列出的模型 |
代理地址(任选其一): - https://gpt-api.cc - https://gpt-api.cc/v1 - https://gpt-api.cc/v1/chat/completions
import requests
url = "https://gpt-api.cc/v1/chat/completions"
headers = {"Authorization": "Bearer YOUR_KEY"}
payload = {
"model": "gpt-4o",
"messages": [{"role": "user", "content": "你好"}]
}
response = requests.post(url, json=payload, headers=headers)
print(response.json())
# CURL 示例
curl -X POST "https://gpt-api.cc/v1/chat/completions" \
-H "Authorization": "Bearer YOUR_KEY" \
-H "Content-Type: application/json" \
-d '{
"model": "gpt-4o",
"messages": [{"role": "user", "content": "你是谁"}],
"stream": true,
"temperature": 0.5
}'
以下是curl调用的body内容示例:
{
"model": "gpt-4o",
"messages": [
{
"role": "system",
"content": "You are a helpful assistant."
},
{
"stream": false,
"role": "user",
"content": "你是谁",
"temperature": 0.5,
"presence_penalty": 2
}
]
}
{
"qwen2.5-32b-instruct": 0.00001, // 文本输入
"qwen2.5-72b-instruct": 0.00001, // 文本输入
"qwen-turbo-latest": 0.00001, // 文本输入
"qwen-vl-max-latest": 0.00001, // 图像文本输入
"qwen2.5-coder-32b-instruct": 0.0001, // 代码编程
"qwq-32b-preview": 0.0001, // 单轮对话
"qvq-72b-preview": 0.0001, // 单轮对话
"qwen-plus-latest": 0.0001 // Qwen 2.5 Plus
}