// build · dental-smile-design

Digital Smile Design API: The Feature Every Dental Platform Needs

Digital smile design has no dominant B2B API. Here is how to build a photo-realistic smile simulation feature into any dental practice platform in two days.

Published 2026-06-10digital smile designsmile makeoverdsd dental

There is no dominant B2B API for digital smile design. Every cosmetic dental platform, from Invisalign consultation tools to independent DSD software, builds their own simulation layer or skips it entirely. The result: patients leave consultations with a printed brochure instead of a photo of their own projected smile.

Smile makeover consultations have historically required a trained technician, Photoshop, and two hours to produce one simulation. A compositing pipeline running on a cloud GPU produces the same output in three seconds at $0.05 per image. Here is how to build it into any dental platform.

average full smile makeover cost
dental practices in the US
simulation latency

The digital smile design market

Digital smile design (DSD) is a clinical workflow introduced by dental consultant Christian Coachman in 2009 to map facial proportions onto a proposed dental treatment plan. The software-side of DSD, capturing photos, marking reference lines, rendering a projected smile, is dominated today by a handful of tools: DSD App, 3Shape Smile Design, and the Invisalign Smile View feature. None of these expose a public API.

3Shape Smile Design charges enterprise license fees. The "3 shape smile design" keyword carries a $32.05 CPC, the highest in this entire cluster, because the buyers are dental practices with real software budgets. That gap between enterprise tooling and zero accessible APIs is where a platform integration play exists.

NOTE
The buyers: dental booking platforms (Dentrix, Eaglesoft, Carestream), cosmetic dentistry chains, orthodontic SaaS, and independent dentists running their own consultation booking tools.

What the pipeline does

A digital smile design simulation changes only the teeth in a portrait photo. Nothing else moves: not the face shape, not the lips, not the eyes. The challenge is surgical precision: you need a teeth mask that separates exactly the tooth surface from lip, gum, and skin.

The five-stage pipeline:

smile-design-api
✓ live
Before treatment
Before
Select a treatment
After
Select treatment
Pipeline
LoadPhotoinputFaceDetectlandmarksTeethSegmaskColorSimshade mapSaveResultoutput
Latency
~3s
Cost
$0.05/sim
vs. manual
2h → 3s
Cost · revenue · margin
What you pay, what you charge, what you keep
StackInfra /moAI teamTotal costRevenueMargin
Runflow
10% volume discount applied
$1.1K$0$1.1K$10K89%
Cloud API + manual QA
similar pricing · no auto-QA · part-time engineer needed
$1.2K~$5K$6.2K$10K38%
Self-hosted GPU
raw compute · full-time AI engineer required
$400$12K$12K$10Kloss

Runflow Sentinel — built-in quality control layer that automatically detects and discards failed or low-quality outputs before delivery. You only pay for images that pass QA. No engineer needed to babysit the pipeline.

Pricing based on Runflow published rates (June 2026) with automatic volume discounts. Revenue column is illustrative — actual client pricing varies by vertical and contract size. GPU self-hosted estimate uses $0.04/img raw compute cost.

1. LoadPhoto accepts a JPEG or PNG of the patient facing the camera. No special equipment required; a smartphone photo is enough at 1080p.

2. FaceDetect uses MediaPipe Face Mesh or a custom dental landmark model to locate the mouth region and extract 68 facial keypoints. This constrains the downstream mask to the dental zone.

3. TeethSeg runs a fine-tuned segmentation model (SAM or a U-Net variant trained on dental photos) to produce a pixel-accurate teeth mask. This is the step that determines quality.

4. ColorSim applies the target tooth color using the mask. For whitening, this is a LAB-space shift. For veneers, it is a full texture replacement from a material library.

5. SaveResult returns the composited image as a PNG alongside a structured report: shade selected, estimated treatment category, reference image URI.

Implementation: two approaches

The fastest path to production. A managed API handles model hosting, scaling, and the teeth segmentation model: you send a photo and receive a simulation. Runflow, fal.ai, and Replicate all support custom ComfyUI workflows as hosted endpoints. Build the pipeline once, wrap it as an API, deploy.

$smile_simulation.py
import httpx

def simulate_smile(photo_path: str, treatment: str, shade: str) -> dict:
    """
    treatment: "whitening" | "veneers" | "makeover"
    shade: "natural" | "hollywood" | "a1" | "a2" | "b1"
    """
    with open(photo_path, "rb") as f:
        files = {"photo": f}
        payload = {
            "treatment": treatment,
            "shade": shade,
            "output_format": "png",
        }
        r = httpx.post(
            "https://api.runflow.ai/v1/workflows/dental-smile-sim/run",
            files=files,
            data=payload,
            headers={"Authorization": f"Bearer {RUNFLOW_API_KEY}"},
            timeout=30,
        )
    r.raise_for_status()
    return r.json()
    # returns: { "result_url": "...", "shade_used": "...", "latency_ms": 2840 }

Option B - Self-hosted ComfyUI workflow

If you are already running ComfyUI in production, the teeth segmentation workflow is a custom node set. The key dependency is the ComfyUI-SAM2 node for the segmentation step. An A10G GPU at $0.60/hr handles approximately 720 simulations per hour, which is $0.0008 per simulation at full utilization, versus $0.05 on a managed API.

The break-even between self-hosted and managed is roughly 200 simulations per day. Below that, the managed API wins on total cost of ownership.

TCO comparison - managed API vs. self-hosted, June 2026
Managed APISelf-hosted (A10G)
Setup time2 days2-3 weeks
Infra cost (1K sims/day)~$50/day~$15/day
Engineering overhead$0+$8-12K/mo
ScalingAutomaticManual
Break-even (sims/day)N/A~200+
Recommended forPlatforms < 5K sims/dayHigh-volume chains

Integrating into a dental booking platform

The most common integration point is the consultation form. The patient uploads a selfie during booking; the platform runs the simulation before the appointment; the dentist opens the consultation with the projected smile already on screen.

$SmileConsultationWidget.tsx
import { useState } from "react"

export function SmileConsultationWidget() {
  const [photo, setPhoto] = useState<File | null>(null)
  const [preview, setPreview] = useState<string | null>(null)
  const [result, setResult] = useState<string | null>(null)
  const [loading, setLoading] = useState(false)

  async function handleUpload(file: File) {
    setPhoto(file)
    setPreview(URL.createObjectURL(file))
    setLoading(true)

    const fd = new FormData()
    fd.append("photo", file)
    fd.append("treatment", "whitening")
    fd.append("shade", "natural")

    const res = await fetch("/api/smile-sim", { method: "POST", body: fd })
    const data = await res.json()
    setResult(data.result_url)
    setLoading(false)
  }

  return (
    <div className="smile-widget">
      <input type="file" accept="image/*" onChange={e => e.target.files && handleUpload(e.target.files[0])} />
      {preview && <img src={preview} alt="Your photo" />}
      {loading && <p>Generating simulation...</p>}
      {result && <img src={result} alt="Projected smile" />}
    </div>
  )
}

Shade mapping: the VITA standard

Dental practices communicate tooth color in VITA shade guides (A1-D4) or Bleachedguide 3D-MASTER levels. Your API parameters should accept these codes directly, not arbitrary CSS colors, so dentists can communicate results in clinical language.

$shade_map.py
VITA_SHADES = {
    # Bleachedguide (whitening targets)
    "0M1": {"l": 91, "a": -1.2, "b": 7.1},
    "0M2": {"l": 88, "a": -1.0, "b": 9.4},
    "1M1": {"l": 85, "a": -0.8, "b": 12.0},
    "1M2": {"l": 83, "a": -0.5, "b": 14.5},
    # Classic VITA (natural range)
    "A1":  {"l": 77, "a":  1.5, "b": 17.2},
    "A2":  {"l": 73, "a":  2.0, "b": 19.8},
    "A3":  {"l": 69, "a":  2.8, "b": 22.1},
    "B1":  {"l": 79, "a":  0.8, "b": 15.6},
}

def shade_to_lab(shade_code: str) -> dict:
    shade_code = shade_code.upper().replace(" ", "")
    if shade_code not in VITA_SHADES:
        raise ValueError(f"Unknown VITA shade: {shade_code}")
    return VITA_SHADES[shade_code]

Latency, cost and accuracy benchmarks

Latency by pipeline stage - A10G GPU, June 2026
StageLatency (p50)Latency (p95)
FaceDetect (MediaPipe)120ms180ms
TeethSeg (SAM2 fine-tuned)1,400ms2,100ms
ColorSim (LAB shift)200ms350ms
ColorSim (texture veneer)800ms1,400ms
Total - whitening~1.8s~2.8s
Total - veneers~2.4s~3.9s
Segmentation accuracy by photo quality - internal benchmark, 400 photos
Photo conditionIoU (teeth mask)Acceptable?
Studio quality, open smile0.94Yes
Smartphone, good lighting0.89Yes
Smartphone, low light0.74Borderline
Partially visible teeth0.61No: reject
Lips closed / teeth hidden0.11No: reject

Reject photos where the model cannot detect an open-smile pose. Return a clear error: "smile_detected: false" with a prompt asking the patient to retake the photo showing teeth. Attempting to simulate on a closed-lip photo produces artifacts that erode trust in the tool.

Smile makeover consultation: the full DSD workflow

A full digital smile design workflow goes beyond whitening. DSD practitioners use facial reference points, including the midline, smile line, buccal corridor, and gingival contour, to design a proportional smile that fits the patient's face. The simulation is a communication tool between patient and dentist, not a diagnostic.

Digital smile design treatment types - API parameters
TreatmentAPI paramAvg. latencyTypical patient cost
Teeth whiteningtreatment=whitening~1.8s$300-800
Composite bondingtreatment=bonding~2.6s$800-2,000
Porcelain veneerstreatment=veneers~2.4s$8,000-20,000
Orthodontic alignmenttreatment=ortho~3.1s$3,000-8,000
Full smile makeovertreatment=makeover~3.5s$15,000-40,000

The "smile makeover consultation" keyword carries a $16.58 CPC. That is the dentist spending money to acquire a patient for a $15,000-40,000 procedure. A platform that presents a photorealistic simulation before that consultation converts at a measurably higher rate: every cosmetic dentistry SaaS knows this, which is why DSD licenses at enterprise prices.

smile-design-api
✓ live
Before treatment
Before
Select a treatment
After
Select treatment
Pipeline
LoadPhotoinputFaceDetectlandmarksTeethSegmaskColorSimshade mapSaveResultoutput
Latency
~3s
Cost
$0.05/sim
vs. manual
2h → 3s
Cost · revenue · margin
What you pay, what you charge, what you keep
StackInfra /moAI teamTotal costRevenueMargin
Runflow
10% volume discount applied
$1.1K$0$1.1K$10K89%
Cloud API + manual QA
similar pricing · no auto-QA · part-time engineer needed
$1.2K~$5K$6.2K$10K38%
Self-hosted GPU
raw compute · full-time AI engineer required
$400$12K$12K$10Kloss

Runflow Sentinel — built-in quality control layer that automatically detects and discards failed or low-quality outputs before delivery. You only pay for images that pass QA. No engineer needed to babysit the pipeline.

Pricing based on Runflow published rates (June 2026) with automatic volume discounts. Revenue column is illustrative — actual client pricing varies by vertical and contract size. GPU self-hosted estimate uses $0.04/img raw compute cost.

Who builds this and who buys it

The B2B buyers for a dental smile simulation API are not individual dentists: they are the platforms that serve dentists.

ICP map - dental smile design API
Buyer typePlatform examplesIntegration pointVolume
Dental practice managementDentrix, Eaglesoft, CarestreamPre-consultation formHigh
Cosmetic dentistry chainsAspen Dental, Smile BrandsPatient portalHigh
Orthodontic SaaSOrthoFi, Dolphin ManagementTreatment plannerMedium
Dental booking platformsZocdoc dental, NexHealthAppointment booking flowMedium
DSD software vendorsDSD App, SmileDesigner ProCore product featureLow: direct

The highest-volume opportunity is dental practice management software. A single mid-size dental chain running 50 consultations per day generates 18,000 simulations per month. At $0.05 per simulation, that is $900/mo in API revenue per customer at near-zero marginal cost.

Pricing and packaging

Suggested pricing tiers - smile simulation API, June 2026
TierPriceVolumeBest for
Pay-as-you-go$0.08/simAnyIndividual clinics testing
Starter$99/mo1,500 sims/moSmall practices
Growth$299/mo5,000 sims/moMulti-location practices
EnterpriseCustomUnlimitedDental chains, SaaS vendors

Include a DSD report add-on at $0.03/sim: structured JSON output with shade code, estimated treatment category, and a reference image URI for the dental record. Practices will pay for anything that goes directly into the patient chart.

Limitations and what to tell customers

Be explicit in your API documentation:

Capability limits - dental smile simulation API
LimitationWhyMitigation
Not a clinical diagnosisNo regulatory approvalAdd disclaimer in every response payload
Requires open smile photoSegmentation fails on closed lipsValidate pose before processing
Works best with frontal photosProfile or 3/4 view loses accuracyReturn error for non-frontal input
Simulates appearance onlyCannot predict bone structure or gum changesLabel as "appearance preview"
Not suitable for implantsImplant simulation requires CBCT dataOut of scope: document clearly

Platforms that hide these limits face patient complaints and potential regulatory exposure. Platforms that document them clearly use the simulation as a low-risk conversion tool, which is exactly what it is.

Conclusion

Digital smile design has a $16+ CPC on consultation keywords and a $32 CPC on software keywords. The incumbent tools charge enterprise license fees and expose no APIs. A dental platform that adds smile simulation to its consultation flow acquires patients cheaper and converts them at a higher rate.

The pipeline, FaceDetect to TeethSeg to ColorSim, runs in under three seconds on a cloud GPU. The total build time for a managed API integration is two days. The self-hosted path takes two to three weeks but reduces per-simulation cost to under $0.001 at scale.

NOTE
The market signal: "smile makeover consultation" at $16.58 CPC means dentists are already paying $16 per click to acquire a consultation. A platform that turns that click into a visual simulation before the patient walks through the door earns its software budget back on the first appointment.

Frequently Asked Questions

What is digital smile design (DSD)?

Digital smile design is a clinical workflow that maps facial proportions onto a proposed dental treatment plan. The software side captures patient photos, marks reference lines, and renders a projected smile. It is used by cosmetic dentists and orthodontists to show patients what their smile will look like after treatment.

How accurate is AI smile simulation?

Accuracy depends on photo quality. With a frontal smartphone photo showing an open smile in good lighting, a fine-tuned segmentation model achieves 0.89 IoU on the teeth mask. The simulation is an appearance preview, not a clinical diagnosis: it shows color and shape changes but cannot predict gum or bone structure.

What is the difference between digital smile design and virtual whitening?

Whitening simulation changes only tooth color (a LAB-space shift to a target shade). Full digital smile design also changes shape, size, and alignment, simulating veneers, bonding, or orthodontic movement. The pipeline is the same; only the ColorSim and texture stages differ.

Which VITA shade should a whitening simulation target?

For natural whitening, target shade A2 or B1 (LAB: L~73-79). For Hollywood white, target 0M1 or 0M2 from the Bleachedguide 3D-MASTER scale (L~88-91). Always accept the VITA code as an API parameter: dentists communicate in clinical shade language, not RGB values.

Can this pipeline work for full smile makeover simulations?

Yes. A full makeover simulation layers whitening, shape correction (veneers mask), and gingival contouring. The pipeline stages are the same: the treatment parameter changes which shader and material library is applied in the ColorSim stage. Full makeover adds approximately 1.5s latency vs. whitening-only.

What is DSD dental software?

DSD dental software refers to tools that implement the Digital Smile Design methodology. The main products are DSD App, 3Shape Smile Design, and SmileDesigner Pro. These are enterprise tools sold via direct license; none expose a public API, which is the gap a custom pipeline fills.

How does smile design software differ from a consultation photo?

A consultation photo is static. Smile design software applies a treatment simulation on top of the patient photo, showing the projected result in real time. The patient can compare options (whitening shade A2 vs. B1, natural veneers vs. full Hollywood) in the same consultation session.

What is the cost per smile simulation on a managed API?

At current GPU infrastructure rates, a managed API service prices smile simulations at $0.05-0.08 per image for whitening and $0.08-0.12 per image for veneers or full makeover. Self-hosted at full utilization costs under $0.001 per simulation, but requires engineering investment upfront.