curl https://api.artificialstudio.ai/api/account \
-H "Authorization: YOUR_API_KEY"
const response = await fetch('https://api.artificialstudio.ai/api/account', {
headers: { 'Authorization': 'YOUR_API_KEY' }
});
const account = await response.json();
console.log(`Credits: ${account.credits}`);
import requests
response = requests.get(
'https://api.artificialstudio.ai/api/account',
headers={'Authorization': 'YOUR_API_KEY'}
)
account = response.json()
print(f"Credits: {account['credits']}")
{
"id": "507f1f77bcf86cd799439011",
"email": "[email protected]",
"credits": 1500,
"plan": "pro",
"createdAt": "2024-01-15T10:30:00.000Z"
}
{
"message": "Invalid or missing API key"
}
{
"message": "Too many API requests, please try again later"
}
API Reference
Get Account
Retrieve your account details, including credits balance and current plan.
GET
/
api
/
account
curl https://api.artificialstudio.ai/api/account \
-H "Authorization: YOUR_API_KEY"
const response = await fetch('https://api.artificialstudio.ai/api/account', {
headers: { 'Authorization': 'YOUR_API_KEY' }
});
const account = await response.json();
console.log(`Credits: ${account.credits}`);
import requests
response = requests.get(
'https://api.artificialstudio.ai/api/account',
headers={'Authorization': 'YOUR_API_KEY'}
)
account = response.json()
print(f"Credits: {account['credits']}")
{
"id": "507f1f77bcf86cd799439011",
"email": "[email protected]",
"credits": 1500,
"plan": "pro",
"createdAt": "2024-01-15T10:30:00.000Z"
}
{
"message": "Invalid or missing API key"
}
{
"message": "Too many API requests, please try again later"
}
Retrieve your account details, including credits balance and plan.
Response Fields
| Field | Type | Description |
|---|---|---|
id | string | User ID |
email | string | Account email |
credits | number | Available credits |
plan | string | Current plan: free or pro |
createdAt | string | Account creation date |
curl https://api.artificialstudio.ai/api/account \
-H "Authorization: YOUR_API_KEY"
const response = await fetch('https://api.artificialstudio.ai/api/account', {
headers: { 'Authorization': 'YOUR_API_KEY' }
});
const account = await response.json();
console.log(`Credits: ${account.credits}`);
import requests
response = requests.get(
'https://api.artificialstudio.ai/api/account',
headers={'Authorization': 'YOUR_API_KEY'}
)
account = response.json()
print(f"Credits: {account['credits']}")
{
"id": "507f1f77bcf86cd799439011",
"email": "[email protected]",
"credits": 1500,
"plan": "pro",
"createdAt": "2024-01-15T10:30:00.000Z"
}
{
"message": "Invalid or missing API key"
}
{
"message": "Too many API requests, please try again later"
}
⌘I