Image Inference
Authorizations
AuthorizationstringRequired
Primary authentication method - Required for all endpoints except /health.
Three Authentication Methods:
1. OAuth 2.0 Client Credentials (Recommended)
Get token:
curl -X POST https://enterprise.bitmind.ai/v1/oauth/token \
-d "grant_type=client_credentials" \
-d "client_id=YOUR_ID" \
-d "client_secret=YOUR_SECRET"
Use token:
Authorization: Bearer eyJhbGciOiJSUzI1NiJ9...
- Token lifetime: 1 hour
- Fast local JWT verification (<1ms)
- Recommended for all M2M integrations
2. OAuth + mTLS (High Security)
Get token (certificate replaces secret):
curl -X POST https://enterprise.bitmind.ai/v1/oauth/token \
-H "X-Client-Cert: $(base64 -w 0 client.crt)" \
-d "grant_type=client_credentials" \
-d "client_id=YOUR_ID"
Use token + certificate:
Authorization: Bearer eyJhbGc...
X-Client-Cert: LS0tLS1CRUdJTi...
- Certificate authenticates token request (no client_secret)
- Certificate also required on all API calls
- Required for government/healthcare/financial clients
- Complies with RFC 8705
3. Organization API Key (Legacy)
Authorization: Bearer enterprise-YOUR_API_KEY
- Long-lived until revoked
- No token refresh needed
- Simple but less secure than OAuth
Header parameters
X-Client-Certstring · byteOptional
For mTLS clients only: Base64-encoded client certificate.
Required only when your client has requires_mtls=true in configuration.
Example:
X-Client-Cert: $(base64 -w 0 client.crt)
Body
string · binaryOptional
Responses
200
Image inference results
application/json
isAIbooleanRequiredExample:
True if content is AI-generated (confidence >= 0.5)
trueconfidencenumber · double · max: 1RequiredExample:
Probability that content is AI-generated (0.0 to 1.0)
0.8234processingTimenumber · doubleRequiredExample:
Model processing time in seconds
0.045400
Bad request - Invalid input data
application/json
401
Unauthorized - Invalid or missing authentication
application/json
403
Forbidden - Permission denied or missing mTLS certificate
application/json
413
Image file too large (max 100 MB)
application/json
post
/imageLast updated