- Learn about PixVerse Platform
- Getting started
- API Reference
- Trouble Shooting
- Resources
Get user credit balance
GET
/openapi/v2/account/balance
Request
Header Params
API-KEY
string
required
ai-trace-id
string
required
Example:
{{$string.uuid}}
Request samples
Shell
JavaScript
Java
Swift
Go
PHP
Python
HTTP
C
C#
Objective-C
Ruby
OCaml
Dart
R
Request Request Example
Shell
JavaScript
Java
Swift
curl --location --request GET 'https://app-api.pixverse.ai/openapi/v2/account/balance' \
--header 'API-KEY;' \
--header 'ai-trace-id: {{$string.uuid}}'
Responses
🟢200Success
application/json
Body
ErrCode
integer
required
ErrMsg
string
required
Resp
object
required
account_id
integer
required
credit_monthly
integer
required
credit_package
integer
required
Example
{
"ErrCode": 0,
"ErrMsg": "success",
"Resp": {
"account_id": 123452341,
"credit_monthly": 1069020,
"credit_package": 3630
}
}