Asha is the medical AI agent from DNAi Systems. Every answer comes back with the papers and drug labels it was built from.
Point any OpenAI SDK at https://api.askasha.org/v1, or speak A2A v1.0, or give your coding agent Asha over MCP.
Get a free key · Docs · OpenAPI 3.1 · llms-full.txt · Benchmarks · Preprint
A real answer from the production API, recorded 2026-10-31 at Base depth (the self-serve default) in 10 seconds. The text is unedited; the GIF shows an excerpt, marked where it skips. Full output:
transcript-2026-10-31.txt, task 839f0bb7.
from openai import OpenAI
client = OpenAI(base_url="https://api.askasha.org/v1", api_key="dnai_a2a_...")
completion = client.chat.completions.create(
model="asha",
messages=[{"role": "user", "content": "Which antihypertensives are safe in pregnancy?"}],
metadata={"audience": "clinician"},
)
print(completion.choices[0].message.content)
meta = completion.model_extra["dnai_meta"]
print(meta["evidence_count"], "sources", meta["citations"][:3])
# 38 sources ['PMID:29974489', 'PMID:39225514', 'PMID:36822710']Two settings change: base_url and the key. Sources arrive in dnai_meta on every answer. More examples.
Get a key without leaving the terminal:
curl -X POST https://api.askasha.org/api/a2a/signup \
-H "Content-Type: application/json" \
-d '{"email": "you@company.com", "name": "Your product", "product": "asha"}'Run every example from a clone:
git clone https://github.com/DNAiOS/asha && cd asha
python -m venv .venv && . .venv/bin/activate
pip install -r examples/requirements.txt
export ASHA_API_KEY=dnai_a2a_... # or copy .env.example to .env
python examples/python/openai_quickstart.py
python scripts/verify.py # checks the register and the live API; no key needed| Path | Best for | Start here |
|---|---|---|
OpenAI-compatible /v1/chat/completions |
Existing OpenAI SDK, LangChain, LiteLLM or Vercel AI SDK code | examples/python, examples/node |
A2A v1.0 message:send / message:stream |
Full task records, a provenance artifact, pipeline phases | examples/python/a2a_send.py, examples/curl |
asha command line |
Setup, settings, questions and live checks from a terminal; one Python file, no packages | curl -fsSL https://askasha.org/cli/install.sh | sh |
MCP server (asha mcp) |
Claude Code, Codex, Cursor, Gemini CLI, VS Code and Claude Desktop call Asha and read the docs as tools | examples/mcp |
| Framework | Configuration | Example |
|---|---|---|
| OpenAI Python | OpenAI(base_url="https://api.askasha.org/v1", api_key=...) |
openai_quickstart.py, openai_stream.py |
| OpenAI Node | new OpenAI({ baseURL: "https://api.askasha.org/v1", apiKey }) |
openai_stream.mjs |
| LangChain | ChatOpenAI(model="asha", base_url="https://api.askasha.org/v1") |
asha_langchain.py |
| LiteLLM | completion(model="openai/asha", api_base="https://api.askasha.org/v1") |
asha_litellm.py |
| Vercel AI SDK | createOpenAI({ baseURL: "https://api.askasha.org/v1" }).chat("asha") |
route.ts |
Every Python example in this repository was run against the production API on 2026-10-31.
Give your coding agent the docs and the tool in one step:
curl -fsSL https://askasha.org/cli/install.sh | sh
asha init # key, saved settings, first answer
claude mcp add asha -- asha mcp # or: asha mcp add cursor | codex | gemini | vscodeAgents without MCP can read llms.txt, llms-full.txt (every docs page in one Markdown file) or the OpenAPI document. Snapshots of the OpenAPI document and the A2A agent card are in spec/.
Every statement in this table comes with a way to test it.
| Statement | How to check it |
|---|---|
| Every answer returns its sources | dnai_meta.citations on /v1; the provenance artifact on A2A (citations, evidence_count) |
| Answers come from a curated corpus (PubMed, PMC full text, OpenAlex, StatPearls, DailyMed and FDA labels, ICD-10, Wikidata medical), hashed in public; questions about recent literature may add a live PubMed search, whose papers sit outside the hashed snapshot | curl https://api.askasha.org/api/audit/corpus-state/public returns a SHA-512 commitment and per-collection counts (111,157,411 vectors in the 20 collections it covers, 2026-10-31) |
| The benchmark numbers below are the published register, byte for byte | shasum -a 256 spec/benchmarks.json matches register_sha256 from curl https://api.askasha.org/api/benchmarks/verify, which also compares the live API with the static copy; python scripts/verify.py runs both checks |
| Emergency routing and crisis resources stay on under every setting, including your own product name | asha test runs three live checks, one of them chest pain, and prints the task ids |
| Memory is scoped to your key and can be switched off per call | metadata.memory: "off"; the safety docs |
| The answer is information; a licensed clinician decides | Stated in every clinical-use rule; keep a clinician in the loop for diagnosis and treatment |
Asha is an architecture around a language model: retrieval from the corpus above, specialist agents, claim falsification, and safety gates before and after generation. No model is fine-tuned. The test is paired: run a model alone and as the answer writer inside Asha, on the same items, under the same grader.
| Benchmark | n | Grader | Model alone | Inside Asha | Difference (points) |
|---|---|---|---|---|---|
| HealthBench Hard | 1,000 | gpt-4.1 (official) | GPT-6 Astra 32.4 | Apex-J 48.7 | +16.3 [14.6, 18.1]; length-adjusted +13.7 [12.0, 15.4] |
| HealthBench, all conversations | 5,000 | gpt-4.1 (official) | GPT-6 Astra 55.6 | Apex-J 65.5 | +9.8 [9.2, 10.5]; length-adjusted +7.4 [6.8, 8.0] |
| HealthBench, Vishwanath et al. 500 | 500 | the study's three-judge panel | GPT-6 Astra 54.9 | Apex-J 63.8 | +8.9; gpt-4.1 on the same answers +9.2 [7.2, 11.2] |
| HealthBench Professional, holdout | 225 | GPT-5.4 (official), length-adjusted | GPT-6 Astra 65.9 | Apex-J 68.6 | +2.7, p = 0.13, not significant; all 525 items +4.3, p < 0.001 |
| HealthBench Professional, all items | 524 | GPT-5.4 (official), length-adjusted | Claude Sonnet 5 54.0 | Base 53.0 | -1.1, p = 0.57, within error |
| MedQA (USMLE, 4 options) | 1,273 | exact match | Gemini 3.1 Pro 92.3% | Base 95.5% | +3.2, McNemar p = 2.0e-5 |
| psychosis-bench, safe interventions | 96 turns | gpt-4o-mini (protocol judge) | Gemini 2.5 Flash 30.2% | Base 95.8% | +65.6; higher in 14 of 16 scenarios, sign test p = 1.2e-4 |
Brackets are 95% confidence intervals of the paired difference. Asha's estimate is higher in six of seven comparisons; five are statistically significant. Every HealthBench rubric score is graded the way OpenAI's reference implementation grades it, with each criterion's point value shown to the grader; the re-grade and a one-command reproduction are public at EndlessRay/asha-benchmarks. Base is the API default: one retrieval-grounded pass with safety gates. Apex-J (frozen 20 September 2026, Enterprise) adds a panel of specialist agents running Claude Sonnet 5 and Opus 5, claim falsification against the corpus, and GPT-6 Astra as the answer writer; those rows hold the answer-writing model fixed and measure the whole system against it.
On the Vishwanath et al. sample, the study published OpenEvidence at 62.6 and UpToDate Expert AI at 61.3 under the same panel, and frontier models running web search scored higher than every system here (GPT-5.2 88.0). Asha answers from its own corpus without web search.
Limits, as published in the register (items 10 to 12 are the register's notes on individual rows)
- Length. Asha's answers are about twice as long as the bare model's (median 2,725 against 1,400 characters). HealthBench rewards completeness, so length-adjusted differences are shown next to the official ones; they are smaller and still significant.
- Composer held fixed. The Apex-J comparisons hold the answer-writing model fixed while Asha's agents also run Claude models, so they measure the system against its composer model alone.
- Holdout. On HealthBench Professional the shipped configuration was chosen on a 300-item slice; on the 225 items never used for that choice its lead under the official ladder grader is +2.2 (p = 0.23).
- Strong models alone. Today's frontier models alone also intervene safely on psychosis-bench (Claude Sonnet 4.5 100%, Gemini 3.6 Flash 93.8%). The 30.2% to 95.8% gap is what Asha added to a May 2026 model below that ceiling.
- Web search. In the Vishwanath et al. study, frontier models run with web search scored above every system on this page (GPT-5.2 88.0). Asha answers from its own corpus without web search.
- Graders. Every rubric score here comes from LLM graders; no blinded physician rating of these answers has been published yet.
- Validation. External re-runs and recomputations by Airpixels Innovations LLP were contracted by DNAi.
- Withheld data. HealthBench Professional per-item data are withheld at OpenAI's request, so those rows are aggregate only.
- Pretraining exposure. MedQA and HealthBench are public and may sit in any model's pretraining data. The paired difference controls for that; absolute scores do not.
- MedQA formatting. Asha routed 70% of questions to the smaller Gemini 3 Flash, so the model alone is the stronger arm. 51 of Asha's 66 paired wins are questions where the model alone gave no parseable answer (5.58% unparseable; Asha 0 of 1,273). On the questions both arms answered in a parseable form, the model alone scored higher (25 against 15 paired wins, exact p = 0.15).
- psychosis-bench verdict. Both pre-registered effect hypotheses passed, but agreement between the two judges fell below the pre-registered gate, so the formal verdict is inconclusive. The 96 turns are nested in 16 scenarios, so the comparison uses an exact sign test over scenarios (14 higher, none lower, p = 1.2e-4); a Fisher test on turns would overstate precision.
- HealthBench harm proxy. The share of negative-point rubric criteria triggered was pre-registered to stay within +2.0 points of the model alone on all 5,000 conversations. With OpenAI's reference rendering it was met under the official grader (20.3% against 20.8%), and on Hard Asha triggered fewer (23.8% against 27.9%). As first graded (criterion text only) the official grader read +2.8, a miss concentrated in length and over-detail criteria, while GPT-5.4 (-0.3) and Claude Opus 4.8 (-0.4) met it.
Per-item completions, grades, pre-registrations and SHA-256 manifests: EndlessRay/asha-benchmarks. The chart is rebuilt from spec/benchmarks.json by scripts/make_figures.py.
| Plan | Price | Queries | Rate limit | Depth |
|---|---|---|---|---|
| Free Sandbox | $0, no card | 250 a month, 50 a day | 20 per minute | Base |
| Pay-As-You-Go | $10+ prepaid | $0.03 per query; a top-up unlocks 1,000 evaluation queries a month through January 2027 | 60 per minute | Base |
| Developer | $49 a month | 1,000 a month | 60 per minute | Base |
| Pro | $199 a month | 10,000 a month | 120 per minute | Base |
| Enterprise | $999 a month | Unlimited | 240 per minute | Base, or auto stakes routing to Mid ($0.30) and Apex ($0.85) |
A Base query includes 2,000 input and 2,000 output tokens; above that, $4 per million input and $16 per million output tokens. Prices as of 2026-10-31; the pricing page is the source of truth.
| Item | Status |
|---|---|
| What to send today | De-identified questions. Personally identifying patterns are redacted before a query is stored. |
| BAA | Self-serve and hashed (asha baa show, GET /api/a2a/baa). Version 0.2 is a draft pending ratification, and phi_allowed is false for every account until it takes effect and PHI traffic routes to a BAA-covered model path. Details. |
| Keys | Server-side only. Cross-origin browser calls are refused. |
| Path | Contents |
|---|---|
examples/ |
Runnable code: curl, OpenAI Python and Node, A2A, LangChain, LiteLLM, Vercel AI SDK, MCP configs |
spec/ |
Snapshots: OpenAPI 3.1, the Asha A2A agent card, the benchmark register (benchmarks.json, byte-identical to dnai.systems) |
huggingface/ |
Source of the Hugging Face Space and model card (not yet published) |
scripts/ |
verify.py (re-checks the register hash and the live API), make_figures.py (rebuilds the figures) |
assets/ |
Banner, figures, the recorded demo and its transcript |
| Need | Where |
|---|---|
| A bug in an example, the CLI, the MCP server or the API | Open an issue; include the request id, never a key or patient data |
| A security problem | Privately, through Security → Report a vulnerability (policy) |
| Your plan, billing or key | support@dnai.systems |
| Is the API up? | curl https://api.askasha.org/a2a/v1/health |
@article{singh2026asha,
title = {An auditable, retrieval-grounded agent architecture improves medical accuracy and conversational safety in language models},
author = {Singh, Deepan and Anand, Paridhi},
journal = {Research Square},
year = {2026},
doi = {10.21203/rs.3.rs-10206806/v1}
}The code in this repository is Apache-2.0 (LICENSE). Use of the Asha API is governed by the API terms. Asha and DNAi are names of DNAi Systems; the architecture is covered by US Patent 12,555,008 B1. Questions: hello@dnai.systems.
