We Launched Soham AI SDK

4 months ago 7

soham-ai

TypeScript icon, indicating that this package has built-in type declarations

0.5.0 • Public • Published a minute ago

The Soham AI SDK is a Typescript/Javascript library that allows you to interact with powerful AI services to build AI-powered applications in any framework like Next.js, React, Vue, Svelte, and more that supports JS.

  • 🧩 Powerful AI services all in one SDK
  • 🧑‍💻 Native JS/TS SDK
  • ▲ Supports Next.js, React, Vue, Svelte, Node.js, Bun, Deno, and more
  • ⌨️ Fully typed parameters and responses
  • 📡 Built in Webhook support for long-running tasks
  • 📦 Built in file system for easy file uploads
  • 🍃 Lightweight and blazing fast, built ont native fetch with isomorphic-fetch for maximum compatibility

To learn more about all available Soham AI services, view the Documentation or Website.

Category APIs
👉 General Translation, Summarization, Sentiment Analysis
🌐 Web AI Web Scraping, AI Web Search
🎵 Audio Text to Speech, Speech to Text
👀 Vision vOCR, Object Detection
🧠 LLMs Prompt Engine
🖼️ Generative AI Image (Flux, SD, SDXL-Fast & more), HTML to Any
✅ Validation Email, NSFW images, profanity & more

Learn more of about each category in the API reference

You will need Node.js 18+ on your local development machine.

npm install soham-ai # or yarn add soham-ai # or bun add soham-ai

First, get your API key from the Soham Dashboard

Then, initialize the SDK:

import { Soham } from "soham-ai"; const soham = Soham({ apiKey: "your-api-key" });

AI Scraping Example:

const resp = await soham.web.ai_scrape({ url: "https://www.amazon.com/Cadbury-Mini-Caramel-Eggs-Bulk/dp/B0CWM99G5W", element_prompts: ["prices"], });

Text to Speech Example:

const resp = await soham.audio.text_to_speech({ text: "Hello, how are you doing?", });

Upload a file to use across any API example:

const file = /*reference to file blob or buffer*/ await soham.store.upload(file, { filename: "receipt.png", }); // Now you can use the file_key in any API call const ocrResp = await soham.vision.vocr({ file_store_key: "receipt.png", }); const objectDetectionResp = await soham.vision.object_detection({ file_store_key: "receipt.png", });

Join Soham community on Discord to connect with other developers, share ideas, and get help with the SDK.

Soham AI SDK is open-source and welcomes contributions. Please open an issue or submit a pull request with your changes. Make sure to be as descriptive as possible with your submissions, include examples if relevant.

Package Sidebar

Install

Collaborators

  • yoeven

Read Entire Article