Query Credits
GEThttps://deepseekapiio.erweima.ai/api/v1/chat/credit
Query the remaining credits for the current account.
Important Notes
- If credits are insufficient, you will not be able to continue using generation services
Responses
- 200
- 500
Request successful
- application/json
- Schema
- Example (auto)
- Example
Schema
codeStatusCode (integer)
Response status code
Enum Value | Description |
---|---|
100 | Executed - To be executed |
200 | Success - The request was successful |
300 | Answering |
401 | Unauthorized - Authentication is required or failed |
402 | Exhausted Times - The number of times has been used up |
404 | Not Found - Invalid request method or path |
422 | Incorrect Parameters - Wrong Parameter Code |
429 | Insufficient Credits - Account has insufficient credits |
500 | Server Error - Internal server error occurred |
505 | Chat Disabled - Chat Disable Error Code |
Possible values: [100
, 200
, 300
, 401
, 402
, 404
, 422
, 429
, 500
, 505
]
msgstring
Error message when code != 200
Example:
success
datainteger
Remaining credit quantity
Example:
100
{
"code": 100,
"msg": "success",
"data": 100
}
{
"code": 200,
"msg": "success",
"data": 100
}
Server Error
Authorization: http
name: BearerAuthtype: httpscheme: bearerbearerFormat: API Keydescription: All APIs require authentication via Bearer Token. Get API Key: 1. Visit [API Key Management Page](https://deepseekapi.io/api-key) to get your API Key Usage: Add to request header: Authorization: Bearer YOUR_API_KEY Note: - Keep your API Key secure and do not share it with others - If you suspect your API Key has been compromised, reset it immediately in the management page
- 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://deepseekapiio.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