Wallet & Credits
Manage your API wallet and credits. Check balances, purchase credits via Stripe, track spending, and understand pay-as-you-go billing for 3D AI Studio API.
Get Wallet Balance
GET/user/wallet/
Returns the current credit balance for the authenticated user. Credits are calculated as total non-expired credits minus total debits.
Request
curl https://api.3daistudio.com/user/wallet/ \
-H "Authorization: Bearer YOUR_API_KEY"Response
{
"balance": "150.00"
}Credit Expiration
Purchased credits expire after 365 days. Granted/promotional credits expire after 31 days. Refunded credits do not expire. The balance endpoint always returns the effective (non-expired) balance.
Errors
Common errors for wallet endpoints.
| Status | Error Code | Description |
|---|---|---|
| 401 | invalid_api_key | API key is missing or invalid. |
| 401 | api_key_expired | API key has expired. Create a new one. |
| 401 | api_key_revoked | API key has been revoked. |