API介绍
我们自己提供的服务
API调试台
登录后,探索更多精彩功能! 点击登录
API列表 (8)
| API描述 | 接口地址 | 请求方法 | 稳定性 | 参数说明 |
|---|---|---|---|---|
账户余额 | GET | 稳定 | 查看详情 | |
文档详情 获取对应302.AI账户的余额 价格:免费 请求参数 Header参数Authorizationstring必需 示例值: Bearer {{YOUR_API_KEY}} | ||||
API日志 | GET | 稳定 | 查看详情 | |
文档详情 查询近期对应API-KEY的请求日志和扣费情况 价格:免费 请求参数 Header参数Authorizationstring必需 示例值: Bearer {{YOUR_API_KEY}}Query参数pagestring可选 示例值: 1limitstring可选 示例值: 10start_timestring可选 示例值: 1765181193end_timestring可选 示例值: 1765267599 | ||||
获取用户 API Keys 列表数据 | GET | 稳定 | 查看详情 | |
文档详情 通过有系统权限的 API_Key 获取用户 API Keys 列表 此接口需要开对应 API Key 的权限 价格:免费 请求参数 Header参数Authorizationstring可选 示例值: Bearer {{YOUR_API_KEY}} | ||||
获取指定 API Key 的数据 | GET | 稳定 | 查看详情 | |
文档详情 通过有系统权限的权限的 API Key 获取用户指定 API Key 的数据 价格:免费 请求参数 Path参数api_namestring必需 Header参数Authorizationstring可选 示例值: Bearer {{YOUR_API_KEY}} | ||||
创建 API Key | POST | 稳定 | 查看详情 | |
文档详情 通过有系统权限的权限的 API Key 创建 API Key 价格:免费 请求参数 Header参数Authorizationstring可选 示例值: Bearer {{YOUR_API_KEY}}Body参数 application/jsonapi_namestring必需 allow_save_logsboolean必需 allow_custom_modelboolean必需 limit_costinteger必需 limit_daily_costinteger必需 expired_oninteger必需 unix时间戳 allow_manage_keyboolean必需 | ||||
更新 API Key | PUT | 稳定 | 查看详情 | |
文档详情 通过有系统权限的权限的 API Key 更新指定的 API Key 价格:免费 请求参数 Path参数api_namestring必需 Header参数Authorizationstring可选 示例值: Bearer {{YOUR_API_KEY}}Body参数 application/jsonapi_namestring必需 allow_save_logsboolean必需 allow_custom_modelboolean必需 limit_costinteger必需 limit_daily_costinteger必需 expired_oninteger必需 unix时间戳 allow_manage_keyboolean必需 | ||||
删除 API Key | DELETE | 稳定 | 查看详情 | |
文档详情 通过有系统权限的权限的 API Key 删除指定名称的 API Key 价格:免费 请求参数 Path参数api_namestring必需 Header参数Authorizationstring可选 示例值: Bearer {{YOUR_API_KEY}} | ||||
Price(获取API的价格) | GET | 稳定 | 查看详情 | |
文档详情 通过指定 Path 参数获取对应路径的模型价格 价格:0 PTC/次 请求参数 Header参数Authorizationstring必需 示例值: Bearer {{YOUR_API_KEY}}Query参数pathstring可选 示例值: /chat/completionslangenum<string>可选 枚举值: zhenjp示例值: zh | ||||
API价格表
$¥ 円 ₽
| 模型 | 说明 | 302.AI价格 |
|---|
Balance | 账户余额 |
免费 |
API-Record | 查看API日志 |
免费 |
Price | 获取API的价格 |
免费 |
获取用户 API Keys 列表数据 | 获取用户 API Keys 列表数据 |
免费 |
获取指定 API Key 的数据 | 获取指定 API Key 的数据 |
免费 |
创建 API Key | 创建 API Key |
免费 |
更新 API Key | 更新 API Key |
免费 |
删除 API Key | 删除 API Key |
免费
|
