Documentation
Everything you need to integrate AfriBiobank AI tools into your applications
Getting Started
Installation
Install the AfriBiobank SDK using your preferred package manager:
# Python
pip install afribiobank
# Node.js
npm install @afribiobank/sdk
# R
install.packages("afribiobank")First API Call
Make your first API call to analyze a medical image:
import afribiobank
# Initialize the client
client = afribiobank.Client(api_key="your_api_key")
# Analyze a chest X-ray
result = client.chest_analysis.predict(
image_path="chest_xray.jpg",
model="tb-detection-v2"
)
print(result.predictions)Authentication
All API requests require authentication using an API key. Include your API key in the request header:
Authorization: Bearer YOUR_API_KEYKeep your API key secure
Never expose your API key in client-side code or public repositories. Store it securely in environment variables.
API Reference
POST
Neuroimaging/api/v1/brain-analysisAnalyze brain MRI scans for tumor detection and segmentation
View DetailsPOST
Radiology/api/v1/chest-analysisDetect TB, pneumonia, and thoracic pathologies from chest X-rays
View DetailsPOST
Ophthalmology/api/v1/retinal-analysisGrade diabetic retinopathy and detect retinal diseases
View DetailsOfficial SDKs
Python
JavaScript/TypeScript
R
Java
Additional Resources
Ready to Explore Our AI Tools?
Our team is here to help you integrate AfriBiobank AI into your workflow