API documentation
Run the same analysis as the workspace from your own software. Every successful call costs €0.05 and is charged to the Sensifai wallet of the person who created the key. Unsuccessful calls are free.
1. Create a key
Sign in, open the workspace and go to API keys. Give the key a name and, if you like, a monthly cap. The key is shown once. It looks like framecoach_live_… and only works for FrameCoach.
2. Call the endpoint
POST https://framecoach.sensifai.com/api/v1/run
Authorization: Bearer YOUR_KEY (or X-API-Key: YOUR_KEY)
Content-Type: application/json
{
"image": "data:image/jpeg;base64,<base64-encoded-photo>",
"goal": "travel",
"notes": "Golden hour harbor street shot on phone"
}3. Read the result
{
"id": "run_9a4e1c20",
"result": {
"overallScore": 74,
"verdict": "Strong golden-hour reflections held back by a tilted horizon and empty left-edge clutter.",
"scores": {
"composition": {
"score": 6,
"reason": "Leading pier lines work well, but excess empty left pavement weakens balance."
},
"lighting": {
"score": 8,
"reason": "Warm backlight creates rich reflections across the harbor water."
},
"subjectClarity": {
"score": 7,
"reason": "Foreground bollards anchor the shot while distant silhouettes blend into shadows."
},
"colorMood": {
"score": 9,
"reason": "Amber sky and slate-blue water deliver cohesive dusk contrast."
}
},
"crop": {
"aspectLabel": "3:2 Editorial",
"x": 0.12,
"y": 0.08,
"width": 0.82,
"height": 0.82,
"reason": "Removes excess left edge and aligns the pier on the lower-right third."
},
"horizonTiltDeg": 1.8,
"adjustments": {
"straightenDeg": -1.8,
"exposure": 0.1,
"contrast": 12,
"highlights": -28,
"shadows": 24,
"warmth": 6,
"saturation": 4
},
"strengths": [
"Warm sunset light along the wooden pier",
"Balanced amber and slate reflections"
],
"fixes": [
{
"title": "Level the 1.8 degree right tilt",
"detail": "Horizon slopes downward on the right.",
"priority": "high"
},
{
"title": "Trim left foreground edge",
"detail": "Tighten 12 percent on the left for a stronger 3:2 frame.",
"priority": "medium"
}
],
"nextShotTip": {
"headline": "Drop your camera to knee height",
"move": "Shoot closer to the foreground bollard so its texture anchors the reflection."
}
},
"aiGenerated": true,
"charge": {
"amountEur": 0.05,
"currency": "EUR"
}
}Every response has an X-Request-Id header. Quote it when you contact support. Rate limit: 60 calls per minute per key, reported in X-RateLimit-Limit and X-RateLimit-Remaining.
Errors
Errors use one shape: {"error": {"code", "message", "requestId"}}.
| Status | Code | Meaning |
|---|---|---|
| 400 | INVALID_JSON, MISSING_IMAGE, INVALID_IMAGE, UNSUPPORTED_IMAGE, IMAGE_TOO_SMALL, IMAGE_TOO_LARGE, INVALID_GOAL, NOTES_TOO_LONG | Fix the request. Not charged. |
| 401 | INVALID_API_KEY | Missing, malformed, revoked, or a key from another app. |
| 402 | PAYMENT_REQUIRED, KEY_SPEND_CAP_REACHED | Add funds or raise the key's cap. Not charged. |
| 413 | PAYLOAD_TOO_LARGE | Body over 6 MB. |
| 429 | RATE_LIMITED, TOO_MANY_PARALLEL_RUNS | Wait for the Retry-After seconds. |
| 502 | BILLING_UNAVAILABLE | The charge failed, so no result was returned. Not charged. |
| 503 | AI_UNAVAILABLE, WALLET_UNAVAILABLE | Temporary. Retry with backoff. Not charged. |
OpenAPI
Machine-readable description: https://framecoach.sensifai.com/api/v1/openapi
Privacy
Inputs and results are not stored. Responses never include the key owner’s identity. If your input contains personal data, you are responsible for having a legal basis to send it.