REST API access to AskMN v3, Sylvia 2.1, NutriGen 1.0, and Genlyy 1.3. Purpose-built health AI models with structured outputs, evidence citations, and HIPAA-conscious infrastructure.
SFT + RLHF · RAG over 50M+ papers · Structured JSON I/O · HIPAA BAA available
curl -X POST https://api.askmn.ai/v1/chat \
-H "Authorization: Bearer $ASKMN_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"model": "askmn-v3",
"messages": [
{
"role": "user",
"content": "My patient is taking warfarin and wants to add ashwagandha. Assess the interaction risk."
}
],
"options": {
"citation_level": "inline",
"include_toxicology": true,
"output_format": "structured"
}
}'Available Models
Each model is domain-specific. Request access for the models relevant to your use case.
Herbal medicine · Toxicology · General health
The primary health and herbal intelligence model. Reasons across 3,000+ medicinal plants, drug-herb interactions, toxicology risk, and integrative health protocols with evidence citations.
Request accessMental health · Crisis detection · CBT/DBT
Specialized mental health model fine-tuned on CBT, DBT, trauma-informed care, and psychiatric literature. Includes 98.2%-sensitivity crisis detection and safe messaging protocol activation.
Request accessNutrigenomics · Dietary optimization
Multi-modal nutrigenomics engine. Fuses SNP data, dietary logs, and micronutrient panels to generate genotype-specific nutrition protocols calibrated to 200+ genetic loci.
Request accessGenomic variant interpretation · PGx
Clinical-grade genomic variant interpretation. Processes VCF/SNP arrays and returns ACMG/AMP-classified variant reports across 4,800+ loci with FDA pharmacogenomics cross-reference.
Request accessAPI access is granted on a per-project basis after a brief review of your use case, technical setup, and data handling practices. Access decisions typically take 1–3 business days. Genlyy 1.3 requires additional partner vetting.
Authentication
The Mother Nature AI API uses bearer token authentication. Include your API key in the Authorization header. Keys are project-scoped with configurable model-level permissions and IP allowlists.
# Set your API key as an environment variable
export ASKMN_API_KEY="mnai_sk_live_xxxxxxxxxxxx"
# Include in every request header
Authorization: Bearer $ASKMN_API_KEY
# Verify your key
curl https://api.askmn.ai/v1/models \
-H "Authorization: Bearer $ASKMN_API_KEY"
# Response
{
"models": [
{ "id": "askmn-v3", "status": "available" },
{ "id": "sylvia-2.1", "status": "available" },
{ "id": "nutrigen-1.0", "status": "beta" },
{ "id": "genlyy-1.3", "status": "invite_only" }
]
}{
"id": "chat_01JK8X2F4M9NV3P",
"model": "askmn-v3",
"content": "Ashwagandha (Withania somnifera) contains withanolide glycosides that may modestly inhibit CYP2C9 — the primary enzyme responsible for warfarin (S-warfarin) metabolism. Co-administration carries a theoretical risk of elevated warfarin plasma levels and increased bleeding risk [PMID: 28601062, 31394563].",
"structured_findings": {
"interaction_severity": "moderate",
"mechanism": "CYP2C9 inhibition (theoretical, in vitro evidence)",
"clinical_recommendation": "If patient proceeds, monitor INR within 1–2 weeks of initiating ashwagandha. Dose reduction of warfarin may be required.",
"contraindication_flags": [
{
"type": "drug_herb_interaction",
"compound_a": "warfarin",
"compound_b": "ashwagandha",
"severity": "moderate",
"evidence_level": "in_vitro_theoretical"
}
]
},
"citations": [
{
"pmid": "28601062",
"title": "Withania somnifera CYP inhibition in human liver microsomes",
"journal": "Phytomedicine"
},
{
"pmid": "31394563",
"title": "Herb-drug interactions in anticoagulant therapy",
"journal": "British Journal of Clinical Pharmacology"
}
],
"confidence_level": "moderate",
"escalation_flag": false,
"usage": { "input_tokens": 94, "output_tokens": 284 }
}Structured Outputs
Every model returns structured JSON alongside conversational text — making it straightforward to build clinical features without parsing free-form responses.
Interaction severity classification
Structured compound-pair objects with severity level, mechanism of action, and evidence grade.
Evidence citations
Every clinical assertion includes PMID references and journal attribution.
Contraindication flags
Machine-readable flag objects for drug-herb interactions, toxicology risks, and crisis signals.
Confidence level
Model-assessed confidence (high / moderate / low) based on evidence density and case complexity.
Escalation flag
Boolean signal for red-flag situations requiring immediate clinical or crisis intervention.
Use Cases
Embed AskMN v3 as an herbal and integrative health reasoning layer. Users ask about supplements, herbal combinations, and plant-drug interactions and receive evidence-cited, toxicology-aware guidance.
Power CBT and mindfulness apps with Sylvia 2.1. Crisis detection, psychoeducation delivery, and PHQ-9/GAD-7 severity classification built into every interaction.
Layer NutriGen 1.0 on food logging or supplement platforms to deliver genotype-specific nutrition protocols. Connects seamlessly with Genlyy for full genomic context.
Use Genlyy 1.3 as an AI interpretation layer for raw DNA test outputs. Turn VCF files into clinical-grade patient reports with medication metabolism profiles.
Integrate AskMN v3 summarization and analysis endpoints to generate AI-assisted clinical notes, surface herb-drug interaction flags, and support integrative medicine workflows.
Access model APIs for population-level health research, genomic cohort analysis, and clinical decision support development under IRB-governed data use agreements.
SDKs
Python
Coming Soon
pip install askmnFull-featured Python SDK with type hints, async support, streaming, and automatic retry. Python 3.9+ compatible.
JavaScript / TypeScript
Coming Soon
npm install @askmn/sdkIsomorphic SDK for Node.js and browser. Full TypeScript types, ESM + CJS, streaming via async iterators.
REST (Direct)
API v1
No install requiredDirect REST API access via HTTP. Contact us for API key and documentation.
Compliance & Security
Business Associate Agreements available on approved plans. PHI processed in HIPAA-eligible isolated compute environments.
SOC 2 Type II certified and HIPAA compliant. Security controls documentation available to partners under NDA.
US inference by default. EU data residency available for GDPR-governed deployments on enterprise agreements.
Full audit trail of all API calls and model outputs. Exportable to your SIEM. Configurable retention policies.
Submit a request for API access. After a brief review of your use case and data practices, we'll send your credentials within 1–3 business days.