Skip to content

How to Check Usage

View your API usage statistics.

Endpoint

GET https://api.get3w.com/api/v3/usage

Request

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

ParameterTypeDescriptionDefault
periodstringMonth in YYYY-MM formatCurrent month
start_datestringStart date (YYYY-MM-DD)
end_datestringEnd date (YYYY-MM-DD)

Next Steps

Released under the MIT License.