API Reference
All public URLs, feature routes, documentation links, and API endpoints for SOHAM. Base URL: https://soham-ai.vercel.app
App Feature URLs
Documentation URLs
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.
/api/chat-directSend 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"
}
}/api/ai/pdf-analyzerAsk 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"
}/api/ai/image-solverSolve 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"
}/api/ai/searchSearch 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: