众所周知,由于地理位置的限制,Claude3 并未对国内用户开放,而国内的镜像网站费用又高得离谱!因此,我们的团队萌生了一个想法:为何不创建一个一站式的平台,让用户能够通过单一接口与多个模型进行交流呢?这样,用户就可以轻松比较不同模型的表现,并根据需求选择最合适的一个。于是,诞生了这个 野卡 | 一分钟注册,轻松订阅海外线上服务 的 ChatGPT 和 Claude3 聚合 API 平台。
话不多说,先上截图,可以看到无论是 ChatGPT 还是 Claude3 的模型,它们都得到了支持。
通过一个接口即可对接国际主流 AI 模型,兼容性方面我们已经为大家处理好了,您只需无脑对接即可。API 文档地址:api.atalk-ai.com/api#/operations/post-gpt-completions-messages
python
import http.client
conn = http.client.HTTPSConnection("api.atalk-ai.com")
payload = "{\n "messages": [\n {\n "role": "system",\n "content": "You are a helpful assistant."\n },\n {\n "role": "assistant",\n "content": "can i help you ?"\n },\n {\n "role": "user",\n "content": "Hello!"\n }\n ],\n "model": "gpt-3.5-turbo",\n "max_tokens": 1000,\n "stream": true,\n "temperature": 0.2\n}"
headers = {
'Authorization': "",
'Content-Type': "application/json"
}
conn.request("POST", "/gpt/completions", payload, headers)
res = conn.getresponse()
data = res.read()
print(data.decode("utf-8"))
java
AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("POST", "https://api.atalk-ai.com/gpt/completions")
.setHeader("Authorization", "")
.setHeader("Content-Type", "application/json")
.setBody("{\n "messages": [\n {\n "role": "system",\n "content": "You are a helpful assistant."\n },\n {\n "role": "assistant",\n "content": "can i help you ?"\n },\n {\n "role": "user",\n "content": "Hello!"\n }\n ],\n "model": "gpt-3.5-turbo",\n "max_tokens": 1000,\n "stream": true,\n "temperature": 0.2\n}")
.execute()
.toCompletableFuture()
.thenAccept(System.out::println)
.join();
client.close();
php
<?php
$client = new \GuzzleHttp\Client();
$response = $client->request('POST', 'https://api.atalk-ai.com/gpt/completions', [
'body' => '{
"messages": [
{
"role": "system",
"content": "You are a helpful assistant."
},
{
"role": "assistant",
"content": "can i help you ?"
},
{
"role": "user",
"content": "Hello!"
}
],
"model": "gpt-3.5-turbo",
"max_tokens": 1000,
"stream": true,
"temperature": 0.2
}',
'headers' => [
'Authorization' => '',
'Content-Type' => 'application/json',
],
]);
echo $response->getBody();
海鲸 AI-API 聚合平台是我们对 AI 技术无限探索的一次尝试。它不仅简化了与多个 AI 模型的交互过程,也为用户提供了一个高效、便捷的解决方案。我相信,随着 AI 技术的不断进步,海鲸 AI 将成为您实现创意和解决问题的得力助手。