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 the internal API routes used by the SOHAM frontend. They can also be called directly for integration purposes.
/api/chat-directSend a message and receive an AI response. Supports model selection, tone, and conversation history.
Request Body
{
"message": "Explain recursion",
"history": [],
"settings": {
"model": "auto",
"tone": "helpful",
"technicalLevel": "intermediate"
}
}/api/ai/pdf-analyzerAnalyze a PDF file with a natural language query. Send as multipart/form-data.
Request Body
FormData: file: <PDF file, max 5MB> query: "Summarize the key findings"
/api/ai/image-solverAnalyze an image and answer questions about it.
Request Body
{
"imageBase64": "<base64 encoded image>",
"query": "What is shown in this image?"
}/api/ai/searchPerform a web search via DuckDuckGo and return summarised results.
Request Body
{
"query": "latest AI news 2025"
}Integration Examples
Link to Chat
Direct link to open SOHAM chat
<a href="https://soham-ai.vercel.app/chat"> Open SOHAM </a>
Iframe Embed
Embed SOHAM chat in your site
<iframe src="https://soham-ai.vercel.app/chat" width="400" height="600" frameborder="0" />
Note: There is no public API key system currently. Direct API integration is via the web app endpoints above. SOHAM is open-source — see the GitHub repository for self-hosting instructions.