# Emon AI — Siddiqiya Cloud

> Emon AI does text, data and code work for businesses: copy and social posts, translation (Bangla, English and more), clean tables/CSV/JSON, code snippets, summaries, landing pages and multi-step business documents. Priced in Emon credits: a job holds its credit cap up front and is charged only what it really uses.

Status: hiring is live. Reading and searching needs no key. Hiring needs an API key a Siddiqiya Cloud business owner made (Emon AI → API keys). An agent can never approve its own spending: the owner sets each key's per-job and 24-hour limits, and every job runs inside a credit cap held by the server.

Emon AI বাংলা ও ইংরেজিতে কাজ করে: বিক্রির লেখা, অনুবাদ, টেবিল/CSV, কোড, সারাংশ, ল্যান্ডিং পেজ আর ধাপে ধাপে বড় কাজ। খরচ Emon ক্রেডিটে।

## API

- [OpenAPI 3.1](https://app.hsdmj.com/api/v1/openapi.json): the whole public API
- [All capabilities](https://app.hsdmj.com/api/v1/hire/capabilities): every card with its search metadata (`discovery`) in English and Bangla
- [Search](https://app.hsdmj.com/api/v1/hire/capabilities?q=facebook%20post): `q` (English or Bangla), `mode` (instant, asyncLong), `kind`, `format`, `language`, `max_credits`, `max_seconds`
- [Agent card](https://app.hsdmj.com/.well-known/agent-card.json): the same skills as an A2A-style agent card
- [Health](https://app.hsdmj.com/api/v1/health): is the API up, is the Agent Hub on
- [MCP server](https://app.hsdmj.com/api/mcp): POST JSON-RPC; the same hiring as tools for MCP clients

## Get an API key (agents and developers)

Step-by-step guide: https://app.hsdmj.com/agents

Overview and pricing: https://app.hsdmj.com/emon-ai

1. Open the developer console (https://app.hsdmj.com/developers), sign up, and tap "Get my API key": a workspace and its first emk_… key (shown once) are made in one step.
2. Choose an Emon AI plan for that workspace on the website (monthly; no free trial). Jobs run once the plan is on (it switches on when the invoice is paid).
3. More keys: the developer console, sized Small / Medium / Large (each size sets the key's per-job and 24-hour limits).
4. Connect: MCP `claude mcp add --transport http emon-ai https://app.hsdmj.com/api/mcp --header "Authorization: Bearer emk_…"`, or REST below.

## Hire Emon AI (API key)

1. Find the card: `GET /hire/capabilities?q=short video` (no key).
2. Check your room: `GET /hire/me` → `max_credits_now` (the key's limits, what is left for 24 hours, the business's credits).
3. Give the job: `POST /hire/jobs` with `Authorization: Bearer emk_…`, `Idempotency-Key: <your id>` and
   `{"capability_id": "short-video", "instructions": "A 20-second Reels for our rice cooker, ৳3,500", "max_credits": 60}`.
   An instant job answers with its result (`deliverable.parts`); a long job answers at once with `progress.job_id`.
4. Long jobs: poll `GET /hire/jobs/{id}` every 10-30 s, or give a `callback_url` (below). At `awaiting_approval`, `POST /hire/jobs/{id}/actions` with `continue` or `stop`.

Cheaper long jobs: add `"quality": "saver"` to run every step on the low-cost model (often a tenth of the credits or less). `best` (the default) uses the card's usual model.

## Webhooks

Give a job `"callback_url": "https://your.host/path"` (https, a public host name, no IP address, port or login). When the job reaches a checkpoint or ends, the server POSTs `{id, event, attempt, created_at, job}` there; `job` is what `GET /hire/jobs/{id}` returns. Events: `job.checkpoint`, `job.completed`, `job.failed`, `job.cancelled`, `job.rejected`. Answer 2xx within 10 s; otherwise it is sent again after 1 min, 5 min, 30 min, 2 h and 6 h. The same `id` (header `X-Emon-Delivery`) may arrive twice: handle it once.

Check every webhook: `X-Emon-Signature: v1=<hex>` is HMAC-SHA256 of `<X-Emon-Timestamp>.<raw body>`, keyed with the SHA-256 (hex text) of your API key. Refuse it if the signature differs or the timestamp is more than 5 minutes off.

## MCP

MCP server (Streamable HTTP, JSON answers): `POST https://app.hsdmj.com/api/mcp` with `Authorization: Bearer emk_…`. Tools: `search_capabilities`, `get_capability` (no key needed), `check_key_limits`, `hire_emon_ai`, `get_job`, `list_jobs`, `act_on_job`. Same limits, credits and errors as the REST API.

Money rules: `max_credits` is held first and is the most a job can cost; only real use is charged; a failure on our side is refunded; the same request id never charges twice. Errors are `{"error": {"code", "message"}}`, e.g. `KEY_JOB_LIMIT`, `KEY_DAILY_LIMIT`, `HIRE_BUSY`.

## Capabilities

- [Short Video / Reels / শর্ট ভিডিও / রিলস](https://app.hsdmj.com/api/v1/hire/capabilities/short-video): Name the product and the length ("a 30-second Reels for our rice cooker"); Emon AI plans every scene and the app makes the real vertical video: big animated text, your product photos, transitions and music, ready to post. The script, voice-over lines, caption and hashtags come with it. (id `short-video`; modes instant, asyncLong; output markdown, json; about 40s; 10–400 credits)
- [Website / Landing Page / ওয়েবসাইট বানিয়ে নিন](https://app.hsdmj.com/api/v1/hire/capabilities/website-draft): Say what your business is in one line; Emon AI plans the site map, writes every section and builds one finished HTML page. It stops after the site map so you can approve, change it, or stop. (id `website-draft`; modes asyncLong; output html, markdown; about 300s; 150–1500 credits)
- [Build an App / অ্যাপ বানিয়ে নিন](https://app.hsdmj.com/api/v1/hire/capabilities/app-builder): Say what kind of app you want in one line; Emon AI plans the screens and features, then builds a working app that opens on any phone or computer (a single web-app file that saves its data on the device). It stops after the plan so you can approve, change it, or stop. (id `app-builder`; modes asyncLong; output html, markdown; about 420s; 150–1500 credits)
- [Smart Content & Multilingual Copy / স্মার্ট কনটেন্ট ও বহুভাষার লেখা](https://app.hsdmj.com/api/v1/hire/capabilities/smart-content): Short, ready-to-use selling text: product descriptions, social posts, offers, SEO titles and shop notices, in the language you ask for. (id `smart-content`; modes instant; output markdown, text; about 10s; 5–40 credits)
- [CV, Cover Letter & Business Documents / সিভি, কভার লেটার ও ব্যবসার ডকুমেন্ট](https://app.hsdmj.com/api/v1/hire/capabilities/cv-documents): A clean, ATS-ready CV or resume, a cover letter, an SOP or checklist, or a short business summary with tables, ready to copy or export. (id `cv-documents`; modes instant; output markdown, text; about 30s; 5–80 credits)
- [Translation & Localisation / অনুবাদ ও লোকালাইজেশন](https://app.hsdmj.com/api/v1/hire/capabilities/translation): Translates menus, product lists, notices, documents and app text, keeping names, prices and formatting as they are. (id `translation`; modes instant; output markdown, text; about 15s; 5–60 credits)
- [Structured Data & Document Formatting / গোছানো ডেটা ও ডকুমেন্ট ফরম্যাটিং](https://app.hsdmj.com/api/v1/hire/capabilities/structured-data): Turns messy lists, chats and notes into clean tables, CSV or JSON: product lists for import, price lists, timetables, contact lists. (id `structured-data`; modes instant; output json, csv, markdown; about 15s; 5–80 credits)
- [Web/UI & Code Drafting / ওয়েব/UI ও কোড লেখা](https://app.hsdmj.com/api/v1/hire/capabilities/code-snippet): Small, complete pieces of code: a page section, a form, a script, a formula, or a fix for code you paste. (id `code-snippet`; modes instant; output code, markdown; about 30s; 10–150 credits)
- [Research Notes & Summaries / গবেষণা নোট ও সারসংক্ষেপ](https://app.hsdmj.com/api/v1/hire/capabilities/research-summary): Summarises and explains what you send (documents, notes, long text), or writes study notes and comparisons from general knowledge. (id `research-summary`; modes instant; output markdown; about 25s; 5–120 credits)
- [Workflow & Business Operations / কাজের ধারা ও ব্যবসার কাজ](https://app.hsdmj.com/api/v1/hire/capabilities/business-ops): Bigger work done in steps: shop SOPs and checklists, staff training notes, a course outline with lessons, MCQ question sets, a month of social posts. (id `business-ops`; modes asyncLong; output markdown, json, csv; about 420s; 100–1500 credits)
- [General / Custom Task / অন্য যেকোনো কাজ (কাস্টম)](https://app.hsdmj.com/api/v1/hire/capabilities/general): Anything that fits no card above. Emon AI plans the work itself and does it, instantly or in steps. Only unsafe, unauthorised or impossible requests are declined, and a declined job is never charged. (id `general`; modes instant, asyncLong; output markdown, json, code, text; about 30s; 5–3000 credits)
