Account
Get Account
Check your key, and read your API credit and your key's name and limits
GET
Try itcurl https://api.voice213.com/api/v1/me \
-H "Authorization: Bearer $VOICE213_API_KEY"import os
import requests
response = requests.get(
"https://api.voice213.com/api/v1/me",
headers={"Authorization": f"Bearer {os.environ['VOICE213_API_KEY']}"},
timeout=30,
)
body = response.json()
print(body["account"]["credit"], body["account"]["currency"], body["key"]["rateLimit"]["rpd"])const response = await fetch("https://api.voice213.com/api/v1/me", {
headers: { Authorization: `Bearer ${process.env.VOICE213_API_KEY}` },
});
const { account, key } = await response.json();
console.log(account.credit, account.currency, key.rateLimit.rpd);{
"success": true,
"account": {
"credit": 4865.91,
"currency": "DZD"
},
"key": {
"name": "My Store Backend",
"rateLimit": { "rpm": 600, "rpd": 1000, "concurrentRequests": 20, "maxTextWords": 5000 }
}
}{
"error": "Invalid or inactive API key"
}Returns your API credit and the name and limits of the key you called with. It's free, and it doesn't count toward your rate limits. Use it to check that a key works before you start, or to read your balance from code.
It answers only what the API uses. Your email, name, plan and plan credits aren't in it, so a key that leaks doesn't reveal who you are. The response is never cached.
Authorizations
Your API key as a Bearer token: Bearer sk_live_.... See Authentication.
Response
application/jsonErrors
| Status | Error | When |
|---|---|---|
401 | Missing API key. Pass it as 'Authorization: Bearer sk_live_...' | The request has no key. |
401 | Invalid or inactive API key | The key is wrong, switched off or deleted. |
403 | Account deactivated | The account that owns the key is deactivated or suspended. Contact support. |
403 | API_ACCESS_BLOCKED (in code) | API access was switched off for the account. The message in error is in Arabic. Contact support. See API access switched off. |
429 | Rate limit exceeded: RPM limit exceeded or Rate limit exceeded: Daily limit exceeded | Your key used up its requests for the minute or the day. This call doesn't count toward them, but it's refused while they're used up. |
503 | MAINTENANCE (in code) | The API is down for maintenance. Retry later. See Paused models and maintenance. |
Was this page helpful?