Skip to main content

Query Credits

GET 

https://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

Request successful

Schema
    codeStatusCode (integer)

    Response status code

    Enum ValueDescription
    100Executed - To be executed
    200Success - The request was successful
    300Answering
    401Unauthorized - Authentication is required or failed
    402Exhausted Times - The number of times has been used up
    404Not Found - Invalid request method or path
    422Incorrect Parameters - Wrong Parameter Code
    429Insufficient Credits - Account has insufficient credits
    500Server Error - Internal server error occurred
    505Chat 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

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
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());
Request Collapse all
Base URL
https://deepseekapiio.erweima.ai
Auth
ResponseClear

Click the Send API Request button above and see the response here!