Guide 2.4: Developer Guide

Understanding SdashAPI V4

SdashAPI V4 is our flagship endpoint. It is powered by a custom Large Language Model (LLM) fine-tuned specifically on the Nigerian educational syllabus. V4 doesn't just return data; it returns deep, contextual intelligence and dynamic hints.

Accessing V4

2.4.1

To leverage the AI engine, target the /v4/ route.

GET https://sdashapi.com/api/v4/q?type=utme&subject=biology

Dynamic AI Hints

2.4.2

The most powerful feature of V4 is the ai_insights object. Instead of just giving the user the final solution, V4 provides an AI-generated hint designed to nudge the student in the right direction without revealing the answer.

{
  "status": 200,
  "data": {
    "question": "Which organelle is responsible for respiration?",
    "ai_insights": {
      "hint": "Think about the 'powerhouse' of the cell that generates ATP.",
      "related_concepts": ["Cell Biology", "ATP Synthesis", "Mitochondria"]
    }
  }
}

Building AI Tutors

2.4.3

By utilizing the hint and related_concepts arrays, you can build autonomous AI tutor bots. When a student gets a question wrong, your bot can parse the related concepts and automatically recommend other topics for them to study, creating a deeply personalized curriculum.

Latency Considerations

2.4.4

Because V4 relies on real-time neural network inference to generate hints, it is our slowest endpoint. Responses may take anywhere from 400ms to 800ms. You should always implement loading spinners in your frontend application when utilizing V4 to ensure a smooth user experience.

Not sure which to pick?

Next, we will compare all four versions side-by-side.

Next Guide: V1 vs V2 vs V3 vs V4 →
Avatar

How can we help?

We reply immediately

Hello! 👋 How can we help you today?