계정 잔액 조회 API

2026-09-18 업데이트 · Suno-API 팀

인터페이스 설명

계정 잔액 조회를 통해 사용자는 자신의 API Key로 New API 계정 잔액을 확인할 수 있습니다. 이 엔드포인트는 잔액만 조회하며 생성 작업을 일으키지 않고 요금도 청구하지 않습니다.

엔드포인트: GET /api/user/balance

과금: 무료.

잔액 단위: yuan. 응답의 effective_amount는 quota_per_unit으로 사용자가 이해할 수 있는 위안 금액으로 이미 환산되어 있습니다.

요청 파라미터

Headers

파라미터 타입 필수 설명
Authorization string 예 Bearer YOUR_API_KEY

Query 파라미터

없습니다.

요청 예시

cURL

curl -X GET https://www.suno-api.io/api/user/balance \
  -H "Authorization: Bearer YOUR_API_KEY"

Python

import requests

api_key = "YOUR_API_KEY"
response = requests.get(
    "https://www.suno-api.io/api/user/balance",
    headers={"Authorization": f"Bearer {api_key}"},
    timeout=30,
)
response.raise_for_status()

result = response.json()
balance = result["data"]["balance"]
print(balance["formatted_effective_amount"])

Node.js

const apiKey = "YOUR_API_KEY";

const response = await fetch("https://www.suno-api.io/api/user/balance", {
  method: "GET",
  headers: {
    Authorization: `Bearer ${apiKey}`,
  },
});

if (!response.ok) {
  throw new Error(`HTTP ${response.status}`);
}

const result = await response.json();
console.log(result.data.balance.formatted_effective_amount);

PHP

<?php
$apiKey = "YOUR_API_KEY";

$ch = curl_init("https://www.suno-api.io/api/user/balance");
curl_setopt($ch, CURLOPT_HTTPHEADER, [
    "Authorization: Bearer " . $apiKey
]);
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);

$response = curl_exec($ch);
if ($response === false) {
    throw new Exception(curl_error($ch));
}
curl_close($ch);

$result = json_decode($response, true);
echo $result["data"]["balance"]["formatted_effective_amount"];
?>

응답 결과

{
  "success": true,
  "message": "",
  "data": {
    "object": "user_balance",
    "user": {
      "id": 123,
      "username": "example",
      "quota": 207900000,
      "used_quota": 0,
      "request_count": 10,
      "group": "default",
      "status": 1
    },
    "token": {
      "id": 456,
      "name": "default",
      "group": "default",
      "status": 1,
      "remain_quota": 207900000,
      "used_quota": 0,
      "unlimited_quota": true,
      "model_limits_enabled": false,
      "model_limits": {}
    },
    "balance": {
      "user_quota": 207900000,
      "token_quota": 207900000,
      "effective_quota": 207900000,
      "user_amount": 415.8,
      "token_amount": 415.8,
      "effective_amount": 415.8,
      "amount_unit": "yuan",
      "formatted_effective_amount": "415.80 yuan"
    },
    "display": {
      "quota_per_unit": 500000,
      "amount_unit": "yuan"
    }
  }
}

필드 설명

필드 타입 설명
balance.user_quota number 사용자 계정의 남은 할당량 원시값
balance.token_quota number 현재 API Key의 남은 할당량 원시값. 무제한 키는 사용자 잔액을 반환합니다
balance.effective_quota number 현재 API Key가 실제 사용할 수 있는 할당량 원시값
balance.effective_amount number 환산 후 실제 사용 가능한 금액
balance.amount_unit string yuan으로 고정
balance.formatted_effective_amount string 사용자에게 그대로 보여줄 수 있는 잔액 문자열
display.quota_per_unit number 원시 할당량 환산 단위. 금액 = quota / quota_per_unit

설명

다음영감 모드 생성 API

API 키 발급

가입 후 콘솔에서 API 키를 만들 수 있습니다. 1회 0.6위안으로 2곡이 생성되고, 다운로드는 횟수 제한이 없으며 휴대폰 번호는 필요하지 않습니다.

API 키 받기 개요로 돌아가기