Skip to main content

Base URL

All API requests should be made to:
https://api.tryveri.com/v1

Authentication

Authenticate using an API key in the X-API-Key header:
curl -X POST https://api.tryveri.com/v1/detect \
  -H "X-API-Key: your-api-key" \
  -H "Content-Type: application/json" \
  -d '{"image": "base64-encoded-image"}'

Endpoints

MethodEndpointDescription
POST/v1/detectDetect AI-generated content in an image
POST/v1/detect/urlDetect from an image URL
GET/v1/user/profileGet authenticated user’s profile
GET/v1/modelsList available models
GET/v1/configGet customer configuration
PUT/v1/configUpdate customer configuration

Request Format

All POST requests should include:
  • Content-Type: application/json header
  • JSON body with required parameters

Response Format

All responses are JSON with this structure: Success (2xx)
{
  "prediction": "ai",
  "confidence": 0.87,
  "isFake": true,
  ...
}
Error (4xx/5xx)
{
  "error": "Error message",
  "code": "ERROR_CODE",
  "requestId": "req_xyz789"
}

Error Codes

StatusCodeDescription
400INVALID_REQUESTMalformed request body
400INVALID_IMAGEImage could not be processed
401INVALID_API_KEYInvalid or missing API key
402INSUFFICIENT_CREDITSNot enough credits
404NOT_FOUNDResource not found
429RATE_LIMITEDToo many requests
500INTERNAL_ERRORServer error

Rate Limits

PlanRateBurst
Free10/sec20
Pro100/sec200
EnterpriseCustomCustom
Rate limit headers are included in responses:
  • X-RateLimit-Limit - Requests allowed per second
  • X-RateLimit-Remaining - Requests remaining in current window
  • Retry-After - Seconds to wait (on 429 responses)