# Asha API > Asha is DNAi Systems' evidence-grounded medical intelligence. The Asha API exposes it over the open A2A v1.0 protocol (HTTPS, JSON) and an OpenAI-compatible `/v1` endpoint. Every answer returns with its sources. Keys created on askasha.org reach Asha only. ## Start here - [Asha API page](https://askasha.org/developers): free key in a minute (250 queries/month, 50/day, 20 RPM), $10+ Pay-As-You-Go top-up (unlocks 1,000 evaluation queries/month through Jan 2027), quickstart, benchmarks, and pricing. - [Documentation](https://askasha.org/developers/docs): every detail as a table; every page copies as Markdown. - [Benchmarks and comparisons](https://askasha.org/developers/docs/benchmarks): Vishwanath et al. 500-item 3-judge panel (Asha 72.6% vs OpenEvidence 62.6% vs UpToDate 61.3%), HealthBench Hard (n=1,000), and FPWR PWS 96-item safety red-team. - [Pricing, limits, and errors](https://askasha.org/developers/docs/limits): Free Sandbox ($0), Pay-As-You-Go ($10+ top-up), Developer ($49/mo), Pro ($199/mo), Enterprise ($999/mo), and token overage schedule ($0.03 Base query including 2,000 input + 2,000 output tokens; $4.00/1M input and $16.00/1M output above 2,000 tokens). - [llms-full.txt](https://askasha.org/llms-full.txt): every docs page in one Markdown file. - Base URL: https://api.askasha.org - Auth: `Authorization: Bearer ` (key from `POST /api/a2a/signup` with `{"email": ..., "product": "asha"}`). ## Drop-in and tooling - OpenAI-compatible: `POST /v1/chat/completions` and `GET /v1/models` at `https://api.askasha.org/v1` (models `asha`, `asha-base`, `asha-auto`; `asha-apex` on Enterprise; streaming supported); the response adds a `dnai_meta` object with depth_served, evidence_count, citations. Asha options ride `metadata` (session_id, audience, persona, verbosity, emoji, memory). Docs: https://askasha.org/developers/docs/openai - Command line (`asha` 0.3.0): `curl -fsSL https://askasha.org/cli/install.sh | sh` then `asha init` (key, saved settings, first answer), `asha ask "question"`, `asha config set ...`, `asha usage`, `asha topup 10`, `asha upgrade developer`, `asha test`, `asha baa accept ...`. One stdlib Python file at https://askasha.org/cli/asha. Docs: https://askasha.org/developers/docs/cli - MCP for coding agents: `asha mcp` is a stdio MCP server with six tools: `ask_asha`, `asha_usage`, `asha_topup`, `asha_preferences`, `asha_baa` (read-only), `asha_docs`. `asha mcp add claude-code|codex|cursor|gemini|vscode|claude-desktop` prints the setup line. Docs: https://askasha.org/developers/docs/agents - Customize: `GET`/`PUT /api/a2a/preferences` saves white-label `persona` {name, organization, tone}, `audience`, `verbosity`, `emoji`, `memory` on the key; applies to A2A send, stream, and `/v1/chat/completions`; request `metadata` overrides. Docs: https://askasha.org/developers/docs/customize - BAA, self-serve: `GET /api/a2a/baa` (JSON, `?format=md`, `?format=html`), `POST /api/a2a/baa/accept`, `GET /api/a2a/baa/status`. Versioned and hashed; current text is a draft pending counsel review and PHI mode is closed until both readiness gates clear. Docs: https://askasha.org/developers/docs/baa ## Endpoints - `POST /a2a/v1/message:send`: ask Asha, returns the completed task with a `response` artifact (Markdown) and a `provenance` artifact (sources, citations, evidence_count, model). - `POST /a2a/v1/message:stream`: same request as server-sent events (`task_created`, `phase`, `chunk`, `heartbeat`, `task_completed`, `task_failed`, `[DONE]`). - `GET /a2a/v1/tasks/{task_id}`, `GET /a2a/v1/tasks`, `POST /a2a/v1/tasks/{task_id}:cancel`: task records, scoped to your key. - `GET`/`PUT /api/a2a/preferences`: saved defaults for the key. - `GET /api/a2a/usage`, `POST /api/a2a/topup`, `POST /api/a2a/upgrade`, `GET /api/a2a/portal`, `POST /api/a2a/rotate-key`: key, prepaid top-up, and plan management. ## Request vocabulary - `agent_id`: `asha` (alias `health`). Omit it and Asha answers. Other agent ids return 403 for an Asha key. - `metadata.session_id`: multi-turn continuity (up to 64 characters). - `metadata.audience`: `patient`, `caregiver`, `clinician`, `nurse`, `pharmacist`, `physician`: selects the answer register. - `metadata.depth`: `base` (self-serve plans) or `auto` (Enterprise). Every task reports `depth_served`. - `metadata.persona`: `{name, organization, tone}` white label; safety rules and citations stay in force. - `metadata.memory`: `off` disables personal-memory read and write for the call. - `metadata.verbosity`: `brief`, `standard` (default), `detailed`. Safety warnings and citations stay at every length. - `metadata.emoji`: `off` (default, no expressive emoji), `none` (plain text only), `on` (up to two; never in crisis, grief, clinician, caregiver, or document replies). ## Machine-readable - [Asha agent card](https://api.askasha.org/.well-known/agent-card.json?agent_id=asha) - [OpenAPI 3.1](https://api.askasha.org/openapi.json) - [Benchmark register](https://api.askasha.org/api/benchmarks) - [Corpus commitment](https://api.askasha.org/api/audit/corpus-state/public) - [Health](https://api.askasha.org/a2a/v1/health) - [API terms (draft)](https://api.askasha.org/api/a2a/terms?format=html) ## Contact - hello@dnai.systems