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 crumblab_live_… and only works for CrumbLab.
2. Call the endpoint
POST https://crumblab.sensifai.com/api/v1/run
Authorization: Bearer YOUR_KEY (or X-API-Key: YOUR_KEY)
Content-Type: application/json
{
"mode": "crumb_autopsy",
"images": [
"data:image/jpeg;base64,/9j/4AAQSkZJRg..."
],
"hydrationPct": 75,
"bulkHours": 5.5,
"roomTempC": 24,
"bakeVessel": "dutch_oven",
"notes": "80% bread flour, 20% whole wheat, cooled 2 hours."
}3. Read the result
{
"id": "run_7f3c2a91",
"result": {
"mode": "crumb_autopsy",
"verdictTitle": "Slightly under-proofed tight crumb",
"confidence": "High",
"spectrumPosition": 32,
"spectrumZone": "slightly_under",
"spectrumLabel": "Slightly under-proofed",
"oneThingNextBake": {
"action": "Extend bulk fermentation by 45 minutes before shaping.",
"targetCue": "Wait until the dough reaches a 50% rise and wobbles cleanly when nudged.",
"why": "A little extra bulk time relaxes the tight shoulder pockets and lightens the lower crumb."
},
"metrics": [
{
"label": "Fermentation balance",
"score": 62,
"note": "Close to target, slightly shy of full lift."
},
{
"label": "Shaping & tension",
"score": 84,
"note": "Neat boule shape with firm shoulder tension."
},
{
"label": "Crust & steam",
"score": 86,
"note": "Blistered golden crust with clean ear separation."
}
],
"visualEvidence": [
{
"area": "crumb",
"observation": "A cluster of larger holes sits near the upper crown above tighter lower alveoli.",
"implication": "Fermentation finished slightly early before gas distributed evenly downward."
}
],
"techniqueNotes": [
{
"topic": "Shaping & scoring",
"finding": "Scoring depth and angle produced a clean lift; keep the same blade angle next bake."
}
],
"photoLimits": [
{
"limitation": "Photos cannot confirm internal cooling time before slicing.",
"selfCheckQuestion": "Did the loaf cool for at least 2 hours before slicing?"
}
],
"bakeMathSummary": "75% hydration · 24°C · 5.5 hrs · Dutch oven"
},
"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 | IMAGES_REQUIRED, TOO_MANY_IMAGES, INVALID_IMAGE, INVALID_MODE, INVALID_BAKE_PARAM, INPUT_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 12 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://crumblab.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.