| 模型名称 | 版本 | 计费方式 | 特点 |
|---|---|---|---|
| gpt-4.1-2025-04-14 | 标准版 | 按量计费 | 性能最强,适合企业级应用 |
| gpt-4.1-mini-2025-04-14 | 迷你版 | 按量计费 | 轻量级,适合简单应用 |
| gpt-4.1-nano-2025-04-14 | 纳米版 | 按量计费 | 超轻量,适合移动端 |
以下是使用GPT-4.1系列模型的Python示例代码:
# GPT-4.1 API调用示例
import requests
API_KEY = "your_jeniya_api_key"
API_URL = "https://api.jeniya.top/v1/chat/completions"
headers = {
"Authorization": f"Bearer {API_KEY}",
"Content-Type": "application/json"
}
data = {
"model": "gpt-4.1-2025-04-14", # 可选:gpt-4.1-mini-2025-04-14 或 gpt-4.1-nano-2025-04-14
"messages": [
{"role": "system", "content": "你是一个专业助手"},
{"role": "user", "content": "请解释GPT-4.1 API的特点"}
]
}
response = requests.post(API_URL, headers=headers, json=data)
print(response.json())
根据您的需求选择合适的GPT-4.1模型: