Lemura tools web service
Every tool Lemura's AI uses in chat — PowerPoint, Word, Excel and PDF generation, OCR, speech, background removal, charts, market data, animations and more — is also available as a direct API. Processing runs entirely on Lemura's servers and each call is charged to the key owner's wallet.
Authorization: Bearer lsk-…
https://lemura.ir/wp-json/lemuraai/v1
https://lemura.ir/anthropic
https://lemura.ir/public/v1
One key and one wallet for everything: each call (models, tools, video) is charged to the key owner's wallet and logged in usage. Request rules, methods, balance and error codes are identical in both web services.
Quick start
Base URL: https://lemura.ir/public/v1 — Authenticate with the header Authorization: Bearer lsk-... — Prices for plan «Free»
# Create a PowerPoint
curl -X POST https://lemura.ir/public/v1/tools/pptx_generate \
-H "Authorization: Bearer lsk-YOUR_KEY" -H "Content-Type: application/json" \
-d '{"title":"گزارش فصلی","slides":[{"title":"خلاصه","bullets":["رشد ۲۰٪","۳ محصول جدید"]}]}'
# Sending files (multipart): the file field has the same name as the tool parameter
curl -X POST "https://lemura.ir/public/v1/tools/ocr_image?wait=30" -H "Authorization: Bearer lsk-YOUR_KEY" \
-F file=@scan.jpg -F 'args={"languages":["fa","en"]}'
# Long jobs return a job_id (HTTP 202)
curl https://lemura.ir/public/v1/jobs/job_xxx -H "Authorization: Bearer lsk-YOUR_KEY"
{ ok, data, files[], error, meta } — files as temporary download linksلمورا استودیو — میزبانی لمورا
این خدمات روی سرورهای اختصاصی لمورا پردازش میشوند و ناهمگاماند: درخواست ثبت و در صف قرار میگیرد (HTTP 202)، سپس وضعیت را با شناسهٔ کار بپرسید. خروجیها لینک دانلود موقت دارند و صاحب کلید اعلان و پیامک «آماده شد» هم میگیرد. هزینه هنگام ثبت کسر و در صورت ناموفق بودن یا لغو، خودکار برگردانده میشود.
# فهرست خدمات، قیمت هر واحد و پارامترها
curl https://lemura.ir/public/v1/studio/services -H "Authorization: Bearer lsk-YOUR_KEY"
# تولید تصویر (بدون فایل ورودی)
curl -X POST https://lemura.ir/public/v1/studio/jobs -H "Authorization: Bearer lsk-YOUR_KEY" -H "Content-Type: application/json" -d '{"service":"image_anime","prompt":"یک دختر جادوگر با عصای بنفش در جنگل","size":"832x1216","count":2}'
# ترجمه و زیرنویس فارسی ویدیو (آپلود مستقیم)
curl -X POST https://lemura.ir/public/v1/studio/jobs -H "Authorization: Bearer lsk-YOUR_KEY" -F service=video_subtitle -F mode=hard -F file=@talk.mp4
# یا با فایلی که قبلاً با /files آپلود شده
curl -X POST https://lemura.ir/public/v1/studio/jobs -H "Authorization: Bearer lsk-YOUR_KEY" -H "Content-Type: application/json" -d '{"service":"speech_to_text","lang":"fa","file_id":"f_xxxxxxxx"}'
# گفتار فارسی با صدای خودتان (نمونهٔ ۵ ثانیهای + تأیید رضایت)
curl -X POST https://lemura.ir/public/v1/studio/jobs -H "Authorization: Bearer lsk-YOUR_KEY" -F service=tts_fa -F text="سلام، به لمورا خوش آمدید." -F consent=1 -F file=@my_voice.wav
# وضعیت و خروجی (status: queued | running | done | failed | cancelled)
curl https://lemura.ir/public/v1/studio/jobs/123 -H "Authorization: Bearer lsk-YOUR_KEY"
curl https://lemura.ir/public/v1/studio/jobs -H "Authorization: Bearer lsk-YOUR_KEY"
curl -X POST https://lemura.ir/public/v1/studio/jobs/123/cancel -H "Authorization: Bearer lsk-YOUR_KEY"
| خدمت | service | input | پارامترها | قیمت |
|---|---|---|---|---|
| ادیتور ویدیو (تدوین هوشمند) ویدیو را بدهید و بگویید چه میخواهید: هوش مصنوعی گفتار و تصویرِ هر ثانیه را میفهمد، زیرنویس افکتدار میگذارد، با فونتهای حرفهای و نوشتههای سهبعدی درخشان؛ سکوت و مکثها را حذف میکند، جاهای مهم زوم میکند، آیکونهای سهبعدی، افکت صوتی و ترنزیشن میگذارد، کیفیت تصویر را بالا میبرد و برای ریلز عمودی میکند. | video_edit | File (video, ≤ 100MB) | prompt sub_style: bold3d|glow|pop|highlight|classic|box|neon|none font_fa: auto|lalezar|vazir|estedad|sahel|shabnam|samim|gandom|tanha font_en: auto|anton|bebas|luckiest|poppins|archivo|bangers|russo|bungee|righteous|lilita|titan|blackops sub_lang: original|fa sub_position: bottom|middle|top accent: yellow|pink|cyan|green|purple|orange|white aspect: original|9:16|1:1|16:9 silence: light|strong|off zoom: auto|dynamic|off transition: fade|slide|zoom|random|none emoji: on|off sfx: on|off quality: enhance|upscale|off enhance: on|off background: off|blur|color|image bg_color: green|white|black|purple|blue|pink |
۱۸,۱۵۰ Toman / دقیقه حداقل ۱۸,۱۵۰ |
| ترجمه و زیرنویس فارسی ویدیو ویدیوی انگلیسی را بدهید؛ گفتار تشخیص داده، به فارسی ترجمه و زیرنویس فارسی روی ویدیو چسبانده میشود (بهعلاوهٔ فایل SRT). | video_subtitle | File (video, ≤ 120MB) | mode: hard|soft|srt |
۷,۲۶۰ Toman / دقیقه حداقل ۷,۲۶۰ |
| تولید تصویر (SDXL) تصویر واقعگرایانه و هنری با مدل SDXL روی سرور اختصاصی لمورا. | image_sdxl | — | prompt size: 1024x1024|832x1216|1216x832 count: 1|2|3|4 |
۵,۷۱۰ Toman / تصویر حداقل ۵,۷۱۰ |
| تصویرسازی انیمه تصویرسازی به سبک انیمه و کارتون با مدل اختصاصی Illustrious. | image_anime | — | prompt size: 1024x1024|832x1216|1216x832 count: 1|2|3|4 |
۵,۷۱۰ Toman / تصویر حداقل ۵,۷۱۰ |
| ویرایش تصویر (واقعگرایانه) تصویر خودتان را بدهید و بنویسید چه تغییری کند (سبک، رنگ، فضا، نور)؛ با مدل SDXL روی سرور اختصاصی لمورا بازسازی میشود. | image_edit_sdxl | File (image, ≤ 15MB) | prompt strength: 0.65|0.45|0.85 count: 1|2 |
۷,۵۸۶ Toman / تصویر حداقل ۷,۵۸۶ |
| تبدیل تصویر به سبک انیمه تصویر خودتان را به سبک انیمه و کارتون درمیآورد (مدل Illustrious روی سرور اختصاصی لمورا). | image_edit_anime | File (image, ≤ 15MB) | prompt strength: 0.65|0.45|0.85 count: 1|2 |
۷,۵۸۶ Toman / تصویر حداقل ۷,۵۸۶ |
| جداسازی صدای خواننده و موسیقی آهنگ را بدهید؛ صدای خواننده، موسیقی بیکلام، درامز و بیس جدا تحویل داده میشود. | audio_stems | File (audio, ≤ 60MB) | ۷,۲۶۰ Toman / آهنگ حداقل ۳,۶۳۰ | |
| تبدیل صوت و ویدیوی طولانی به متن پادکست، جلسه، کلاس یا پیام صوتی (فارسی یا انگلیسی) را به متن و زیرنویس SRT تبدیل میکند. | speech_to_text | File (media, ≤ 120MB) | lang: fa|en|auto |
۳,۶۳۰ Toman / دقیقه حداقل ۱,۸۱۵ |
| ساخت موسیقی سبک و حالوهوای موسیقی را بنویسید (مثلاً «موسیقی حماسی برای تیزر»)؛ یک قطعهٔ استریو بیکلام ساخته میشود. | music_gen | — | prompt seconds: 10|20|30 |
۱۰,۸۹۰ Toman / ۱۰ ثانیه حداقل ۳,۰۲۵ |
| روتوش، متن و افزایش کیفیت تصویر روی عکس خودتان (مثلاً کاور یوتیوب) با فونتهای زیبای فارسی و انگلیسی — وزیر، لالهزار، استعداد، ساحل یا سایبرپانک — متن بنویسید، تصویر را روتوش کنید و کیفیتش را با هوش مصنوعی Real-ESRGAN دو یا چهار برابر کنید؛ روی سرور گرافیکی لمورا. | image_design | File (image, ≤ 15MB) | title tfont: vazir|lalezar|estedad|sahel|cyberpunk|bold tpos: bottom|top|center tcolor: white|yellow|black|purple|red|cyan teffect: outline|glow|box retouch: on|off upscale: off|2x|4x |
۱,۴۵۲ Toman / تصویر حداقل ۱,۴۵۲ |
| افزایش کیفیت ویدیو (سوپررزولوشن) ویدیوی کمکیفیت را با هوش مصنوعی Real-ESRGAN روی سرور گرافیکی لمورا ۲ یا ۴ برابر (تا 4K) واضحتر و پرجزئیاتتر میکند؛ صدای اصلی حفظ میشود. | video_upscale | File (video, ≤ 100MB) | scale: 2|4 model: real|anime|detail |
۷,۲۶۰ Toman / دقیقه حداقل ۷,۲۶۰ |
| تبدیل متن فارسی به گفتار متن فارسی را با صدای طبیعی گوینده به فایل صوتی تبدیل میکند؛ یا با یک نمونهٔ ۵ ثانیهای، با صدای خود شما (شبیهسازی صدا). | tts_fa | فایل اختیاری (audio) | text voice: amir|gyro consent: 0|1 |
۳,۶۳۰ Toman / ۵۰۰ کاراکتر حداقل ۹۶۸ |
همین خدمات بهصورت ابزار هم در دسترساند (در چت و ایجنتها، و با POST https://lemura.ir/public/v1/tools/local_<service>). خروجی همه در «لمورا استودیو» حساب کاربری هم دیده میشود.
Rules shared by both web services
Authentication
Both web services use the same key. Create it on the “Keys & usage” page and send it in the header of every request:
Authorization: Bearer lsk-YOUR_KEY
Request format
- Request bodies are JSON with the header
Content-Type: application/json. - Send files with
multipart/form-data(the file field; for tools it is named after the parameter, and the other arguments go in an args field as JSON). - Responses are always UTF-8 JSON; amounts are in Toman.
- Long jobs (video, OCR, audio conversion...) are asynchronous: a job id is returned and you poll its status later.
Methods
| Method | Use |
|---|---|
| GET | Read: list models/tools, balance, job status, download files |
| POST | Run: chat, image/video generation, tool calls, file upload, create schedules |
| DELETE | Delete: files, videos, schedules |
Wallet balance & account info
Balance and account info are available from both web services with an identical response:
GET https://lemura.ir/wp-json/lemuraai/v1/balance GET https://lemura.ir/public/v1/balance GET https://lemura.ir/wp-json/lemuraai/v1/me GET https://lemura.ir/public/v1/me
curl https://lemura.ir/public/v1/balance -H "Authorization: Bearer lsk-YOUR_KEY"
{"object": "balance", "user_id": 42, "balance": 125000, "currency": "toman", ...}
Error codes
| HTTP | Meaning |
|---|---|
| 400 | Invalid input |
| 401 | Key missing or invalid |
| 402 | Insufficient wallet balance |
| 403 | Access to this model/tool is not allowed |
| 404 | Model, tool or job not found |
| 409 / 428 | Job not ready yet / mutating operations need the X-Lemura-Confirm: true header |
| 429 | سقف درخواست پلن برای این کلید (در دقیقه یا روز) پر شده؛ متن خطا سقف پلن و نشانی ارتقا را میگوید (هدرهای X-RateLimit-* و Retry-After) |
| 5xx | Temporary server or upstream error — retry in a few seconds |
Audio
audio_denoise
async
v1.0.0Reduce background noise in an audio file (noisereduce spectral gating); outputs WAV/MP3.
Parameters, example and limits
| Parameter | Type | Required | Description |
|---|---|---|---|
| file | string | File id: f_xxx (uploaded/generated file) or att_N (chat attachment) File | |
| strength | number | 0.1–1.0 | |
| stationary | boolean | Stationary noise (hum, fan) | |
| format | string wav | mp3 |
Output |
curl -X POST https://lemura.ir/public/v1/tools/audio_denoise -H "Authorization: Bearer lsk-YOUR_KEY" \
-H "Content-Type: application/json" -d '{"file": "f_0123456789abcdef01234567"}'
book_audio
async
v1.0.1Turn a book or long text into Persian audio with natural Piper voices. mode=audiobook reads the text (Persian text; chapters are marked in the MP3; long books are made in ~20-minute parts via `part`; choose `chapters` like "1-3"). mode=podcast: a model writes a warm two-host conversation about the book (the book may be in any language; the podcast is Persian, about `minutes` long) and two voices perform it; the script is returned too. Voices: amir (male) and gyro (male, deeper). Optional music bed ducked under the voices. Queued; returns a job_id.
Parameters, example and limits
| Parameter | Type | Required | Description |
|---|---|---|---|
| file | string | File id: f_xxx (uploaded/generated file) or att_N (chat attachment) File | |
| text | string | Text instead of a file | |
| mode | string audiobook | podcast |
audiobook or podcast | |
| chapters | string | Sections to use, e.g. 1-3,5 | |
| part | integer | Part number for long audiobooks | |
| voice | string amir | gyro |
Audiobook voice | |
| speed | number | ||
| minutes | integer | Podcast length in minutes (3-20) | |
| style | string | Podcast style | |
| prompt | string | What the podcast should focus on | |
| hosts | array | ||
| music | string | File id: f_xxx (uploaded/generated file) or att_N (chat attachment) File | |
| music_volume | number | ||
| quality | string economy | balanced | best |
Model tier for the script | |
| title | string | File name |
curl -X POST https://lemura.ir/public/v1/tools/book_audio -H "Authorization: Bearer lsk-YOUR_KEY" \
-H "Content-Type: application/json" -d '{}'
local_audio_stems
v1.0.0Split a song into vocals, instrumental, drums and bass on Lemura's own GPU server (queued).
Parameters, example and limits
| Parameter | Type | Required | Description |
|---|---|---|---|
| file | string | File id: f_xxx (uploaded/generated file) or att_N (chat attachment) File |
curl -X POST https://lemura.ir/public/v1/tools/local_audio_stems -H "Authorization: Bearer lsk-YOUR_KEY" \
-H "Content-Type: application/json" -d '{"file": "f_0123456789abcdef01234567"}'
local_music_gen
v1.0.0Compose an instrumental stereo music clip (10-30 s) from a description on Lemura's own GPU server (queued).
Parameters, example and limits
| Parameter | Type | Required | Description |
|---|---|---|---|
| prompt | string | Style and mood, e.g. 'epic orchestral trailer music' | |
| seconds | integer 10 | 20 | 30 |
Length: 10, 20 or 30 |
curl -X POST https://lemura.ir/public/v1/tools/local_music_gen -H "Authorization: Bearer lsk-YOUR_KEY" \
-H "Content-Type: application/json" -d '{"prompt": "..."}'
local_speech_to_text
v1.0.0Transcribe a long Persian or English recording (podcast, meeting, class) to text + SRT on Lemura's own GPU server (queued).
Parameters, example and limits
| Parameter | Type | Required | Description |
|---|---|---|---|
| file | string | File id: f_xxx (uploaded/generated file) or att_N (chat attachment) File | |
| lang | string fa | en | auto |
Spoken language |
curl -X POST https://lemura.ir/public/v1/tools/local_speech_to_text -H "Authorization: Bearer lsk-YOUR_KEY" \
-H "Content-Type: application/json" -d '{"file": "f_0123456789abcdef01234567"}'
local_tts_fa
v1.1.0Read Persian text aloud with a natural voice (amir or gyro), or clone the user's own voice from a short sample (voice_sample + consent="1": the user owns the voice or has permission) on Lemura's own server (queued).
Parameters, example and limits
| Parameter | Type | Required | Description |
|---|---|---|---|
| text | string | Persian text (max 4000 characters) | |
| voice | string amir | gyro |
Voice | |
| voice_sample | string | File id: f_xxx (uploaded/generated file) or att_N (chat attachment) File | |
| consent | string 0 | 1 |
"1" = the voice belongs to the user or they have permission |
curl -X POST https://lemura.ir/public/v1/tools/local_tts_fa -H "Authorization: Bearer lsk-YOUR_KEY" \
-H "Content-Type: application/json" -d '{"text": "..."}'
speech_to_text
async
v1.0.0Transcribe audio/video files to text with faster-whisper (Persian, English and 90+ languages), optional timestamps and SRT subtitles.
Parameters, example and limits
| Parameter | Type | Required | Description |
|---|---|---|---|
| file | string | File id: f_xxx (uploaded/generated file) or att_N (chat attachment) File | |
| language | string auto | fa | en | ar | tr | de | fr |
Language code or auto | |
| timestamps | boolean | Include segment timestamps | |
| srt | boolean | Also produce an .srt subtitle file | |
| translate | boolean | Translate to English instead of transcribing |
curl -X POST https://lemura.ir/public/v1/tools/speech_to_text -H "Authorization: Bearer lsk-YOUR_KEY" \
-H "Content-Type: application/json" -d '{"file": "f_0123456789abcdef01234567"}'
text_to_speech
v1.0.0Convert text to natural speech (MP3) with neural voices (Persian: Dilara/Farid, English and many more).
Parameters, example and limits
| Parameter | Type | Required | Description |
|---|---|---|---|
| text | string | Text to speak (max 5000 chars) | |
| voice | string fa-IR-DilaraNeural | fa-IR-FaridNeural | en-US-JennyNeural | en-US-GuyNeural | en-GB-SoniaNeural | ar-SA-ZariyahNeural | tr-TR-EmelNeural | de-DE-KatjaNeural |
Voice | |
| rate | string | Speed like +10% or -20% | |
| pitch | string | Pitch like +5Hz |
curl -X POST https://lemura.ir/public/v1/tools/text_to_speech -H "Authorization: Bearer lsk-YOUR_KEY" \
-H "Content-Type: application/json" -d '{"text": "..."}'
Code
code_interpreter
v1.0.0Run Python 3.11 code in an isolated sandbox (no network) for calculations, data analysis and file conversion. pandas, numpy, matplotlib, plotly, openpyxl, python-docx, Pillow are available. Input files are in ./in, save outputs to ./out.
Parameters, example and limits
| Parameter | Type | Required | Description |
|---|---|---|---|
| code | string | Python code | |
| files | array | File |
curl -X POST https://lemura.ir/public/v1/tools/code_interpreter -H "Authorization: Bearer lsk-YOUR_KEY" \
-H "Content-Type: application/json" -d '{"code": "..."}'
Documents
book_translate
async
v1.0.1Translate a whole book (PDF with text, DOCX, EPUB, TXT, Markdown — up to ~1.5 million characters) into Persian or another language: the structure (chapters, headings, paragraphs, lists) is extracted, a glossary keeps names and terms consistent across the book, the text is translated faithfully in parallel and returned as a formatted PDF (RTL, Vazirmatn, table of contents), DOCX and Markdown plus the glossary. quality = gpu (ECONOMY: Lemura's own translation model, slower, 30% cheaper than the advanced model) | economy | balanced | best (ADVANCED cloud models, faster); long books continue automatically in several runs. Scanned PDFs need ocr_image first. Queued; returns a job_id.
Parameters, example and limits
| Parameter | Type | Required | Description |
|---|---|---|---|
| file | string | File id: f_xxx (uploaded/generated file) or att_N (chat attachment) File | |
| target_lang | string fa | en | ar | tr | de | fr | es | ru | zh | ja | ko | it | ur | hi |
Target language | |
| style | string fluent | faithful | simple |
Translation style | |
| quality | string gpu | economy | balanced | best |
gpu = economy (slower, 30% cheaper); economy / balanced / best = advanced cloud tiers | |
| glossary | string | Your own fixed translations, one per line: term = ترجمه | |
| formats | array | ||
| author | string | Author name for the title page | |
| model | string | Specific chat model id (optional) |
curl -X POST https://lemura.ir/public/v1/tools/book_translate -H "Authorization: Bearer lsk-YOUR_KEY" \
-H "Content-Type: application/json" -d '{"file": "f_0123456789abcdef01234567"}'
docx_generate
v1.0.0Create a Word (.docx) document from content blocks (headings, paragraphs, lists, tables, images), or fill a .docx template (docxtpl) with a context.
Parameters, example and limits
| Parameter | Type | Required | Description |
|---|---|---|---|
| title | string | Document title | |
| rtl | boolean | Right-to-left (Persian) | |
| blocks | array | ||
| template | string | File id: f_xxx (uploaded/generated file) or att_N (chat attachment) File | |
| context | object | Template variables for docxtpl | |
| filename | string | Output file name |
curl -X POST https://lemura.ir/public/v1/tools/docx_generate -H "Authorization: Bearer lsk-YOUR_KEY" \
-H "Content-Type: application/json" -d '{}'
pdf_generate
v1.0.0Render HTML or Markdown into a high-quality PDF (WeasyPrint) with full Persian/RTL support and the Vazirmatn font.
Parameters, example and limits
| Parameter | Type | Required | Description |
|---|---|---|---|
| html | string | HTML body | |
| markdown | string | Markdown text (used if html is empty) | |
| title | string | Document title | |
| rtl | boolean | Right-to-left | |
| page_size | string A4 | A5 | Letter | A3 |
Page size | |
| landscape | boolean | Landscape orientation | |
| css | string | Extra CSS | |
| filename | string | Output file name |
curl -X POST https://lemura.ir/public/v1/tools/pdf_generate -H "Authorization: Bearer lsk-YOUR_KEY" \
-H "Content-Type: application/json" -d '{}'
pdf_tools
v1.0.0Manipulate PDFs: merge, split, extract pages, rotate, add text watermark, convert pages to images, images to PDF, compress, read metadata.
Parameters, example and limits
| Parameter | Type | Required | Description |
|---|---|---|---|
| action | string merge | split | extract_pages | rotate | watermark | to_images | images_to_pdf | compress | metadata |
Operation | |
| files | array | File | |
| pages | string | Page ranges like 1-3,5 | |
| angle | integer 90 | 180 | 270 |
Rotation angle | |
| text | string | Watermark text | |
| dpi | integer | Image DPI |
curl -X POST https://lemura.ir/public/v1/tools/pdf_tools -H "Authorization: Bearer lsk-YOUR_KEY" \
-H "Content-Type: application/json" -d '{"action": "merge", "files": ["f_0123456789abcdef01234567"]}'
pptx_generate
v1.0.0Create a PowerPoint (.pptx) presentation from structured slides. Supports Persian/RTL text, themes, notes and images.
Parameters, example and limits
| Parameter | Type | Required | Description |
|---|---|---|---|
| title | string | Presentation title | |
| subtitle | string | Subtitle | |
| theme | string purple | dark | light | blue | green |
Theme | |
| rtl | boolean | Right-to-left (Persian) layout | |
| slides | array | ||
| filename | string | Output file name |
curl -X POST https://lemura.ir/public/v1/tools/pptx_generate -H "Authorization: Bearer lsk-YOUR_KEY" \
-H "Content-Type: application/json" -d '{"slides": [{"title": "..."}], "title": "..."}'
qrcode_generate
v1.0.0Generate a QR code image (PNG or SVG) for a URL, text, Wi-Fi config or contact card, with custom colors and optional center logo.
Parameters, example and limits
| Parameter | Type | Required | Description |
|---|---|---|---|
| data | string | Content to encode | |
| size | integer | Box size in px | |
| fill_color | string | Foreground color | |
| back_color | string | Background color | |
| format | string png | svg |
Output format | |
| logo | string | File id: f_xxx (uploaded/generated file) or att_N (chat attachment) File |
curl -X POST https://lemura.ir/public/v1/tools/qrcode_generate -H "Authorization: Bearer lsk-YOUR_KEY" \
-H "Content-Type: application/json" -d '{"data": "..."}'
xlsx_generate
v1.0.0Create an Excel (.xlsx) workbook with one or more sheets, formulas, styled headers, auto-filter and optional native charts.
Parameters, example and limits
| Parameter | Type | Required | Description |
|---|---|---|---|
| sheets | array | ||
| rtl | boolean | Right-to-left sheets | |
| filename | string | Output file name |
curl -X POST https://lemura.ir/public/v1/tools/xlsx_generate -H "Authorization: Bearer lsk-YOUR_KEY" \
-H "Content-Type: application/json" -d '{"sheets": [{"name": "...", "rows": ["..."]}]}'
Finance
crypto_market
v1.0.0Live crypto market data from major exchanges (ccxt): ticker, OHLCV candles, order book, markets; optional technical indicators and candlestick chart.
Parameters, example and limits
| Parameter | Type | Required | Description |
|---|---|---|---|
| action | string ticker | ohlcv | orderbook | markets |
Data | |
| symbol | string | Pair like BTC/USDT | |
| exchange | string binance | kucoin | okx | bybit | kraken | coinbase | bitfinex | gateio | mexc |
Exchange | |
| timeframe | string 1m | 5m | 15m | 1h | 4h | 1d | 1w |
Candle timeframe | |
| limit | integer | Candles | |
| indicators | array | ||
| chart | boolean | Return a candlestick chart image |
curl -X POST https://lemura.ir/public/v1/tools/crypto_market -H "Authorization: Bearer lsk-YOUR_KEY" \
-H "Content-Type: application/json" -d '{"action": "ticker"}'
stock_market
v1.0.0Stock/ETF/index/forex data from Yahoo Finance (yfinance): price history, company info and technical indicators (pandas-ta) with an optional chart.
Parameters, example and limits
| Parameter | Type | Required | Description |
|---|---|---|---|
| symbol | string | Ticker like AAPL, ^GSPC, EURUSD=X, GC=F | |
| action | string history | info | indicators |
Data | |
| period | string 5d | 1mo | 3mo | 6mo | 1y | 2y | 5y | max |
Range | |
| interval | string 1h | 1d | 1wk | 1mo |
Interval | |
| indicators | array | ||
| chart | boolean | Return a chart image |
curl -X POST https://lemura.ir/public/v1/tools/stock_market -H "Authorization: Bearer lsk-YOUR_KEY" \
-H "Content-Type: application/json" -d '{"symbol": "..."}'
Image
image_edit
v1.0.0Edit images with a pipeline of operations: resize, crop, rotate, flip, grayscale, blur, sharpen, brightness, contrast, text watermark, format conversion, compression, thumbnail.
Parameters, example and limits
| Parameter | Type | Required | Description |
|---|---|---|---|
| file | string | File id: f_xxx (uploaded/generated file) or att_N (chat attachment) File | |
| ops | array | ||
| format | string png | jpeg | webp |
Output format | |
| quality | integer | JPEG/WebP quality |
curl -X POST https://lemura.ir/public/v1/tools/image_edit -H "Authorization: Bearer lsk-YOUR_KEY" \
-H "Content-Type: application/json" -d '{"file": "f_0123456789abcdef01234567"}'
local_image_anime
v1.0.0Anime / cartoon style illustration on Lemura's own GPU server (queued; results arrive in Lemura Studio).
Parameters, example and limits
| Parameter | Type | Required | Description |
|---|---|---|---|
| prompt | string | Image description (Persian or English) | |
| size | string 1024x1024 | 832x1216 | 1216x832 |
Frame | |
| count | integer | Number of images 1-4 |
curl -X POST https://lemura.ir/public/v1/tools/local_image_anime -H "Authorization: Bearer lsk-YOUR_KEY" \
-H "Content-Type: application/json" -d '{"prompt": "..."}'
local_image_design
v1.0.0On Lemura's own GPU server: write a title on the user's own picture in a beautiful Persian / English font (vazir, lalezar, estedad, sahel, cyberpunk, bold) with outline / glow / box, retouch it and upscale it 2x / 4x with Real-ESRGAN. Use it when generate_image is unavailable, or when the user wants exactly this (their photo + their exact text). Queued; the result arrives in Lemura Studio and the gallery.
Parameters, example and limits
| Parameter | Type | Required | Description |
|---|---|---|---|
| file | string | File id: f_xxx (uploaded/generated file) or att_N (chat attachment) File | |
| text | string | Exact text to write on the picture (any language; empty = none) | |
| font | string vazir | lalezar | estedad | sahel | cyberpunk | bold |
Font | |
| position | string bottom | top | center |
Where the text goes | |
| color | string white | yellow | black | purple | red | cyan |
Text colour | |
| effect | string outline | glow | box |
Text style | |
| retouch | boolean | Clean up and enhance the photo | |
| upscale | string off | 2x | 4x |
AI upscaling |
curl -X POST https://lemura.ir/public/v1/tools/local_image_design -H "Authorization: Bearer lsk-YOUR_KEY" \
-H "Content-Type: application/json" -d '{"file": "f_0123456789abcdef01234567"}'
local_image_edit
v1.0.0Edit or restyle the user's own picture on Lemura's GPU server (image-to-image): describe the change (style, colors, mood, lighting, setting); style=realistic (SDXL) or anime (Illustrious, e.g. turn a photo into an anime illustration); change = light / medium / strong (how far it may move from the original). Queued; results arrive in Lemura Studio.
Parameters, example and limits
| Parameter | Type | Required | Description |
|---|---|---|---|
| file | string | File id: f_xxx (uploaded/generated file) or att_N (chat attachment) File | |
| prompt | string | What should change / the target look | |
| style | string realistic | anime |
Model | |
| change | string light | medium | strong |
How strong the change is | |
| count | integer | Number of results 1-2 |
curl -X POST https://lemura.ir/public/v1/tools/local_image_edit -H "Authorization: Bearer lsk-YOUR_KEY" \
-H "Content-Type: application/json" -d '{"file": "f_0123456789abcdef01234567", "prompt": "..."}'
local_image_sdxl
v1.0.0Generate 1-4 images with SDXL on Lemura's own GPU server (queued; results arrive in Lemura Studio).
Parameters, example and limits
| Parameter | Type | Required | Description |
|---|---|---|---|
| prompt | string | Image description (Persian or English) | |
| size | string 1024x1024 | 832x1216 | 1216x832 |
Frame | |
| count | integer | Number of images 1-4 |
curl -X POST https://lemura.ir/public/v1/tools/local_image_sdxl -H "Authorization: Bearer lsk-YOUR_KEY" \
-H "Content-Type: application/json" -d '{"prompt": "..."}'
remove_background
async
v1.0.0Remove the background of a photo (rembg / U²-Net); optionally replace it with a solid color.
Parameters, example and limits
| Parameter | Type | Required | Description |
|---|---|---|---|
| file | string | File id: f_xxx (uploaded/generated file) or att_N (chat attachment) File | |
| bg_color | string | Optional background color, e.g. #ffffff | |
| alpha_matting | boolean | Finer edges |
curl -X POST https://lemura.ir/public/v1/tools/remove_background -H "Authorization: Bearer lsk-YOUR_KEY" \
-H "Content-Type: application/json" -d '{"file": "f_0123456789abcdef01234567"}'
Language processing
nlp_analyze
v1.0.0Detect language (fastText, 176 languages) and extract named entities, sentences and noun phrases (spaCy).
Parameters, example and limits
| Parameter | Type | Required | Description |
|---|---|---|---|
| text | string | Text | |
| ops | array |
curl -X POST https://lemura.ir/public/v1/tools/nlp_analyze -H "Authorization: Bearer lsk-YOUR_KEY" \
-H "Content-Type: application/json" -d '{"text": "..."}'
persian_nlp
v1.0.0Persian text processing with hazm: normalization (spacing, characters, half-space), sentence/word tokenization, stemming, lemmatization.
Parameters, example and limits
| Parameter | Type | Required | Description |
|---|---|---|---|
| text | string | Persian text | |
| ops | array |
curl -X POST https://lemura.ir/public/v1/tools/persian_nlp -H "Authorization: Bearer lsk-YOUR_KEY" \
-H "Content-Type: application/json" -d '{"text": "..."}'
text_summarize
v1.0.0Extractive summarization (sumy: LSA/LexRank/TextRank/Luhn) and multilingual sentiment analysis (transformers).
Parameters, example and limits
| Parameter | Type | Required | Description |
|---|---|---|---|
| text | string | Text | |
| file | string | File id: f_xxx (uploaded/generated file) or att_N (chat attachment) File | |
| task | string summarize | sentiment | both |
Task | |
| sentences | integer | Summary sentences | |
| method | string lsa | lexrank | textrank | luhn |
Algorithm | |
| language | string persian | english | auto |
Language |
curl -X POST https://lemura.ir/public/v1/tools/text_summarize -H "Authorization: Bearer lsk-YOUR_KEY" \
-H "Content-Type: application/json" -d '{}'
File processing
archive_tools
v1.0.0List, extract or create ZIP / 7z archives (optionally password-protected).
Parameters, example and limits
| Parameter | Type | Required | Description |
|---|---|---|---|
| action | string list | extract | create |
Operation | |
| file | string | File id: f_xxx (uploaded/generated file) or att_N (chat attachment) File | |
| files | array | File | |
| format | string zip | 7z |
Archive format for create | |
| password | string | Archive password | |
| name | string | Output archive name |
curl -X POST https://lemura.ir/public/v1/tools/archive_tools -H "Authorization: Bearer lsk-YOUR_KEY" \
-H "Content-Type: application/json" -d '{"action": "list"}'
html_extract
v1.0.0Fetch a public web page (or take raw HTML/file) and extract its main readable content as text/markdown with metadata (trafilatura).
Parameters, example and limits
| Parameter | Type | Required | Description |
|---|---|---|---|
| url | string | Public https URL | |
| html | string | Raw HTML instead of URL | |
| file | string | File id: f_xxx (uploaded/generated file) or att_N (chat attachment) File | |
| output | string text | markdown | json |
Output format | |
| include_links | boolean | Keep links |
curl -X POST https://lemura.ir/public/v1/tools/html_extract -H "Authorization: Bearer lsk-YOUR_KEY" \
-H "Content-Type: application/json" -d '{}'
ocr_image
async
v1.0.0Extract text from images or scanned PDFs with EasyOCR (Persian + English by default).
Parameters, example and limits
| Parameter | Type | Required | Description |
|---|---|---|---|
| file | string | File id: f_xxx (uploaded/generated file) or att_N (chat attachment) File | |
| languages | array | ||
| detail | boolean | Return boxes and confidence | |
| max_pages | integer | Max PDF pages |
curl -X POST https://lemura.ir/public/v1/tools/ocr_image -H "Authorization: Bearer lsk-YOUR_KEY" \
-H "Content-Type: application/json" -d '{"file": "f_0123456789abcdef01234567"}'
pdf_extract
async
v1.0.0Extract text and tables from a digital PDF (pdfplumber), page by page.
Parameters, example and limits
| Parameter | Type | Required | Description |
|---|---|---|---|
| file | string | File id: f_xxx (uploaded/generated file) or att_N (chat attachment) File | |
| pages | string | Page ranges like 1-3,5 | |
| tables | boolean | Also extract tables | |
| max_chars | integer | Max characters returned |
curl -X POST https://lemura.ir/public/v1/tools/pdf_extract -H "Authorization: Bearer lsk-YOUR_KEY" \
-H "Content-Type: application/json" -d '{"file": "f_0123456789abcdef01234567"}'
Knowledge base (RAG)
knowledge_index
async
v1.0.0Index files, web pages or text into the user's private knowledge base (langchain splitter + chromadb) so it can be searched in chat.
Parameters, example and limits
| Parameter | Type | Required | Description |
|---|---|---|---|
| collection | string | Knowledge base name | |
| files | array | File | |
| urls | array | ||
| text | string | Raw text to index | |
| replace | boolean | Replace the collection first |
curl -X POST https://lemura.ir/public/v1/tools/knowledge_index -H "Authorization: Bearer lsk-YOUR_KEY" \
-H "Content-Type: application/json" -d '{"collection": "..."}'
knowledge_search
v1.0.0Semantic search over the user's knowledge base; returns the most relevant passages with sources (chat with your data).
Parameters, example and limits
| Parameter | Type | Required | Description |
|---|---|---|---|
| collection | string | Knowledge base name (empty = all) | |
| query | string | Question or search phrase | |
| k | integer | Results |
curl -X POST https://lemura.ir/public/v1/tools/knowledge_search -H "Authorization: Bearer lsk-YOUR_KEY" \
-H "Content-Type: application/json" -d '{"query": "..."}'
Social media
youtube_analytics
v1.0.0Channel analytics from the YouTube Analytics API: views, watch time, average view duration, subscribers gained/lost, likes, comments, shares — by day, by video (top videos) or by country.
Parameters, example and limits
| Parameter | Type | Required | Description |
|---|---|---|---|
| days | integer | Last N days (1-365, default 28) | |
| by | string day | video | country |
Breakdown | |
| limit | integer | Top N videos | |
| channel | string | Channel id / handle (optional) |
curl -X POST https://lemura.ir/public/v1/tools/youtube_analytics -H "Authorization: Bearer lsk-YOUR_KEY" \
-H "Content-Type: application/json" -d '{}'
youtube_comments
v1.0.0Read the latest comments of the channel or of one video; or reply to a comment thread (reply_to + text).
Parameters, example and limits
| Parameter | Type | Required | Description |
|---|---|---|---|
| video_id | string | Only this video (optional) | |
| limit | integer | How many (max 100) | |
| reply_to | string | Comment thread id to reply to | |
| text | string | Reply text | |
| channel | string | Channel id / handle (optional) |
curl -X POST https://lemura.ir/public/v1/tools/youtube_comments -H "Authorization: Bearer lsk-YOUR_KEY" \
-H "Content-Type: application/json" -d '{}'
youtube_playlists
v1.0.0List the channel's playlists, or create one (create_title, description, privacy).
Parameters, example and limits
| Parameter | Type | Required | Description |
|---|---|---|---|
| create_title | string | Create a playlist with this title (optional) | |
| description | string | Playlist description | |
| privacy | string private | unlisted | public |
Privacy | |
| channel | string | Channel id / handle (optional) |
curl -X POST https://lemura.ir/public/v1/tools/youtube_playlists -H "Authorization: Bearer lsk-YOUR_KEY" \
-H "Content-Type: application/json" -d '{}'
youtube_search
v1.0.0Search public YouTube videos (relevance / most viewed / newest) with their views, likes and length — for content research, trends and ideas. Costs YouTube API quota; use focused queries.
Parameters, example and limits
| Parameter | Type | Required | Description |
|---|---|---|---|
| query | string | Search query | |
| order | string relevance | viewCount | date | rating |
Order | |
| limit | integer | Max 25 | |
| region | string | Country code, e.g. IR | |
| language | string | Language, e.g. fa |
curl -X POST https://lemura.ir/public/v1/tools/youtube_search -H "Authorization: Bearer lsk-YOUR_KEY" \
-H "Content-Type: application/json" -d '{"query": "..."}'
youtube_upload
async
v1.0.0Upload a video file (e.g. one made with motion_generate / motion_video_edit) to the user's YouTube channel through the official API: title, description, tags, privacy (private/unlisted/public), optional scheduled publish time (RFC 3339, e.g. 2026-12-01T18:30:00+03:30), thumbnail image and playlist. Write a good SEO title/description in the channel's language.
Parameters, example and limits
| Parameter | Type | Required | Description |
|---|---|---|---|
| file | string | File id: f_xxx (uploaded/generated file) or att_N (chat attachment) File | |
| title | string | Video title (max 100 chars) | |
| description | string | Description | |
| tags | array | ||
| privacy | string private | unlisted | public |
Privacy | |
| publish_at | string | Scheduled publish time, RFC 3339 (optional) | |
| category | string | YouTube category id (22 People&Blogs, 27 Education, 24 Entertainment, 28 Science&Tech) | |
| thumbnail | string | Thumbnail image file id (optional) | |
| playlist_id | string | Add to this playlist (optional) | |
| made_for_kids | boolean | Made for kids | |
| language | string | Language code, e.g. fa | |
| channel | string | Channel id / handle when the user has several |
curl -X POST https://lemura.ir/public/v1/tools/youtube_upload -H "Authorization: Bearer lsk-YOUR_KEY" \
-H "Content-Type: application/json" -d '{"file": "f_0123456789abcdef01234567", "title": "..."}'
youtube_videos
v1.0.0Recent videos of the user's channel with views, likes, comments, length and privacy.
Parameters, example and limits
| Parameter | Type | Required | Description |
|---|---|---|---|
| limit | integer | How many (max 50) | |
| channel | string | Channel id / handle (optional) |
curl -X POST https://lemura.ir/public/v1/tools/youtube_videos -H "Authorization: Bearer lsk-YOUR_KEY" \
-H "Content-Type: application/json" -d '{}'
Video & animation
animation_html
async
v2.0.0Render a fully custom motion graphic written as ONE self-contained HTML page (HTML + CSS + JS) to MP4/WebM/GIF. The page is recorded frame by frame on a virtual clock at the exact frame size: CSS @keyframes/transitions, Web Animations, requestAnimationFrame, timers, SVG and canvas all work; for canvas/WebGL define window.lemuraSeek = (t) => draw(t) (t in seconds). Offline libraries load from their usual CDN URLs: GSAP 3.13 (cdn.jsdelivr.net/npm/gsap@3.13.0/dist/gsap.min.js), anime.js 3, three.js r149, d3 7, Chart.js 4, lottie-web 5. Fonts: Vazirmatn (Persian) and Noto Sans are installed; no other network. Input images: put their file ids (f_xxx) directly in src="…". Size the page as html,body{width/height of the frame;overflow:hidden}. Max 45 s at 1080p, 90 s at 720p, 120 s at 480p. Queued like animation_render; returns a job_id.
Parameters, example and limits
| Parameter | Type | Required | Description |
|---|---|---|---|
| html | string | Complete HTML document of the animation | |
| duration_sec | number | ||
| aspect | string 16:9 | 9:16 | 1:1 | 4:5 |
Aspect ratio | |
| quality | string 480p | 720p | 1080p |
Resolution (short side) | |
| fps | integer 24 | 25 | 30 |
Frames per second | |
| format | string mp4 | webm | gif |
Output format | |
| files | array | Images/videos used by the page (reference their ids in the HTML) File | |
| music | string | File id: f_xxx (uploaded/generated file) or att_N (chat attachment) File | |
| music_volume | number | ||
| title | string | File name |
curl -X POST https://lemura.ir/public/v1/tools/animation_html -H "Authorization: Bearer lsk-YOUR_KEY" \
-H "Content-Type: application/json" -d '{"html": "..."}'
animation_render
async
v2.0.0Render an animated video (MP4/WebM/GIF) from scenes: title, text (word-by-word), bullets, image (Ken Burns), quote, stat (animated counter), chart (animated bars), steps, split (image+text), cta — with transitions (fade/slide/wipe/flip), theme, logo, background music and watermark. Persian RTL with the Vazirmatn font by default. Aspect 16:9, 9:16 (stories/reels), 1:1 or 4:5. Max 20 scenes; total length max 45 s at 1080p, 90 s at 720p (default), 120 s at 480p. For a free-form, designed video from a description prefer motion_generate. Rendering is queued (one render at a time) and returns a job_id; the user is notified.
Parameters, example and limits
| Parameter | Type | Required | Description |
|---|---|---|---|
| title | string | Video title (also the file name) | |
| scenes | array | ||
| aspect | string 16:9 | 9:16 | 1:1 | 4:5 |
Aspect ratio | |
| quality | string 480p | 720p | 1080p |
Resolution (short side) | |
| fps | integer 24 | 25 | 30 |
Frames per second | |
| format | string mp4 | webm | gif |
Output format | |
| theme | object | ||
| rtl | boolean | Right-to-left (Persian) layout | |
| logo | string | File id: f_xxx (uploaded/generated file) or att_N (chat attachment) File | |
| music | string | File id: f_xxx (uploaded/generated file) or att_N (chat attachment) File | |
| music_volume | number | ||
| watermark | string | Small corner text |
curl -X POST https://lemura.ir/public/v1/tools/animation_render -H "Authorization: Bearer lsk-YOUR_KEY" \
-H "Content-Type: application/json" -d '{"aspect": "9:16", "scenes": [{"duration": 3, "subtitle": "\u062f\u0633\u062a\u06cc\u0627\u0631 \u0647\u0648\u0634 \u0645\u0635\u0646\u0648\u0639\u06cc \u0641\u0627\u0631\u0633\u06cc", "title": "\u0644\u0645\u0648\u0631\u0627", "type": "title"}, {"items": ["\u06af\u0641\u062a\u06af\u0648 \u0628\u0627 \u0628\u0647\u062a\u0631\u06cc\u0646 \u0645\u062f\u0644\u200c\u0647\u0627", "\u0633\u0627\u062e\u062a \u062a\u0635\u0648\u06cc\u0631 \u0648 \u0648\u06cc\u062f\u06cc\u0648", "\u0648\u0628\u200c\u0633\u0631\u0648\u06cc\u0633 API"], "title": "\u0627\u0645\u06a9\u0627\u0646\u0627\u062a", "transition": "slide", "type": "bullets"}, {"suffix": "%", "title": "\u0631\u0636\u0627\u06cc\u062a \u06a9\u0627\u0631\u0628\u0631\u0627\u0646", "type": "stat", "value": 98}, {"button": "lemura.ir", "title": "\u0647\u0645\u06cc\u0646 \u062d\u0627\u0644\u0627 \u0634\u0631\u0648\u0639 \u06a9\u0646\u06cc\u062f", "transition": "wipe", "type": "cta"}], "title": "\u0645\u0639\u0631\u0641\u06cc \u0644\u0645\u0648\u0631\u0627"}'
local_video_edit
v1.2.0Edit an uploaded video on Lemura's GPU server: the AI transcribes and watches it second by second, then adds animated subtitles (pop / highlight / classic / box / neon, optionally translated to Persian), removes silences and fillers, zooms on key moments, adds 3D icons (never emoji), sound effects and transitions, bold 3D / glow text in professional Persian and English fonts, picture enhancement or AI upscaling, replaces the background (blur / colour / the user's image, people kept), labels what the speaker points at with a finger, and can reframe to vertical 9:16 following the speaker. Put the user's wishes in prompt (e.g. 'show a coffee when I say coffee, cut the first 10 seconds'). Queued; the result arrives in Lemura Studio.
Parameters, example and limits
| Parameter | Type | Required | Description |
|---|---|---|---|
| file | string | File id: f_xxx (uploaded/generated file) or att_N (chat attachment) File | |
| prompt | string | What to do, in the user's words (optional) | |
| sub_style | string bold3d | glow | pop | highlight | classic | box | neon | none |
Subtitle style | |
| quality | string enhance | upscale | off |
Picture: enhance (default), upscale (AI super-resolution) or off | |
| sub_lang | string original | fa |
original or fa (translate subtitles to Persian) | |
| aspect | string original | 9:16 | 1:1 | 16:9 |
Output frame | |
| silence | string light | strong | off |
Remove silences | |
| zoom | string auto | dynamic | off |
Zooms | |
| emoji | string on | off |
Emojis | |
| sfx | string on | off |
Sound effects | |
| transition | string fade | slide | zoom | random | none |
Transitions | |
| background | string off | blur | color | image |
Replace the background behind the people: blur (unrecognisable), color, image (bg_file) or off | |
| bg_color | string green | white | black | purple | blue | pink |
Background colour when background=color | |
| bg_file | string | Image file id for background=image |
curl -X POST https://lemura.ir/public/v1/tools/local_video_edit -H "Authorization: Bearer lsk-YOUR_KEY" \
-H "Content-Type: application/json" -d '{"file": "f_0123456789abcdef01234567"}'
local_video_subtitle
v1.0.0Translate an English video and add Persian subtitles (burned in, separate MKV track, or SRT only). Queued on Lemura's own GPU server; the result arrives in the user's Lemura Studio with a notification and SMS. Returns a job id at once.
Parameters, example and limits
| Parameter | Type | Required | Description |
|---|---|---|---|
| file | string | File id: f_xxx (uploaded/generated file) or att_N (chat attachment) File | |
| mode | string hard | soft | srt |
hard = subtitles on the video, soft = separate track (MKV), srt = subtitle files only |
curl -X POST https://lemura.ir/public/v1/tools/local_video_subtitle -H "Authorization: Bearer lsk-YOUR_KEY" \
-H "Content-Type: application/json" -d '{"file": "f_0123456789abcdef01234567"}'
local_video_upscale
v1.0.0Upscale a low-resolution video 2x or 4x (up to 4K) with Real-ESRGAN on Lemura's own GPU server, keeping the audio (queued; the result arrives in Lemura Studio with a notification and SMS). model: real = real-world footage, anime = anime/cartoon/animation, detail = maximum detail for short clips (max 2 minutes).
Parameters, example and limits
| Parameter | Type | Required | Description |
|---|---|---|---|
| file | string | File id: f_xxx (uploaded/generated file) or att_N (chat attachment) File | |
| scale | integer 2 | 4 |
Upscale factor 2 or 4 | |
| model | string real | anime | detail |
real (default), anime or detail |
curl -X POST https://lemura.ir/public/v1/tools/local_video_upscale -H "Authorization: Bearer lsk-YOUR_KEY" \
-H "Content-Type: application/json" -d '{"file": "f_0123456789abcdef01234567"}'
motion_generate
async
v1.0.0Create a professional motion-graphics video from a description: a designer model writes the animation (HTML/CSS/GSAP), Lemura renders preview frames, the model reviews them visually and fixes problems, then the final video is rendered (MP4/WebM/GIF) with a poster and the editable HTML source. Persian RTL typography by default. Optional user images (file ids), background music, and base_html (the .html file id of an earlier result) to revise a previous video. Use for intros, ads, explainers, reels/stories, data stories and kinetic typography. Queued; returns a job_id; the user is notified.
Parameters, example and limits
| Parameter | Type | Required | Description |
|---|---|---|---|
| prompt | string | What the video should show and say (story, text, style, colors, mood) | |
| seconds | number | Length in seconds (default 15) | |
| aspect | string 16:9 | 9:16 | 1:1 | 4:5 |
Aspect ratio (9:16 for stories/reels) | |
| quality | string 480p | 720p | 1080p |
Resolution (short side) | |
| format | string mp4 | webm | gif |
Output format | |
| fps | integer 24 | 25 | 30 |
Frames per second | |
| files | array | Images/logos to use in the video File | |
| music | string | File id: f_xxx (uploaded/generated file) or att_N (chat attachment) File | |
| music_volume | number | ||
| base_html | string | File id: f_xxx (uploaded/generated file) or att_N (chat attachment) File | |
| title | string | File name |
curl -X POST https://lemura.ir/public/v1/tools/motion_generate -H "Authorization: Bearer lsk-YOUR_KEY" \
-H "Content-Type: application/json" -d '{"prompt": "..."}'
motion_storyboard
v1.0.0Plan a video shot by shot before making it: from a brief, returns a storyboard (3-10 shots with seconds, what is seen, on-screen text, voice-over line, transition) and a visual theme (palette, font, style). theme_from = an earlier motion job id (job_…) or template (tpl:<id>) to continue with exactly the same look. Show the shots to the user, apply their edits, then call motion_storyboard_render.
Parameters, example and limits
| Parameter | Type | Required | Description |
|---|---|---|---|
| brief | string | What the video is about, audience, goal, key messages | |
| seconds | number | ||
| aspect | string 16:9 | 9:16 | 1:1 | 4:5 |
Aspect ratio | |
| quality | string 480p | 720p | 1080p |
Resolution | |
| voice | string none | amir | gyro |
Persian voice-over: amir / gyro, or none | |
| language | string | Language of texts / voice | |
| kind | string | promo, explainer, tutorial, reel, product launch … | |
| files | array | File | |
| theme_from | string | job_… / tpl:<id> / .html file id to continue the same visual theme |
curl -X POST https://lemura.ir/public/v1/tools/motion_storyboard -H "Authorization: Bearer lsk-YOUR_KEY" \
-H "Content-Type: application/json" -d '{"brief": "..."}'
motion_storyboard_render
async
v1.0.0Make the video of a storyboard (storyboard_id from motion_storyboard; optional edited shots / aspect / voice / theme): the voice-over is recorded per shot first so every shot starts exactly with its line, then the motion designer animates all shots in the theme and the video is rendered with the narration (and optional quiet background music).
Parameters, example and limits
| Parameter | Type | Required | Description |
|---|---|---|---|
| storyboard_id | integer | Storyboard id | |
| shots | array | Edited shots (optional) | |
| aspect | string 16:9 | 9:16 | 1:1 | 4:5 |
Aspect ratio | |
| voice | string none | amir | gyro |
Voice-over | |
| music | string | File id: f_xxx (uploaded/generated file) or att_N (chat attachment) File | |
| music_volume | number | ||
| speed | number | ||
| title | string | File name |
curl -X POST https://lemura.ir/public/v1/tools/motion_storyboard_render -H "Authorization: Bearer lsk-YOUR_KEY" \
-H "Content-Type: application/json" -d '{"storyboard_id": 1}'
motion_styled
async
v1.0.0Make a video in a ready-made style from a full brief: style = neon_editorial (dark starry, neon lime/magenta glowing line art, elegant titles, data-viz), game_ui (colorful cartoon game interface: slanted navy panels, yellow tags, ribbons, rarity cards, progress bars, stars), card_arena (glossy cartoon card-battle arena: blue vs red, wooden/stone gold frames, cards, energy bar), minimal_bold (clean light, black type, one accent, big Lalezar titles) or free (the look is taken from the brief and kept the same in every part). The brief is planned into parts of `segment` seconds (5 or 10); each part is designed in the same style with the user's images and Persian text (Vazirmatn + Lalezar), checked and rendered, and the parts are joined into one MP4 (+ optional music). aspect 16:9 or 9:16; seconds 10-60 (45 at 1080p). Queued; returns a job_id; the user is notified.
Parameters, example and limits
| Parameter | Type | Required | Description |
|---|---|---|---|
| prompt | string | The full brief: story, messages, texts, audience, mood (style details too for style=free) | |
| style | string neon_editorial | game_ui | card_arena | minimal_bold | free |
Ready-made style | |
| aspect | string 16:9 | 9:16 |
Frame: 16:9 horizontal or 9:16 vertical | |
| seconds | number | Total length in seconds (default 30) | |
| segment | integer 5 | 10 |
Length of each part in seconds | |
| quality | string 720p | 1080p |
Resolution | |
| files | array | Images/logos to use in the video File | |
| music | string | File id: f_xxx (uploaded/generated file) or att_N (chat attachment) File | |
| music_volume | number | ||
| title | string | File name |
curl -X POST https://lemura.ir/public/v1/tools/motion_styled -H "Authorization: Bearer lsk-YOUR_KEY" \
-H "Content-Type: application/json" -d '{"prompt": "..."}'
motion_template_save
v1.0.0Save one of the user's finished motion videos (job id of motion_generate / animation_html) as a reusable template; public=true also lists it in the public gallery for other users.
Parameters, example and limits
| Parameter | Type | Required | Description |
|---|---|---|---|
| job_id | string | job_… of the finished video | |
| title | string | Template name | |
| description | string | Short description | |
| public | boolean | Share in the public gallery |
curl -X POST https://lemura.ir/public/v1/tools/motion_template_save -H "Authorization: Bearer lsk-YOUR_KEY" \
-H "Content-Type: application/json" -d '{"job_id": "..."}'
motion_template_use
async
v1.0.0Render a motion-graphics video from a template: give values for its fields (texts, colors, image file ids) and/or free text describing the user's subject (Lemura fills the fields). 30% cheaper than generating; same look as the template.
Parameters, example and limits
| Parameter | Type | Required | Description |
|---|---|---|---|
| template_id | integer | Template id | |
| values | object | {field key: value} | |
| text | string | Free text with the user's information to fill the fields | |
| quality | string 480p | 720p | 1080p |
Resolution | |
| format | string mp4 | webm | gif |
Output format | |
| music | string | File id: f_xxx (uploaded/generated file) or att_N (chat attachment) File | |
| title | string | File name |
curl -X POST https://lemura.ir/public/v1/tools/motion_template_use -H "Authorization: Bearer lsk-YOUR_KEY" \
-H "Content-Type: application/json" -d '{"template_id": 1}'
motion_templates
v1.0.0List ready-made motion-graphics templates (the user's own and the public gallery) with their editable fields, aspect, length and price. A video from a template costs 30% less than generating it and needs no design step.
Parameters, example and limits
| Parameter | Type | Required | Description |
|---|---|---|---|
| scope | string all | mine | public |
Which templates | |
| query | string | Search text | |
| aspect | string 16:9 | 9:16 | 1:1 | 4:5 |
Aspect | |
| limit | integer | Max results |
curl -X POST https://lemura.ir/public/v1/tools/motion_templates -H "Authorization: Bearer lsk-YOUR_KEY" \
-H "Content-Type: application/json" -d '{}'
motion_video_edit
async
v1.0.0Edit a talking-head / tutorial / product video like a pro editor: the speech is transcribed with word timestamps, a vision model watches snapshots and picks the key moments (mode=highlights, target_seconds) or keeps the whole video (mode=enhance), crops to the chosen frame (aspect 9:16 for reels/stories) around the subject, and a designer model adds motion graphics timed to the speech — hook title, lower-thirds, callout boxes and arrows pointing at what is on screen, animated numbers, keyword pops, chapter cards, CTA — plus word-by-word captions (Persian RTL, Vazirmatn) and optional ducked background music and logo. It checks composited preview frames and fixes the graphics, then renders MP4 + poster + SRT + the editable graphics layer. Input up to 15 min; output up to 4 min at 720p / 2 min at 1080p. Queued; returns a job_id.
Parameters, example and limits
| Parameter | Type | Required | Description |
|---|---|---|---|
| file | string | File id: f_xxx (uploaded/generated file) or att_N (chat attachment) File | |
| prompt | string | What the edit should achieve, style, things to highlight or remove | |
| mode | string enhance | highlights |
enhance = keep the whole video and add captions/graphics; highlights = cut to the best moments | |
| target_seconds | number | Highlights length (default 45) | |
| aspect | string keep | 16:9 | 9:16 | 1:1 | 4:5 |
Output frame (keep = like the source) | |
| quality | string 720p | 1080p |
Resolution | |
| captions | boolean | Word-by-word captions | |
| caption_style | string karaoke | clean | bold |
Caption look | |
| caption_position | string bottom | middle | top |
Caption position | |
| language | string | Speech language (auto, fa, en, ar, …) | |
| music | string | File id: f_xxx (uploaded/generated file) or att_N (chat attachment) File | |
| music_volume | number | ||
| logo | string | File id: f_xxx (uploaded/generated file) or att_N (chat attachment) File | |
| cta | string | Call to action at the end | |
| accent | string | Accent color (CSS) | |
| title | string | File name |
curl -X POST https://lemura.ir/public/v1/tools/motion_video_edit -H "Authorization: Bearer lsk-YOUR_KEY" \
-H "Content-Type: application/json" -d '{"file": "f_0123456789abcdef01234567"}'
Visualization & data
chart_generate
v1.0.0Create a chart (bar, line, pie, scatter, area, histogram, heatmap, funnel) as PNG/SVG image or interactive HTML with Persian font support.
Parameters, example and limits
| Parameter | Type | Required | Description |
|---|---|---|---|
| type | string bar | line | pie | scatter | area | histogram | heatmap | funnel |
Chart type | |
| title | string | Title | |
| data | object | ||
| x_title | string | X axis title | |
| y_title | string | Y axis title | |
| format | string png | svg | html |
Output | |
| width | integer | px | |
| height | integer | px | |
| theme | string dark | light |
Theme |
curl -X POST https://lemura.ir/public/v1/tools/chart_generate -H "Authorization: Bearer lsk-YOUR_KEY" \
-H "Content-Type: application/json" -d '{"data": {"series": [{"values": ["..."]}]}, "type": "bar"}'
fake_data
v1.0.0Generate realistic fake datasets (Persian or English locales) for testing: people, contacts, addresses, companies, dates, numbers, text.
Parameters, example and limits
| Parameter | Type | Required | Description |
|---|---|---|---|
| locale | string fa_IR | en_US | de_DE | ar_SA | tr_TR |
Locale | |
| rows | integer | Row count | |
| fields | array | faker providers: name, email, phone_number, address, company, job, date, city, text, iban, credit_card_number, uuid4, random_int, ... | |
| format | string json | csv | xlsx |
Output |
curl -X POST https://lemura.ir/public/v1/tools/fake_data -H "Authorization: Bearer lsk-YOUR_KEY" \
-H "Content-Type: application/json" -d '{"fields": ["..."]}'
Web
browser_render
async
v1.0.0Open a public web page in a real headless Chromium (JavaScript-heavy sites) and return its rendered text, HTML, a screenshot or a PDF.
Parameters, example and limits
| Parameter | Type | Required | Description |
|---|---|---|---|
| url | string | Public https URL | |
| action | string text | html | screenshot | pdf |
What to return | |
| full_page | boolean | Full-page screenshot | |
| wait_ms | integer | Extra wait after load | |
| selector | string | Optional CSS selector to wait for / extract | |
| width | integer | Viewport width |
curl -X POST https://lemura.ir/public/v1/tools/browser_render -H "Authorization: Bearer lsk-YOUR_KEY" \
-H "Content-Type: application/json" -d '{"url": "..."}'
web_scrape
v1.0.0Fetch a public web page over a safe proxy and extract text, links, tables, metadata or CSS-selector fields (httpx + BeautifulSoup).
Parameters, example and limits
| Parameter | Type | Required | Description |
|---|---|---|---|
| url | string | Public https URL | |
| extract | string text | links | tables | meta | all |
What to extract | |
| selectors | object | name -> CSS selector | |
| max_chars | integer | Max characters |
curl -X POST https://lemura.ir/public/v1/tools/web_scrape -H "Authorization: Bearer lsk-YOUR_KEY" \
-H "Content-Type: application/json" -d '{"url": "..."}'
Task management & notification API
GET https://lemura.ir/public/v1/tasks # list
POST https://lemura.ir/public/v1/tasks # {"name","tool_id","payload","trigger":{"type":"cron","expr":"0 8 * * *"},"post_action":{"channels":["email"]}}
POST https://lemura.ir/public/v1/tasks/<id>/approve # confirm the exact payload + schedule
POST https://lemura.ir/public/v1/tasks/<id>/run | pause | activate
DELETE https://lemura.ir/public/v1/tasks/<id>
POST https://lemura.ir/public/v1/notifications # {"title","body","channels":["inapp","push","email","sms"]}