# Quantabble API

> Misconception detection as a service for AP Chemistry and AP Physics 1.
> Semantic guardrail evaluation trained on 10 years of Chief Reader analysis.
> 90% catch rate. $0.01/call.

## Coverage

- **AP_CHEMISTRY:** 91 schemas
- **AP_PHYSICS_1:** 39 schemas

**Total:** 130 schemas

## Request Format

```
POST https://quantabble-api.chemandphysicsmastery.workers.dev/
Content-Type: application/json

{
  "student_response": "The mole is a unit of mass, like grams but for atoms.",
  "schema_id": "AP_CHEM_1_1"
}
```

Note: `schema_id` is optional. If omitted, the API routes automatically.

## Response Format

```json
{
  "primary_schema": "AP_CHEM_1_1",
  "status": "CAUGHT",
  "misconception_detected": true,
  "misconception_id": "MOLE_IS_A_MASS_UNIT",
  "severity": "high",
  "confidence_score": 0.97,
  "what_student_got_right": "...",
  "description": "...",
  "tutor_response": "...",
  "probe_question": "...",
  "remediation_frame": "..."
}
```

## Pricing

- **$0.01 / call** — full diagnostic + remediation
- Contact: chemandphysicsmastery.workers.dev
