APIクレジット照会 (8/9)
GET /v2/credits
Query the current user's account balance and credit information.
GEThttps://udioapi.pro/api/v2/credits
ヒント
Use this endpoint to check your current account balance and available credits for AI music generation.
Response Fields:
credits: Remaining credits available for music generationused_credits: Total credits that have been consumed
Key Usage:
- Check remaining credits before starting new generation tasks
- Monitor credit consumption in real-time
- Implement low balance warnings in your application
Authentication: Always include your Bearer token in the Authorization header to authenticate your request.
リクエストヘッダー
| 名前 | 必須 | 説明 |
|---|---|---|
| Authorization | はい | Bearer token for authentication. Use "Bearer your_api_key" format. |
Authorization必須
Bearer token for authentication. Use "Bearer your_api_key" format.
レスポンス
{
"code": 200,
"message": "success",
"data": {
"credits": 195,
"used_credits": 5
}
}コード例
curl -X GET "https://udioapi.pro/api/v2/credits" \
-H "Authorization: Bearer YOUR_API_KEY"APIクレジット照会 (8/9)
GET /v2/credits
Query the current user's account balance and credit information.
GEThttps://udioapi.pro/api/v2/credits
ヒント
Use this endpoint to check your current account balance and available credits for AI music generation.
Response Fields:
credits: Remaining credits available for music generationused_credits: Total credits that have been consumed
Key Usage:
- Check remaining credits before starting new generation tasks
- Monitor credit consumption in real-time
- Implement low balance warnings in your application
Authentication: Always include your Bearer token in the Authorization header to authenticate your request.
リクエストヘッダー
| 名前 | 必須 | 説明 |
|---|---|---|
| Authorization | はい | Bearer token for authentication. Use "Bearer your_api_key" format. |
Authorization必須
Bearer token for authentication. Use "Bearer your_api_key" format.
レスポンス
{
"code": 200,
"message": "success",
"data": {
"credits": 195,
"used_credits": 5
}
}コード例
curl -X GET "https://udioapi.pro/api/v2/credits" \
-H "Authorization: Bearer YOUR_API_KEY"