Documentation is the work nobody trained for
Clinicians spend a large part of the day writing: visit notes, referral letters, discharge summaries, replies to patient messages, and the codes that turn a visit into a claim. AI clinical documentation moves the first draft to a model and leaves the judgment with the clinician.
The hard part is not the prompt. It is that each of those jobs wants a different model, and that every one of them touches data you cannot send just anywhere. LLM Gateway gives you one endpoint for the models and one place to decide which providers are allowed.
Match the model to the job
| Job | What it needs | Kind of model |
|---|---|---|
| Visit note from a transcript | Low latency, low cost, consistent format | Small, fast model |
| Summary of a long chart | Large context window, careful reasoning | Frontier reasoning model |
| Coding suggestions from a note | Structured output, a low error rate | Mid-size model with JSON |
| Reply to a patient message | Plain language, low cost | Small, fast model |
| Inference inside your environment | Open weights you can host | Open-weight model |
The healthcare models page lists models for each row with live prices and context sizes.
Ask for structure, not prose
For coding suggestions and field extraction, request JSON that matches a schema so the result goes straight into your system. The example uses a synthetic note.
1curl https://api.llmgateway.io/v1/chat/completions \2 -H "Authorization: Bearer $LLM_GATEWAY_API_KEY" \3 -H "Content-Type: application/json" \4 -d '{5 "model": "gpt-5.4-mini",6 "messages": [7 {"role": "system", "content": "Extract the fields from the visit note. Use null when the note does not state a value. Do not infer."},8 {"role": "user", "content": "Synthetic note: 54-year-old with two weeks of exertional chest tightness, relieved by rest. BP 148/92. Plan: ECG today, start low-dose aspirin, cardiology referral."}9 ],10 "response_format": {11 "type": "json_schema",12 "json_schema": {13 "name": "visit_fields",14 "schema": {15 "type": "object",16 "properties": {17 "chief_complaint": {"type": ["string", "null"]},18 "blood_pressure": {"type": ["string", "null"]},19 "orders": {"type": "array", "items": {"type": "string"}},20 "referrals": {"type": "array", "items": {"type": "string"}}21 },22 "required": ["chief_complaint", "blood_pressure", "orders", "referrals"]23 }24 }25 }26 }'1curl https://api.llmgateway.io/v1/chat/completions \2 -H "Authorization: Bearer $LLM_GATEWAY_API_KEY" \3 -H "Content-Type: application/json" \4 -d '{5 "model": "gpt-5.4-mini",6 "messages": [7 {"role": "system", "content": "Extract the fields from the visit note. Use null when the note does not state a value. Do not infer."},8 {"role": "user", "content": "Synthetic note: 54-year-old with two weeks of exertional chest tightness, relieved by rest. BP 148/92. Plan: ECG today, start low-dose aspirin, cardiology referral."}9 ],10 "response_format": {11 "type": "json_schema",12 "json_schema": {13 "name": "visit_fields",14 "schema": {15 "type": "object",16 "properties": {17 "chief_complaint": {"type": ["string", "null"]},18 "blood_pressure": {"type": ["string", "null"]},19 "orders": {"type": "array", "items": {"type": "string"}},20 "referrals": {"type": "array", "items": {"type": "string"}}21 },22 "required": ["chief_complaint", "blood_pressure", "orders", "referrals"]23 }24 }25 }26 }'Decide where the text may go
- Check the provider. Each provider page shows whether the provider trains on API data, logs prompts, how long it retains them, and the certifications it holds or declares, including HIPAA where the provider states it.
- Enforce the decision. Provider compliance policies, on the Enterprise plan, restrict routing by certification, data policy, headquarters country, and provider allow and deny lists. When no provider qualifies, the request is rejected. HIPAA status is shown for your review and is not a routing requirement, so use the provider allow list to limit routing to the providers you have approved.
- Redact first. Guardrails, on the Enterprise plan, can detect and redact personal data before a request leaves.
- Know what is stored. By default the gateway stores request metadata, not prompts or completions; full payload retention is an Enterprise setting. Responses API state is kept for 30 days unless you send
store: false. See data retention. - Self-host. The AGPLv3 core runs in your own infrastructure, so the gateway and its logs stay there. A request still goes to the provider that serves the model, so pair it with a model you host when data must not leave.
Keep the clinician in the loop
A draft is a draft. Show the source next to the generated text, require a sign-off, and measure how often drafts are edited. LLM Gateway is infrastructure, not a medical device and not a compliance certification for your product. See the healthcare use case for what the gateway does and does not cover.