欢迎使用 Pisces API

以更低的成本访问顶级 LLM:
ChatGPT、Claude、Gemini、Grok 等应有尽有!

main.py
1 from openai import OpenAI
2 client = OpenAI(api_key='pisces-你的密钥',
3 base_url='https://api.pisces.ink')
4
5 # 聊天补全请求
6 response = client.chat.completions.create(
7 model="gpt-4o",
8 messages=[
9 {"role": "system", "content": "你是一个人工智能助手"},
10 {"role": "user", "content": "告诉我一些量子计算的相关知识"}
11 ]
12 )
13
14 print(response.choices[0].message.content)

模型定价

模型 输入
(Pisces Coin/千字符)
输出
(Pisces Coin/千字符)
上下文长度 特性
Loading...

* 价格以Pisces Coin/千字符为单位

* 实际成本可能因具体用例和使用量而异

* 免费模型可能有速率限制和队列等待时间

使用说明

1

获取API密钥

注册并从控制面板获取API密钥

2

选择服务

从我们的AI模型和服务中进行选择

3

集成和部署

使用我们简单的REST API将AI集成到您的应用程序中

查看完整文档

加入我们的社区

QQ Group QR Code

扫码加入讨论组