Clinical notes to medical codes. AI based. Free.

Coding suggestions from official classifications. Web search / REST API.

Medical coding from natural language

Whether discharge summaries, clinical letters, or diagnosis lists: documentation lives in free text — billing, quality reporting, and research need structured codes. MedAPI.ai codes into ICD-10-CM for the US, ICD-10-GM for Germany, and the WHO's ICD-11 MMS, including postcoordinated clusters such as 2C25&XA8Z30. Manual coding is time-consuming and sensitive to wording, synonyms, and specialty language.

MedAPI.ai combines semantic search over official classification content with a grounded language model. Instead of open-ended hallucination, suggestions stay tied to indexed code families; every returned code is validated against the authoritative database. You receive up to three ranked candidates per extracted diagnosis, with confidence scores — as a web search for coding teams or as an API for EHR, billing software, research databases, and clinical assistants.

Typical inputs: “lung cancer right upper lobe”, “heart failure NYHA III”, or “pneumonia”. Which classifications are live for AI coding, in the catalog, or in preparation is listed on this page.

Examples with ICD-10-CM

Typical free-text inputs and grounded code suggestions — in web search and via API.

lung cancer right upper lobe

ICD-10-CM
  • C34.1197%

    Malignant neoplasm of upper lobe, right bronchus or lung

  • C34.1084%

    Malignant neoplasm of upper lobe, unspecified bronchus or lung

essential hypertension

ICD-10-CM
  • I1096%

    Essential (primary) hypertension

  • I11.972%

    Hypertensive heart disease without heart failure

pneumonia of unspecified cause

ICD-10-CM
  • J18.993%

    Pneumonia, unspecified organism

  • J15.981%

    Unspecified bacterial pneumonia

Coding systems

Official classifications for AI coding, catalog browse without AI, or in preparation — whichever the platform currently publishes. The cards below follow GET /api/systems.

Open the catalog — browse systems and codes

Use cases

MedAPI.ai serves clinical teams, certified coders, and software developers who need to turn medical language into standardized codes reliably.

  • Clinical & discharge workflows

    Turn discharge diagnoses, progress notes, and brief diagnoses into ICD-10-CM faster. Coders get suggestions with confidence and can review inclusions directly in the UI.

  • Billing & DRG

    Support mapping primary and secondary diagnoses in ICD-10-CM — as a pre-step before binding coding decisions, not a substitute for professional review.

  • Laboratory & interoperability

    Lab values, observations, and interfaces (LIS, FHIR, research exports) need structured codes. Which classifications are live in the catalog or for AI coding is listed on this page.

  • Software & integration

    REST API with API keys, per-request billing, and OpenAPI documentation. Embed in EHR plugins, billing middleware, clinical assistants, and evaluation pipelines.

Technical highlights

MedAPI.ai is built for production coding workflows — grounded retrieval, validated output, and transparent confidence scores.

  • Semantic RAG retrieval

    Three parallel vector searches over official classification families (full text, cleaned term, clinical core) — deduplicated by family, including inclusions and coding notes. ICD/OPS retrieve up to 20 families per search.

  • Confidence & ranking

    Up to three ranked candidates per extracted diagnosis — retrieval ranks families by overlap across search paths; the model then selects codes with transparent confidence scores.

  • Multiple classifications

    ICD-10-CM, ICD-10-GM, and ICD-11 MMS in parallel; a code typed from another system switches there automatically. AI coding and catalog can be switched independently per system. Choose via dropdown or the API system parameter.

  • REST API & billing

    POST /api/code, GET /api/describe, API keys, and account balance — OpenAPI spec and curl examples in the reference.

  • Privacy & compliance

    GDPR (EU) compliant and aligned with applicable U.S. privacy laws and regulations.

  • Patient data under AVV

    Coding free text may include health data under the AVV/DPA. Processing (including LLM and embeddings) is EU/EEA-only — see the DPA page.

Grounded AI instead of open-ended generation

MedAPI.ai is not a generic chatbot. Every request follows a defined pipeline — from authentication through retrieval to database validation.

First the system extracts medical diagnosis snippets from free text (up to 10). For each snippet, three parallel vector searches — full text, cleaned search term, and clinical core concept — return up to 20 ICD/OPS code families each. Families are deduplicated and passed complete to the language model, which selects at most three codes per snippet, with confidence.

Every suggested code is checked against the relational code database. Invalid or hallucinated codes are discarded. Optional reasoning provides a short explanation — for transparency in review workflows, not as a medical diagnosis.

Reverse lookup via GET /api/describe returns metadata for known codes: label, hierarchy, inclusions, exclusions, and coding notes — free with a valid API key, ideal for code validation in downstream systems.

For developers

Integrate MedAPI.ai with POST /api/code — a JSON body with text, system, and optional lang and reasoning. Authenticate with X-API-Key; usage is charged per predicted code from your account balance.

GET /api/describe returns code metadata without coding cost. OpenAPI spec and error codes are in the API reference.

Request

Response

Frequently asked questions

Answers about classifications, API, pricing, and sensible use of MedAPI.ai in clinical and technical contexts.

Which coding systems does MedAPI.ai support?
Available for AI coding: ICD-10-CM (2027), ICD-10-GM (2026), and ICD-11 MMS (2026-01). In the catalog without AI: LOINC (2.82) and OPS (2026). In preparation: SNOMED CT (latest).
Is MedAPI.ai a medical device or diagnostic tool?
No. MedAPI.ai is a technical aid for coding support — not a medical device, not a diagnosis, and not a substitute for professional coding or treatment decisions. All suggestions must be reviewed independently.
How accurate are coding suggestions?
MedAPI.ai returns up to three grounded candidates per extracted diagnosis, with confidence scores. A longer note can yield several diagnoses. Quality depends on wording, ambiguity, and classification. Confidence is a model heuristic, not a measure of medical certainty.
Can I use MedAPI.ai without the web UI?
Yes. After sign-in, create API keys in your account and call POST /api/code and GET /api/describe directly — see the API reference for curl examples and request schema.
How does pricing work?
Each coding request charges your account balance. Reverse lookup via GET /api/describe is free. New accounts receive signup credit; prices are shown in search after you sign in.
Can I send patient data?
Yes — under the AVV/DPA (EU/EEA-only processing including LLM and embeddings, 90-day free-text retention). You remain the controller and need a lawful basis. Details: DPA page.