وبسرویس ابزارهای لمورا
همهٔ ابزارهایی که هوش مصنوعی لمورا در چت استفاده میکند — ساخت پاورپوینت، Word، Excel و PDF، OCR، تبدیل صوت، حذف پسزمینه، نمودار، دادههای بازار و... — بهصورت API مستقیم هم در دسترس است. پردازش کامل روی سرورهای لمورا انجام میشود و هزینهٔ هر فراخوانی از کیف پول صاحب کلید کسر میشود.
Authorization: Bearer lsk-…
https://lemura.ir/wp-json/lemuraai/v1
https://lemura.ir/anthropic
https://lemura.ir/public/v1
یک کلید و یک کیف پول برای همه: هزینهٔ هر فراخوانی (مدلها، ابزارها، ویدیو) از کیف پول صاحب کلید کسر و در گزارش مصرف ثبت میشود. قواعد درخواست، متدها، موجودی و کدهای خطا در هر دو وبسرویس یکسان است.
شروع سریع
آدرس پایه: https://lemura.ir/public/v1 — احراز هویت با هدر Authorization: Bearer lsk-... — قیمتها برای پلن «رایگان»
# ساخت پاورپوینت
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":["رشد ۲۰٪","۳ محصول جدید"]}]}'
# ارسال فایل (multipart): فیلد فایل همنام پارامتر ابزار است
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"]}'
# کارهای طولانی job_id برمیگردانند (HTTP 202)
curl https://lemura.ir/public/v1/jobs/job_xxx -H "Authorization: Bearer lsk-YOUR_KEY"
{ ok, data, files[], error, meta } — فایلها با لینک دانلود موقتلمورا استودیو — میزبانی لمورا
این خدمات روی سرورهای اختصاصی لمورا پردازش میشوند و ناهمگاماند: درخواست ثبت و در صف قرار میگیرد (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 | ورودی | پارامترها | قیمت |
|---|---|---|---|---|
| ادیتور ویدیو (تدوین هوشمند) ویدیو را بدهید و بگویید چه میخواهید: هوش مصنوعی گفتار و تصویرِ هر ثانیه را میفهمد، زیرنویس افکتدار میگذارد، با فونتهای حرفهای و نوشتههای سهبعدی درخشان؛ سکوت و مکثها را حذف میکند، جاهای مهم زوم میکند، آیکونهای سهبعدی، افکت صوتی و ترنزیشن میگذارد، کیفیت تصویر را بالا میبرد و برای ریلز عمودی میکند. | video_edit | فایل (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 |
۱۸,۱۵۰ تومان / دقیقه حداقل ۱۸,۱۵۰ |
| ترجمه و زیرنویس فارسی ویدیو ویدیوی انگلیسی را بدهید؛ گفتار تشخیص داده، به فارسی ترجمه و زیرنویس فارسی روی ویدیو چسبانده میشود (بهعلاوهٔ فایل SRT). | video_subtitle | فایل (video, ≤ 120MB) | mode: hard|soft|srt |
۷,۲۶۰ تومان / دقیقه حداقل ۷,۲۶۰ |
| تولید تصویر (SDXL) تصویر واقعگرایانه و هنری با مدل SDXL روی سرور اختصاصی لمورا. | image_sdxl | — | prompt size: 1024x1024|832x1216|1216x832 count: 1|2|3|4 |
۵,۷۱۰ تومان / تصویر حداقل ۵,۷۱۰ |
| تصویرسازی انیمه تصویرسازی به سبک انیمه و کارتون با مدل اختصاصی Illustrious. | image_anime | — | prompt size: 1024x1024|832x1216|1216x832 count: 1|2|3|4 |
۵,۷۱۰ تومان / تصویر حداقل ۵,۷۱۰ |
| ویرایش تصویر (واقعگرایانه) تصویر خودتان را بدهید و بنویسید چه تغییری کند (سبک، رنگ، فضا، نور)؛ با مدل SDXL روی سرور اختصاصی لمورا بازسازی میشود. | image_edit_sdxl | فایل (image, ≤ 15MB) | prompt strength: 0.65|0.45|0.85 count: 1|2 |
۷,۵۸۶ تومان / تصویر حداقل ۷,۵۸۶ |
| تبدیل تصویر به سبک انیمه تصویر خودتان را به سبک انیمه و کارتون درمیآورد (مدل Illustrious روی سرور اختصاصی لمورا). | image_edit_anime | فایل (image, ≤ 15MB) | prompt strength: 0.65|0.45|0.85 count: 1|2 |
۷,۵۸۶ تومان / تصویر حداقل ۷,۵۸۶ |
| جداسازی صدای خواننده و موسیقی آهنگ را بدهید؛ صدای خواننده، موسیقی بیکلام، درامز و بیس جدا تحویل داده میشود. | audio_stems | فایل (audio, ≤ 60MB) | ۷,۲۶۰ تومان / آهنگ حداقل ۳,۶۳۰ | |
| تبدیل صوت و ویدیوی طولانی به متن پادکست، جلسه، کلاس یا پیام صوتی (فارسی یا انگلیسی) را به متن و زیرنویس SRT تبدیل میکند. | speech_to_text | فایل (media, ≤ 120MB) | lang: fa|en|auto |
۳,۶۳۰ تومان / دقیقه حداقل ۱,۸۱۵ |
| ساخت موسیقی سبک و حالوهوای موسیقی را بنویسید (مثلاً «موسیقی حماسی برای تیزر»)؛ یک قطعهٔ استریو بیکلام ساخته میشود. | music_gen | — | prompt seconds: 10|20|30 |
۱۰,۸۹۰ تومان / ۱۰ ثانیه حداقل ۳,۰۲۵ |
| روتوش، متن و افزایش کیفیت تصویر روی عکس خودتان (مثلاً کاور یوتیوب) با فونتهای زیبای فارسی و انگلیسی — وزیر، لالهزار، استعداد، ساحل یا سایبرپانک — متن بنویسید، تصویر را روتوش کنید و کیفیتش را با هوش مصنوعی Real-ESRGAN دو یا چهار برابر کنید؛ روی سرور گرافیکی لمورا. | image_design | فایل (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 |
۱,۴۵۲ تومان / تصویر حداقل ۱,۴۵۲ |
| افزایش کیفیت ویدیو (سوپررزولوشن) ویدیوی کمکیفیت را با هوش مصنوعی Real-ESRGAN روی سرور گرافیکی لمورا ۲ یا ۴ برابر (تا 4K) واضحتر و پرجزئیاتتر میکند؛ صدای اصلی حفظ میشود. | video_upscale | فایل (video, ≤ 100MB) | scale: 2|4 model: real|anime|detail |
۷,۲۶۰ تومان / دقیقه حداقل ۷,۲۶۰ |
| تبدیل متن فارسی به گفتار متن فارسی را با صدای طبیعی گوینده به فایل صوتی تبدیل میکند؛ یا با یک نمونهٔ ۵ ثانیهای، با صدای خود شما (شبیهسازی صدا). | tts_fa | فایل اختیاری (audio) | text voice: amir|gyro consent: 0|1 |
۳,۶۳۰ تومان / ۵۰۰ کاراکتر حداقل ۹۶۸ |
همین خدمات بهصورت ابزار هم در دسترساند (در چت و ایجنتها، و با POST https://lemura.ir/public/v1/tools/local_<service>). خروجی همه در «لمورا استودیو» حساب کاربری هم دیده میشود.
قواعد مشترک هر دو وبسرویس
احراز هویت
هر دو وبسرویس با یک کلید کار میکنند. کلید را در صفحهٔ «کلیدها و آمار» بسازید و در هدر هر درخواست بفرستید:
Authorization: Bearer lsk-YOUR_KEY
نحوهٔ درخواست
- بدنهٔ درخواستها JSON است با هدر
Content-Type: application/json. - ارسال فایل با
multipart/form-data(فیلد فایل؛ در ابزارها همنام پارامتر و آرگومانهای دیگر در فیلد args بهصورت JSON). - پاسخها همیشه JSON با کدگذاری UTF-8 است؛ مبالغ به تومان است.
- کارهای طولانی (ویدیو، OCR، تبدیل صوت و...) ناهمگام هستند: شناسهٔ کار برمیگردد و وضعیت را بعداً میپرسید.
متدها
| متد | کاربرد |
|---|---|
| GET | خواندن: فهرست مدلها/ابزارها، موجودی، وضعیت کار، دریافت فایل |
| POST | اجرا: چت، تولید تصویر/ویدیو، فراخوانی ابزار، آپلود فایل، ساخت وظیفه |
| DELETE | حذف: فایل، ویدیو، وظیفه |
موجودی کیف پول و اطلاعات حساب
موجودی و اطلاعات حساب از هر دو وبسرویس با پاسخ یکسان در دسترس است:
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", ...}
کدهای خطا
| HTTP | معنی |
|---|---|
| 400 | ورودی نامعتبر |
| 401 | کلید ارسال نشده یا نامعتبر است |
| 402 | موجودی کیف پول کافی نیست |
| 403 | دسترسی به این مدل/ابزار مجاز نیست |
| 404 | مدل، ابزار یا کار پیدا نشد |
| 409 / 428 | کار هنوز آماده نیست / عملیات تغییردهنده نیاز به هدر X-Lemura-Confirm: true دارد |
| 429 | سقف درخواست پلن برای این کلید (در دقیقه یا روز) پر شده؛ متن خطا سقف پلن و نشانی ارتقا را میگوید (هدرهای X-RateLimit-* و Retry-After) |
| 5xx | خطای موقت سرور یا سرویس بالادستی — چند ثانیه بعد دوباره تلاش کنید |
صوت
audio_denoise
async
v1.0.0Reduce background noise in an audio file (noisereduce spectral gating); outputs WAV/MP3.
پارامترها، نمونه و محدودیتها
| پارامتر | نوع | الزامی | توضیح |
|---|---|---|---|
| file | string | File id: f_xxx (uploaded/generated file) or att_N (chat attachment) فایل | |
| 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.
پارامترها، نمونه و محدودیتها
| پارامتر | نوع | الزامی | توضیح |
|---|---|---|---|
| file | string | File id: f_xxx (uploaded/generated file) or att_N (chat attachment) فایل | |
| 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) فایل | |
| 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).
پارامترها، نمونه و محدودیتها
| پارامتر | نوع | الزامی | توضیح |
|---|---|---|---|
| file | string | File id: f_xxx (uploaded/generated file) or att_N (chat attachment) فایل |
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).
پارامترها، نمونه و محدودیتها
| پارامتر | نوع | الزامی | توضیح |
|---|---|---|---|
| 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).
پارامترها، نمونه و محدودیتها
| پارامتر | نوع | الزامی | توضیح |
|---|---|---|---|
| file | string | File id: f_xxx (uploaded/generated file) or att_N (chat attachment) فایل | |
| 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).
پارامترها، نمونه و محدودیتها
| پارامتر | نوع | الزامی | توضیح |
|---|---|---|---|
| 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) فایل | |
| 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.
پارامترها، نمونه و محدودیتها
| پارامتر | نوع | الزامی | توضیح |
|---|---|---|---|
| file | string | File id: f_xxx (uploaded/generated file) or att_N (chat attachment) فایل | |
| 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).
پارامترها، نمونه و محدودیتها
| پارامتر | نوع | الزامی | توضیح |
|---|---|---|---|
| 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_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.
پارامترها، نمونه و محدودیتها
| پارامتر | نوع | الزامی | توضیح |
|---|---|---|---|
| code | string | Python code | |
| files | array | فایل |
curl -X POST https://lemura.ir/public/v1/tools/code_interpreter -H "Authorization: Bearer lsk-YOUR_KEY" \
-H "Content-Type: application/json" -d '{"code": "..."}'
تولید اسناد
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.
پارامترها، نمونه و محدودیتها
| پارامتر | نوع | الزامی | توضیح |
|---|---|---|---|
| file | string | File id: f_xxx (uploaded/generated file) or att_N (chat attachment) فایل | |
| 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.
پارامترها، نمونه و محدودیتها
| پارامتر | نوع | الزامی | توضیح |
|---|---|---|---|
| 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) فایل | |
| 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.
پارامترها، نمونه و محدودیتها
| پارامتر | نوع | الزامی | توضیح |
|---|---|---|---|
| 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.
پارامترها، نمونه و محدودیتها
| پارامتر | نوع | الزامی | توضیح |
|---|---|---|---|
| action | string merge | split | extract_pages | rotate | watermark | to_images | images_to_pdf | compress | metadata |
Operation | |
| files | array | فایل | |
| 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.
پارامترها، نمونه و محدودیتها
| پارامتر | نوع | الزامی | توضیح |
|---|---|---|---|
| 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.
پارامترها، نمونه و محدودیتها
| پارامتر | نوع | الزامی | توضیح |
|---|---|---|---|
| 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) فایل |
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.
پارامترها، نمونه و محدودیتها
| پارامتر | نوع | الزامی | توضیح |
|---|---|---|---|
| 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": ["..."]}]}'
مالی
crypto_market
v1.0.0Live crypto market data from major exchanges (ccxt): ticker, OHLCV candles, order book, markets; optional technical indicators and candlestick chart.
پارامترها، نمونه و محدودیتها
| پارامتر | نوع | الزامی | توضیح |
|---|---|---|---|
| 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.
پارامترها، نمونه و محدودیتها
| پارامتر | نوع | الزامی | توضیح |
|---|---|---|---|
| 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_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.
پارامترها، نمونه و محدودیتها
| پارامتر | نوع | الزامی | توضیح |
|---|---|---|---|
| file | string | File id: f_xxx (uploaded/generated file) or att_N (chat attachment) فایل | |
| 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).
پارامترها، نمونه و محدودیتها
| پارامتر | نوع | الزامی | توضیح |
|---|---|---|---|
| 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.
پارامترها، نمونه و محدودیتها
| پارامتر | نوع | الزامی | توضیح |
|---|---|---|---|
| file | string | File id: f_xxx (uploaded/generated file) or att_N (chat attachment) فایل | |
| 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.
پارامترها، نمونه و محدودیتها
| پارامتر | نوع | الزامی | توضیح |
|---|---|---|---|
| file | string | File id: f_xxx (uploaded/generated file) or att_N (chat attachment) فایل | |
| 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).
پارامترها، نمونه و محدودیتها
| پارامتر | نوع | الزامی | توضیح |
|---|---|---|---|
| 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.
پارامترها، نمونه و محدودیتها
| پارامتر | نوع | الزامی | توضیح |
|---|---|---|---|
| file | string | File id: f_xxx (uploaded/generated file) or att_N (chat attachment) فایل | |
| 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"}'
پردازش زبان
nlp_analyze
v1.0.0Detect language (fastText, 176 languages) and extract named entities, sentences and noun phrases (spaCy).
پارامترها، نمونه و محدودیتها
| پارامتر | نوع | الزامی | توضیح |
|---|---|---|---|
| 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.
پارامترها، نمونه و محدودیتها
| پارامتر | نوع | الزامی | توضیح |
|---|---|---|---|
| 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).
پارامترها، نمونه و محدودیتها
| پارامتر | نوع | الزامی | توضیح |
|---|---|---|---|
| text | string | Text | |
| file | string | File id: f_xxx (uploaded/generated file) or att_N (chat attachment) فایل | |
| 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 '{}'
پردازش فایل
archive_tools
v1.0.0List, extract or create ZIP / 7z archives (optionally password-protected).
پارامترها، نمونه و محدودیتها
| پارامتر | نوع | الزامی | توضیح |
|---|---|---|---|
| action | string list | extract | create |
Operation | |
| file | string | File id: f_xxx (uploaded/generated file) or att_N (chat attachment) فایل | |
| files | array | فایل | |
| 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).
پارامترها، نمونه و محدودیتها
| پارامتر | نوع | الزامی | توضیح |
|---|---|---|---|
| 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) فایل | |
| 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).
پارامترها، نمونه و محدودیتها
| پارامتر | نوع | الزامی | توضیح |
|---|---|---|---|
| file | string | File id: f_xxx (uploaded/generated file) or att_N (chat attachment) فایل | |
| 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.
پارامترها، نمونه و محدودیتها
| پارامتر | نوع | الزامی | توضیح |
|---|---|---|---|
| file | string | File id: f_xxx (uploaded/generated file) or att_N (chat attachment) فایل | |
| 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"}'
پایگاه دانش (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.
پارامترها، نمونه و محدودیتها
| پارامتر | نوع | الزامی | توضیح |
|---|---|---|---|
| collection | string | Knowledge base name | |
| files | array | فایل | |
| 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).
پارامترها، نمونه و محدودیتها
| پارامتر | نوع | الزامی | توضیح |
|---|---|---|---|
| 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": "..."}'
شبکههای اجتماعی
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.
پارامترها، نمونه و محدودیتها
| پارامتر | نوع | الزامی | توضیح |
|---|---|---|---|
| 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).
پارامترها، نمونه و محدودیتها
| پارامتر | نوع | الزامی | توضیح |
|---|---|---|---|
| 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).
پارامترها، نمونه و محدودیتها
| پارامتر | نوع | الزامی | توضیح |
|---|---|---|---|
| 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.
پارامترها، نمونه و محدودیتها
| پارامتر | نوع | الزامی | توضیح |
|---|---|---|---|
| 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.
پارامترها، نمونه و محدودیتها
| پارامتر | نوع | الزامی | توضیح |
|---|---|---|---|
| file | string | File id: f_xxx (uploaded/generated file) or att_N (chat attachment) فایل | |
| 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.
پارامترها، نمونه و محدودیتها
| پارامتر | نوع | الزامی | توضیح |
|---|---|---|---|
| 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 '{}'
ویدیو و انیمیشن
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.
پارامترها، نمونه و محدودیتها
| پارامتر | نوع | الزامی | توضیح |
|---|---|---|---|
| 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) فایل | |
| music | string | File id: f_xxx (uploaded/generated file) or att_N (chat attachment) فایل | |
| 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.
پارامترها، نمونه و محدودیتها
| پارامتر | نوع | الزامی | توضیح |
|---|---|---|---|
| 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) فایل | |
| music | string | File id: f_xxx (uploaded/generated file) or att_N (chat attachment) فایل | |
| 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.
پارامترها، نمونه و محدودیتها
| پارامتر | نوع | الزامی | توضیح |
|---|---|---|---|
| file | string | File id: f_xxx (uploaded/generated file) or att_N (chat attachment) فایل | |
| 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.
پارامترها، نمونه و محدودیتها
| پارامتر | نوع | الزامی | توضیح |
|---|---|---|---|
| file | string | File id: f_xxx (uploaded/generated file) or att_N (chat attachment) فایل | |
| 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).
پارامترها، نمونه و محدودیتها
| پارامتر | نوع | الزامی | توضیح |
|---|---|---|---|
| file | string | File id: f_xxx (uploaded/generated file) or att_N (chat attachment) فایل | |
| 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.
پارامترها، نمونه و محدودیتها
| پارامتر | نوع | الزامی | توضیح |
|---|---|---|---|
| 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 فایل | |
| music | string | File id: f_xxx (uploaded/generated file) or att_N (chat attachment) فایل | |
| music_volume | number | ||
| base_html | string | File id: f_xxx (uploaded/generated file) or att_N (chat attachment) فایل | |
| 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.
پارامترها، نمونه و محدودیتها
| پارامتر | نوع | الزامی | توضیح |
|---|---|---|---|
| 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 | فایل | |
| 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).
پارامترها، نمونه و محدودیتها
| پارامتر | نوع | الزامی | توضیح |
|---|---|---|---|
| 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) فایل | |
| 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.
پارامترها، نمونه و محدودیتها
| پارامتر | نوع | الزامی | توضیح |
|---|---|---|---|
| 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 فایل | |
| music | string | File id: f_xxx (uploaded/generated file) or att_N (chat attachment) فایل | |
| 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.
پارامترها، نمونه و محدودیتها
| پارامتر | نوع | الزامی | توضیح |
|---|---|---|---|
| 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.
پارامترها، نمونه و محدودیتها
| پارامتر | نوع | الزامی | توضیح |
|---|---|---|---|
| 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) فایل | |
| 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.
پارامترها، نمونه و محدودیتها
| پارامتر | نوع | الزامی | توضیح |
|---|---|---|---|
| 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.
پارامترها، نمونه و محدودیتها
| پارامتر | نوع | الزامی | توضیح |
|---|---|---|---|
| file | string | File id: f_xxx (uploaded/generated file) or att_N (chat attachment) فایل | |
| 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) فایل | |
| music_volume | number | ||
| logo | string | File id: f_xxx (uploaded/generated file) or att_N (chat attachment) فایل | |
| 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"}'
مصورسازی و داده
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.
پارامترها، نمونه و محدودیتها
| پارامتر | نوع | الزامی | توضیح |
|---|---|---|---|
| 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.
پارامترها، نمونه و محدودیتها
| پارامتر | نوع | الزامی | توضیح |
|---|---|---|---|
| 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": ["..."]}'
وب
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.
پارامترها، نمونه و محدودیتها
| پارامتر | نوع | الزامی | توضیح |
|---|---|---|---|
| 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).
پارامترها، نمونه و محدودیتها
| پارامتر | نوع | الزامی | توضیح |
|---|---|---|---|
| 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": "..."}'
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"]}