Skip to main content

Domains & Authentication

Note: The following examples need to replace the Authorization with the actual Login Code
Primary domain: https://ai.liaobots.work
Backup domains: https://ai.liaobots1.work, https://ai.liaobots2.work, https://ai.liaobots3.work
Keep the same path suffix when switching domains, such as /v1 or /v1beta

Check Balance

Query remaining credits for your auth code. The following two paths are equivalent — use either one: /api/v1/credits or /v1/credits.
Curl
Response:
FieldDescription
balanceRemaining available credits
amountTotal credits received

Check Credit Usage Records

Add include_usage=true to the balance endpoint to return detailed credit usage records. Use pageSize to control page size, and pass the returned nextId to fetch the next page.
Curl
Response:
FieldDescription
usage.pageSizePage size returned by this request
usage.nextIdCursor for the next page. Empty means there are no more records
usage.list[].modelModel or service used
usage.list[].priceCredits charged for this record
usage.list[].tokensTotal token count
usage.list[].input_tokensInput token count
usage.list[].output_tokensOutput token count
usage.list[].cache_hit_tokensCache hit token count
usage.list[].cache_creation_tokensCache creation token count
usage.list[].create_timeCharge time as a Unix millisecond timestamp

OpenAI Format (Chat Completions)

Streaming Response

Non-Streaming Response

Claude Format (Anthropic Messages)

Streaming Response

Non-Streaming Response

OpenAI Responses API

Streaming Response

Non-Streaming Response

Gemini Format (Gemini Native)

Non-Streaming Response

Curl

Streaming Response

Curl

Gemini Nano Banana 2/Pro

Non-Streaming Response

Curl

Streaming Response

Curl