Check API Wallet Balance
Check your current Deepvue wallet balance and remaining API credits. Monitor spending to avoid service interruptions.
curl -X GET "https://production.deepvue.tech/v1/internal/wallet-balance" \
-H "Content-Type: application/json" \
-H "x-api-key: YOUR_API_KEY" \
-H "client-id: YOUR_API_KEY"
import requests
import json
url = "https://production.deepvue.tech/v1/internal/wallet-balance"
headers = {
"Content-Type": "application/json",
"x-api-key": "YOUR_API_KEY",
"client-id": "YOUR_API_KEY"
}
response = requests.get(url, headers=headers)
print(response.json())
const response = await fetch("https://production.deepvue.tech/v1/internal/wallet-balance", {
method: "GET",
headers: {
"Content-Type": "application/json",
"x-api-key": "YOUR_API_KEY",
"client-id": "YOUR_API_KEY"
}
});
const data = await response.json();
console.log(data);
package main
import (
"fmt"
"net/http"
)
func main() {
req, err := http.NewRequest("GET", "https://production.deepvue.tech/v1/internal/wallet-balance", nil)
if err != nil {
panic(err)
}
req.Header.Set("Content-Type", "application/json")
req.Header.Set("x-api-key", "YOUR_API_KEY")
req.Header.Set("client-id", "YOUR_API_KEY")
client := &http.Client{}
resp, err := client.Do(req)
if err != nil {
panic(err)
}
defer resp.Body.Close()
fmt.Println("Response Status:", resp.Status)
}
require 'net/http'
require 'json'
uri = URI('https://production.deepvue.tech/v1/internal/wallet-balance')
http = Net::HTTP.new(uri.host, uri.port)
http.use_ssl = true
request = Net::HTTP::Get.new(uri)
request['Content-Type'] = 'application/json'
request['x-api-key'] = 'YOUR_API_KEY'
request['client-id'] = 'YOUR_API_KEY'
response = http.request(request)
puts response.body
{
"current_balance": 6448,
"success": true
}
{
"detail": "Invalid client_id or client_secret, access Denied"
}
{
"detail": "Internal Server Error"
}
/v1/internal/wallet-balance
Target server for requests. Edit to use your own host.
The CLIENT_SECRET provided to you. This header parameter is required for authentication purposes.
The CLIENT_ID provided to you. This header parameter is required for authentication purposes.
Request Preview
Response
Response will appear here after sending the request
Authentication
API Key for authentication. The CLIENT_SECRET provided to you. This header parameter is required for authentication purposes.
API Key for authentication. The CLIENT_ID provided to you. This header parameter is required for authentication purposes.
Responses
Overview
This API enables you to check your current Deepvue account wallet balance. Upon successful authentication, the endpoint returns your current balance and a success confirmation.
This endpoint requires x-api-key and client-id headers for authentication. The response includes a numerical balance value and a boolean success flag.
Recharging your wallet
There is no recharge endpoint. To add funds, log in to the Deepvue Dashboard and top up your wallet there. For billing questions or recharge assistance, contact support@deepvue.ai. See Wallet and billing on the support page for the full picture.
To catch a low balance before it interrupts service, poll this endpoint on a schedule and alert on your own threshold. Pair it with the Usage Report API to see which products are consuming the balance.