For legacy customers only: Note Generation v2 brings
newer model capabilities while preserving backward compatibility with existing
Note Generation v1 systems. Use Note Generation v3 (shown here) for new integrations.
Medical coding
A standalone Medical Coding API for ICD-10 and CPT is coming soon. It will bring even higher coding accuracy and suggestions for missing documentation. Until then, legacy customers who expect coding with their notes, as in Note Generation v1, should use Note Generation v2, a drop-in replacement for Note Generation v1.SDK
Use the SDK’s authenticated request method. Includetemplate in every request:
Generate a note
note value is a rendered string. To extract discrete fields or map its
sections into your own JSON structure, send that string and a JSON Schema to
Text to JSON. The two-call
example shows both requests. This is a separate request.
usage is diagnostic and may be omitted. requestId is also returned in the
x-request-id response header; retain it for support.
Provide a template
Include an inlinetemplate in every request to define the note’s sections and
instructions. Choose how to set up your template:
Interactive setup
For example:
Download the Sully template skill and paste it into your coding agent.
Download skill Manual setupStart with the default SOAP template and follow the guide to customize your instructions.
View template guidetemplate returns 400 invalid_request.
The required template field has this structure:
Request fields
The total text in the inline template and clinical context may not exceed 100,000
characters. Unknown fields are rejected so request mistakes fail visibly.
Errors and retries
Errors use a stable code and request ID:
Each POST is a new generation request. If the client disconnects after the request
has completed on the server, the response can be lost and a retry can create another
billable generation. Use the returned
requestId to investigate ambiguous outcomes.