App URLs & API Reference

API Reference

All public URLs, feature routes, documentation links, and API endpoints for SOHAM. Base URL: https://soham-ai.vercel.app

App Feature URLs

Chat

/chat

Main AI chat interface

AI Services

/ai-services

Dashboard for the PDF Analyzer, Visual Math and chat

Visual Math

/visual-math

Solve maths problems from a photo or image

PDF Analyzer

/pdf-analyzer

Upload and query PDF documents

Account

/account

Your account details and settings

Documentation URLs

/documentation
/documentation/quick-start
/documentation/ai-models
/documentation/commands
/documentation/chat
/documentation/settings
/documentation/faq

API Endpoints

These are internal API routes used by the SOHAM web app, not a supported public API. They can change without notice, requests from other websites are blocked by the browser (CORS), and per-IP rate limits apply.

POST
/api/chat-direct

Send a message (up to 10,000 characters) and receive the reply as JSON. Supports model selection, tone, and conversation history.

Request Body

{
  "message": "Explain recursion",
  "history": [],
  "settings": {
    "model": "auto",
    "tone": "helpful",
    "technicalLevel": "intermediate"
  }
}
POST
/api/ai/pdf-analyzer

Ask a question about a PDF (up to 5 MB). Send JSON with the PDF encoded as a base64 data URI.

Request Body

{
  "pdfDataUri": "data:application/pdf;base64,<...>",
  "question": "Summarize the key findings"
}
POST
/api/ai/image-solver

Solve a maths problem shown in an image. Send JSON with the image encoded as a base64 data URI.

Request Body

{
  "imageDataUri": "data:image/png;base64,<...>",
  "problemType": "math"
}
POST
/api/ai/search

Search the web and get an AI-written answer with numbered sources (Tavily when configured, with Wikipedia and DuckDuckGo as fallbacks).

Request Body

{
  "query": "latest AI news"
}

Integration Examples

Link to Chat

Direct link to open SOHAM chat

<a href="https://soham-ai.vercel.app/chat">
  Open SOHAM
</a>

Link to a Tool

Send people straight to a SOHAM tool

<a href="https://soham-ai.vercel.app/visual-math">
  Solve a maths problem
</a>

SOHAM can't be embedded in an iframe on other sites: its pages send headers that block framing. Link to it instead.

Note: There is no public API key system currently. Direct API integration is via the web app endpoints above. An earlier version of SOHAM is public on GitHub — see the GitHub repository for self-hosting instructions.

You must be at least 18 years old to create an account. anyone who has not completed eighteen years of age is a child under India's DPDP Act, and SOHAM cannot verify parental consent.

Last updated: