Body Scan API for fitness apps

Send one photo with height, weight, age and sex. Get estimated body fat, lean mass, body type, and waist and hip size back as JSON. There is no scanner to buy.

5 free scans once per account. They don't renew. For wellness and fitness tracking; results are estimates, not medical measurements.

Human figure drawn from body contour lines, with a white tape line marking the waist
Sample result. Body fat estimate 20.4%, indicative range 14.4 to 26.4%.

From photo to JSON in one call

A body scan API turns a phone photo into body composition estimates your app can store and chart. WorkoutX finds body landmarks, then combines the waist and hip estimates with height, weight, age and sex in published equations, including U.S. Navy and Relative Fat Mass.

  1. Capture

    Your app takes one full-body photo.

  2. Send

    POST /v1/analyzeX-BodyScan-Key: bsk_•••••• front_photo  scan.jpgheight_cm    178weight_kg    80age          30gender       male

    You post it with four body values.

  3. Analyze

    • Pose landmarks
    • Waist and hip
    • Body fat equations
    • AI notes

    The engine measures and calculates.

  4. Receive

    200 OKapplication/json
    {  "body_composition": {    "body_fat_percentage": 20.4,    "body_fat_range": {      "low": 14.4, "high": 26.4    },    "lean_mass_kg": 63.7  },  "estimated_measurements": {    "waist_circumference_cm": 84,    "hip_circumference_cm": 96  }}

    Your app gets JSON it can chart.

Simplified response. See every field in the docs.

One request. No SDK needed.

curl -X POST "https://amused-mercy-production-aeaa.up.railway.app/v1/analyze" \
  -H "X-BodyScan-Key: $BODYSCAN_KEY" \
  -F front_photo=@scan.jpg \
  -F height_cm=178 \
  -F weight_kg=80 \
  -F age=30 \
  -F gender=male
Failed scans cost nothing
A bad photo returns 422 and the credit comes back.
Repeatable numbers
AI writes the notes. Equations set the body fat number.
Versioned results
Every scan stores its formula_version.
Progress built in
/v1/progress compares two scans for you.
Your user IDs
Tag scans with external_user_id and delete them by user.
Works with coding agents
Claude and Cursor can wire it up through MCP.
No monthly minimum
Pay for scans, not seats.

Or let your coding agent build it

Connect the WorkoutX MCP server once. Claude, Cursor and other agents get the fields, working code and test data they need.

Example agent session
> Add Body Scan to my Next.js progress screen

tool get_body_scan_integration
     language: "nextjs"
tool get_body_scan_sample_response
     scenario: "unreliable_photo"

created app/api/scan/route.ts
created components/ProgressCard.tsx
updated .env.example

Done. The key stays on your server, and the card
shows the range and photo tips. No credits used.
get_body_scan_integration
Working code for Next.js, React Native, Swift, Flutter and more.
get_body_scan_sample_response
Every response and error, so you can build the UI for free.
estimate_body_fat
Tape-based estimates from published equations. No photo needed.
claude mcp add --transport http workoutx https://api.workoutxapp.com/mcp --header "X-WorkoutX-Key: wx_your_key"
Set up Cursor, VS Code or ChatGPT

Photos never pass through MCP. Your app sends them straight to the Body Scan API.

A phone instead of a device

FeatureWorkoutX Body Scan3D body scannerDXA scan
HardwareNoneScanner purchaseBooked at a facility
WhereAnywhereNext to the scannerImaging centre
ResultPhoto-based estimateMeasured 3D shapeReference measurement

Body Scan is for fitness and wellness tracking. It has not been validated against DXA.

Pay once, with no monthly fee

Start with 5 free scans, once per account. Purchased credits never expire. Every pack has every feature. Prices include tax.

  • Free trial

    5 scans, once per account, no renewal

    $0Start free
  • Starter

    20 scans at $1.95 each

    $39
  • Builder

    100 scans at $1.49 each

    $149
  • Growth

    500 scans at $1.20 each

    $599
  • Scale

    1,000 scans at $1.00 each

    $999

What happens to a photo

  • Not storedAnalyzed, then discarded
  • 90 daysResults delete automatically
  • 18+Adults only

Anthropic processes the front photo for the AI notes. Read the privacy policy.

Questions

How accurate is the Body Scan API?

It gives an estimate and has not been validated against DXA or another reference method. Each response includes a wide indicative range. Use it to follow trends between scans.

How is body fat calculated?

Waist and hip estimates from the photo are combined with height, weight, age and sex in published equations: U.S. Navy, Relative Fat Mass, Deurenberg and a Gallagher-type BMI equation. AI writes notes on body type and posture. It does not set the number.

Is this a medical device?

No. Do not use it to diagnose, treat or monitor a medical condition.

Can it replace a DXA scan?

No. DXA is a measurement. Body Scan is a photo-based estimate for regular check-ins.

What kind of photo works best?

A full-body front photo in fitted clothing, with even light and a plain background. A side photo improves the waist and hip estimates.

Can I send tape measurements?

Yes. Send tape_waist_cm, tape_hip_cm or tape_neck_cm with the scan. They replace the photo estimates in the equations.

Does Body Scan work with MCP?

Yes. The WorkoutX MCP server gives coding agents integration code, sample responses and tape-based estimates. Photos never pass through MCP.

Does the API return a 3D model?

No. It returns numbers as JSON.

How much does a scan cost?

Every WorkoutX account gets 5 free scans once, and they don't renew. After that, scans cost $1.00 to $1.95 depending on the credit pack. Purchased credits never expire and there is no monthly fee.

Ship it this week

Your first 5 scans are free, once per account.