Skip to main content

Interactive API Explorer

Experience the Neolens API hands-on with our interactive documentation. Test endpoints, upload images, and see real AI analysis results without writing code.


🎯 Quick Start Guide​

1. Authentication Setup​

Before using the interactive explorer, you'll need an API key:

# Your API key format
neolens_live_abcd1234efgh5678ijkl9012

Getting your API key:

  1. Visit neolens.ai/dashboard (fictional)
  2. Navigate to "API Keys" section
  3. Click "Generate New Key"
  4. Copy and save your key securely

2. First Interactive Request​

Interactive API Tester​

Note: This is a documentation mockup. In a real implementation, this would be a functional API testing interface.







Mode: Simulation (no network)

πŸ“š Interactive Documentation Features​

Live Code Examples​

Each endpoint includes runnable examples in multiple languages. Use the interactive generator below to produce ready‑to‑run code for uploading an image to the Neolens API with your parameters:

Tip: Replace YOUR_API_KEY with a valid key and pick your preferred language.

Fallback (static tabs)

If JavaScript is disabled, use one of these copy‑paste examples:

# Python example
import requests

url = "https://api.neolens.ai/v1/analyze"
headers = {"Authorization": "Bearer YOUR_API_KEY"}
files = {"image": open("chest_xray.jpg", "rb")}
data = {"confidence_threshold": 0.75, "modality": "auto-detect"}

resp = requests.post(url, headers=headers, files=files, data=data)
resp.raise_for_status()
result = resp.json()
print(f"Analysis complete: {result['data']['findings']}")

Response Visualization​

Interactive response viewer with syntax highlighting and expandable sections:

Response Explorer​

{ } object Β· 3 keys
status: "success"
processing_time: "8.3s"
data object Β· 1 keys
findings array Β· 1 items
findings[0] object Β· 3 keys
label: "pulmonary_nodule"
confidence: 0.87
bounding_box array Β· 4 items
bounding_box[0]: 245
bounding_box[1]: 156
bounding_box[2]: 32
bounding_box[3]: 28

πŸ§ͺ Interactive Tutorials​

Tutorial 1: Your First AI Analysis​

Goal: Upload an image and get AI analysis results

Estimated time: 5 minutes

Steps to Complete​

Step 1: Prepare Your Image​
  • βœ… Download sample image
  • βœ… Ensure image is < 10MB
  • βœ… Supported formats: DICOM (.dcm), JPEG (.jpg), PNG (.png)
Step 2: Authentication​
  • βœ… Enter your API key in the field above
  • βœ… Test connection with "Ping API" button
Step 3: Upload and Analyze​
  • βœ… Select your image file
  • βœ… Keep default settings (confidence: 0.75)
  • βœ… Click "Send Request"
Step 4: Interpret Results​
  • βœ… Review the findings array
  • βœ… Check confidence scores
  • βœ… Read clinical recommendations

Tutorial 2: Batch Processing​

Goal: Process multiple images efficiently

Estimated time: 10 minutes

Progress: 0/0 β€” 0%

Tutorial 3: Advanced Configuration​

Goal: Customize AI analysis parameters

Estimated time: 15 minutes



{
  "sensitivity": 0.8,
  "model_version": "v3.2.1",
  "analysis_depth": "deep",
  "roi": {
    "enabled": true,
    "auto_detect": false,
    "custom_roi": [
      100,
      50,
      400,
      300
    ]
  },
  "output": {
    "include_heatmap": true,
    "include_measurements": true,
    "uncertainty_estimation": true,
    "generate_report": false
  }
}

πŸ”§ Developer Tools​

API Schema Validator​

Request Validator (Live)​

Response Mock Generator​

Mock Response Generator (Live)​

to
to
to
// Click "Generate Mock"

Code Snippet Generator​

Language Code Snippet Generator

Features to include:
import requests

url = "https://api.neolens.ai/v1/analyze"
headers = {"Authorization": "Bearer YOUR_API_KEY"}
files = {"image": open("chest_xray.jpg", "rb")}
data = {"confidence_threshold": 0.75, "modality": "auto-detect"}

resp = requests.post(url, headers=headers, files=files, data=data)
resp.raise_for_status()
print(resp.json())

πŸ“Š Real-time API Status​

Current System Status​

All Systems Operational​

ServiceStatusResponse TimeUptime
Authentication🟒 Healthy95ms99.98%
Image Analysis🟒 Healthy8.2s avg99.95%
Report Generation🟒 Healthy2.1s avg99.97%
Documentation🟒 Healthy1.2s avg99.99%

Queue Status: 3 requests pending, ~15s estimated wait

Last Updated: 2 minutes ago | View Detailed Status

Performance Metrics​

Live Performance Dashboard​

Requests/minute: β–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–‘β–‘ 240 RPM (80% of capacity)
Success Rate: β–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆ 97.8% (Last 24h)
Avg Response: β–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–‘β–‘ 8.3s (Target: <15s)

Geographic Performance:

  • πŸ‡ΊπŸ‡Έ North America: 180ms avg
  • πŸ‡ͺπŸ‡Ί Europe: 220ms avg
  • πŸ‡―πŸ‡΅ Asia-Pacific: 280ms avg

πŸŽ“ Interactive Learning Path​

Beginner Track​

  1. API Basics (10 min) - Authentication and first request
  2. Understanding Responses (15 min) - Interpreting AI results
  3. Error Handling (10 min) - Common issues and solutions

Intermediate Track​

  1. Configuration Options (20 min) - Customizing AI parameters
  2. Batch Processing (15 min) - Handling multiple images
  3. Integration Patterns (25 min) - Best practices for production

Advanced Track​

  1. Performance Optimization (30 min) - Scaling and efficiency
  2. Custom Workflows (25 min) - Building specialized pipelines
  3. Monitoring & Analytics (20 min) - Production deployment

Progress Tracking:

  • βœ… Completed: 3/9 modules
  • 🎯 Current: Module 4 - Configuration Options
  • ⏱️ Estimated completion: 2.5 hours remaining

πŸ’‘ Tips for Success​

Getting the Most from Interactive API​

Best Practices​

  • Start with sample images to understand response format
  • Test with different confidence thresholds to see impact
  • Use the response validator to check your integration
  • Save successful configurations as reusable profiles

Common Pitfalls​

  • Don't test with real patient data (use synthetic samples)
  • Large images (>5MB) will have longer processing times
  • Very low confidence thresholds may produce many false positives

Pro Tips​

  • Use the "Copy as cURL" feature for quick testing
  • Bookmark frequently used endpoint configurations
  • Try the batch processor for multiple test images
  • Use mock responses during development to avoid rate limits

Interactive API Benefits
  • Zero setup: No installation or configuration required
  • Real-time testing: See actual API responses immediately
  • Learning by doing: Hands-on experience with all features
  • Code generation: Get working examples in your preferred language
  • Performance insights: Monitor response times and success rates