获取剩余积分
GEThttps://4oimageapiio.erweima.ai/api/v1/chat/credit
获取您账户中可用的当前积分余额。
使用指南
- 使用此接口检查您当前的积分余额
- 监控使用情况以确保有足够的积分继续使用服务
- 根据使用模式计划积分补充
开发者注意事项
- 所有生成服务都需要积分余额
- 积分耗尽时服务访问将受到限制
- 积分消耗基于特定服务和使用量
Responses
- 200
- 500
请求成功
- application/json
- Schema
- Example (auto)
- Example
Schema
codeStatusCode (integer)
响应状态码
Enum Value | Description |
---|---|
200 | 成功 - 请求已成功处理 |
401 | 未授权 - 缺少身份验证凭据或凭据无效 |
402 | 积分不足 - 账户没有足够的积分执行此操作 |
404 | 未找到 - 请求的资源或端点不存在 |
422 | 参数错误 - 请求参数未通过验证检查 |
429 | 超出限制 - 已超过对此资源的请求限制 |
455 | 服务不可用 - 系统当前正在进行维护 |
500 | 服务器错误 - 在处理请求时发生意外错误 |
505 | 功能已禁用 - 请求的功能当前已禁用 |
Possible values: [200
, 401
, 402
, 404
, 422
, 429
, 455
, 500
, 505
]
msgstring
当 code != 200 时的错误信息
Example:
success
datainteger
剩余积分数量
Example:
100
{
"code": 200,
"msg": "success",
"data": 100
}
{
"code": 200,
"msg": "success",
"data": 100
}
服务器错误
Authorization: http
name: BearerAuthtype: httpscheme: bearerbearerFormat: API Keydescription: 所有接口都需要通过 Bearer Token 方式进行认证。 获取 API Key: 1. 访问 [API Key 管理页面](https://4oimageapiio.erweima.ai/api-key) 获取您的 API Key 使用方式: 在请求头中添加: Authorization: Bearer YOUR_API_KEY 注意事项: - 请妥善保管您的 API Key,不要泄露给他人 - 如果怀疑 API Key 泄露,请立即在管理页面重置
- csharp
- curl
- dart
- go
- http
- java
- javascript
- kotlin
- c
- nodejs
- objective-c
- ocaml
- php
- powershell
- python
- r
- ruby
- rust
- shell
- swift
- HTTPCLIENT
- RESTSHARP
var client = new HttpClient();
var request = new HttpRequestMessage(HttpMethod.Get, "https://4oimageapiio.erweima.ai/api/v1/chat/credit");
request.Headers.Add("Accept", "application/json");
request.Headers.Add("Authorization", "Bearer <token>");
var response = await client.SendAsync(request);
response.EnsureSuccessStatusCode();
Console.WriteLine(await response.Content.ReadAsStringAsync());
ResponseClear