Stability.Ai
  1. user
Stability.Ai
  • Getting Started
  • v1
    • user
      • account
        GET
      • balance
        GET
    • engines
      • list
    • generation
      • text-to-image
      • image-to-image
      • image-to-image/upscale
      • image-to-image/masking
  • v2alpha
    • generation
      • image-to-video
      • image-to-video/result
      • stable-image/upscale
      • stable-image/upscale/result
      • stable-image/inpaint
  1. user

balance

https://api.stability.ai
https://api.stability.ai
https://api.stability.ai
https://api.stability.ai
GET
/v1/user/balance
v1/user
Get the credit balance of the account/organization associated with the API key
Request Request Example
Shell
JavaScript
Java
Swift
curl --location --request GET 'https://api.stability.ai/v1/user/balance'
Response Response Example
200 - Success
{
    "credits": 0.6336833840314097
}

Request

Header Params
Organization
string 
optional
Allows for requests to be scoped to an organization other than the user's default. If not provided, the user's default organization will be used.
Example:
org-123456
Stability-Client-ID
string 
optional
Used to identify the source of requests, such as the client application or sub-organization. Optional, but recommended for organizational clarity.
Example:
my-great-plugin
Stability-Client-Version
string 
optional
Used to identify the version of the application or service making the requests. Optional, but recommended for organizational clarity.
Example:
1.2.1

Responses

🟢200OK response.
application/json
Body
credits
number <double>
required
The balance of the account/organization associated with the API key
Example:
0.41122252265928866
🟠401401
🔴500500
Previous
account
Next
list
Built with