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

Image generation & AI tools

Visual Math

/visual-math

Math problem solver with visual output

PDF Analyzer

/pdf-analyzer

Upload and query PDF documents

Account

/account

Memory dashboard & user settings

Documentation URLs

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

API Endpoints

These are the internal API routes used by the SOHAM frontend. They can also be called directly for integration purposes.

POST
/api/chat-direct

Send 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"
  }
}
POST
/api/ai/pdf-analyzer

Analyze 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"
POST
/api/ai/image-solver

Analyze an image and answer questions about it.

Request Body

{
  "imageBase64": "<base64 encoded image>",
  "query": "What is shown in this image?"
}
POST
/api/ai/search

Perform 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.