http://localhost:8080
X-Request-ID: Unique ID for request tracing (returned in response headers).
Checks if the server is running.
- URL:
/health - Method:
GET - Response:
{
"status": "ok",
"message": "System is operational (and expensive)"
}Extracts the year from an uploaded image.
- URL:
/read-year - Method:
POST - Content-Type:
multipart/form-data - Parameters:
image: The image file (PNG, JPEG, WEBP, GIF)
- Response:
{
"year": "2024",
"cost": "$0.02",
"message": "Successfully extracted year from image using AI (because why not?)"
}- Errors:
400 Bad Request: Invalid file or missing key.429 Too Many Requests: Rate limit exceeded.500 Internal Server Error: AI failure or processing error.
Shows total cost.
- URL:
/stats - Method:
GET - Response:
{
"total_requests": 5,
"total_cost": "$0.10",
"cost_raw": 0.1,
"message": "Money successfully incinerated"
}- URL:
/why - Method:
GET