How to Check Usage
View your API usage statistics.
Endpoint
GET https://api.get3w.com/api/v3/usageRequest
bash
curl "https://api.get3w.com/api/v3/usage" \
-H "Authorization: Bearer YOUR_API_KEY"python
import requests
response = requests.get(
"https://api.get3w.com/api/v3/usage",
headers={"Authorization": "Bearer YOUR_API_KEY"}
)
data = response.json()["data"]
print(f"Total tasks: {data['total_tasks']}")
print(f"Total cost: ${data['total_cost']}")Response
json
{
"code": 200,
"message": "success",
"data": {
"total_tasks": 1250,
"total_cost": 85.30,
"period": "2024-01",
"breakdown": {
"text-to-image": { "tasks": 800, "cost": 24.00 },
"image-to-video": { "tasks": 300, "cost": 45.00 },
"text-to-speech": { "tasks": 150, "cost": 16.30 }
}
}
}Query Parameters
| Parameter | Type | Description | Default |
|---|---|---|---|
period | string | Month in YYYY-MM format | Current month |
start_date | string | Start date (YYYY-MM-DD) | — |
end_date | string | End date (YYYY-MM-DD) | — |
Next Steps
- How to Check Balance — View current balance
- How to Check Billings — View billing history