Tools web service FA

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.

All systems operational آپ‌تایم وب‌سرویس ۳۰ روز: ۹۹.۹۷٪ موفقیت درخواست‌های واقعی: ۹۹.۶۹٪ Quality ۸ مدل آزموده: ۹۸٪ جزئیات وضعیت سرویس
Authentication (for both web services) Authorization: Bearer lsk-…
AI web service (OpenAI-compatible) https://lemura.ir/wp-json/lemuraai/v1
سازگار با Anthropic و Claude Code https://lemura.ir/anthropic
Tools web service https://lemura.ir/public/v1
Wallet balance

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"
One output shape
{ ok, data, files[], error, meta } — files as temporary download links
Cost
base + compute weight × actual compute units; exact amount in meta.cost
Errors
400 input · 401 Key · 402 Balance · 403 access · 428 confirmation · 429 limit

لمورا استودیو — میزبانی لمورا

این خدمات روی سرورهای اختصاصی لمورا پردازش می‌شوند و ناهمگام‌اند: درخواست ثبت و در صف قرار می‌گیرد (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"
خدمتserviceinputپارامترهاقیمت
ادیتور ویدیو (تدوین هوشمند)
ویدیو را بدهید و بگویید چه می‌خواهید: هوش مصنوعی گفتار و تصویرِ هر ثانیه را می‌فهمد، زیرنویس افکت‌دار می‌گذارد، با فونت‌های حرفه‌ای و نوشته‌های سه‌بعدی درخشان؛ سکوت و مکث‌ها را حذف می‌کند، جاهای مهم زوم می‌کند، آیکون‌های سه‌بعدی، افکت صوتی و ترنزیشن می‌گذارد، کیفیت تصویر را بالا می‌برد و برای ریلز عمودی می‌کند.
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

MethodUse
GETRead: list models/tools, balance, job status, download files
POSTRun: chat, image/video generation, tool calls, file upload, create schedules
DELETEDelete: 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

HTTPMeaning
400Invalid input
401Key missing or invalid
402Insufficient wallet balance
403Access to this model/tool is not allowed
404Model, tool or job not found
409 / 428Job not ready yet / mutating operations need the X-Lemura-Confirm: true header
429سقف درخواست پلن برای این کلید (در دقیقه یا روز) پر شده؛ متن خطا سقف پلن و نشانی ارتقا را می‌گوید (هدرهای X-RateLimit-* و Retry-After)
5xxTemporary server or upstream error — retry in a few seconds

Audio

Audio noise reduction audio_denoise async v1.0.0
~315 Toman / call

Reduce background noise in an audio file (noisereduce spectral gating); outputs WAV/MP3.

POST https://lemura.ir/public/v1/tools/audio_denoise
Parameters, example and limits
ParameterTypeRequiredDescription
filestring File id: f_xxx (uploaded/generated file) or att_N (chat attachment) File
strengthnumber 0.1–1.0
stationaryboolean Stationary noise (hum, fan)
formatstring
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"}'
Max run time: 300s · Max input file size: 25MB · Pricing: base 200.0 + compute weight 15.0 × compute unit × 1.21
Audiobook & podcast from a book book_audio async v1.0.1
~3,025 Toman / call

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

POST https://lemura.ir/public/v1/tools/book_audio
Parameters, example and limits
ParameterTypeRequiredDescription
filestring File id: f_xxx (uploaded/generated file) or att_N (chat attachment) File
textstring Text instead of a file
modestring
audiobook | podcast
audiobook or podcast
chaptersstring Sections to use, e.g. 1-3,5
partinteger Part number for long audiobooks
voicestring
amir | gyro
Audiobook voice
speednumber
minutesinteger Podcast length in minutes (3-20)
stylestring Podcast style
promptstring What the podcast should focus on
hostsarray
musicstring File id: f_xxx (uploaded/generated file) or att_N (chat attachment) File
music_volumenumber
qualitystring
economy | balanced | best
Model tier for the script
titlestring 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 '{}'
Max run time: 900s · Max input file size: 25MB · Pricing: base 1500.0 + compute weight 2.0 × compute unit × 1.21
Vocal / music separation (Lemura-hosted) local_audio_stems v1.0.0
~0 Toman / call

Split a song into vocals, instrumental, drums and bass on Lemura's own GPU server (queued).

POST https://lemura.ir/public/v1/tools/local_audio_stems
Parameters, example and limits
ParameterTypeRequiredDescription
filestring 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"}'
Max run time: 120s · Max input file size: 25MB · Pricing: base 0.0 + compute weight 0.0 × compute unit × 1.21
Music generation (Lemura-hosted) local_music_gen v1.0.0
~0 Toman / call

Compose an instrumental stereo music clip (10-30 s) from a description on Lemura's own GPU server (queued).

POST https://lemura.ir/public/v1/tools/local_music_gen
Parameters, example and limits
ParameterTypeRequiredDescription
promptstring Style and mood, e.g. 'epic orchestral trailer music'
secondsinteger
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": "..."}'
Max run time: 60s · Max input file size: 25MB · Pricing: base 0.0 + compute weight 0.0 × compute unit × 1.21
Long audio/video to text (Lemura-hosted) local_speech_to_text v1.0.0
~0 Toman / call

Transcribe a long Persian or English recording (podcast, meeting, class) to text + SRT on Lemura's own GPU server (queued).

POST https://lemura.ir/public/v1/tools/local_speech_to_text
Parameters, example and limits
ParameterTypeRequiredDescription
filestring File id: f_xxx (uploaded/generated file) or att_N (chat attachment) File
langstring
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"}'
Max run time: 120s · Max input file size: 25MB · Pricing: base 0.0 + compute weight 0.0 × compute unit × 1.21
Persian text to speech (Lemura-hosted) local_tts_fa v1.1.0
~0 Toman / call

Read 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).

POST https://lemura.ir/public/v1/tools/local_tts_fa
Parameters, example and limits
ParameterTypeRequiredDescription
textstring Persian text (max 4000 characters)
voicestring
amir | gyro
Voice
voice_samplestring File id: f_xxx (uploaded/generated file) or att_N (chat attachment) File
consentstring
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": "..."}'
Max run time: 60s · Max input file size: 25MB · Pricing: base 0.0 + compute weight 0.0 × compute unit × 1.21
Speech to text (Whisper) speech_to_text async v1.0.0
~968 Toman / call

Transcribe audio/video files to text with faster-whisper (Persian, English and 90+ languages), optional timestamps and SRT subtitles.

POST https://lemura.ir/public/v1/tools/speech_to_text
Parameters, example and limits
ParameterTypeRequiredDescription
filestring File id: f_xxx (uploaded/generated file) or att_N (chat attachment) File
languagestring
auto | fa | en | ar | tr | de | fr
Language code or auto
timestampsboolean Include segment timestamps
srtboolean Also produce an .srt subtitle file
translateboolean 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"}'
Max run time: 900s · Max input file size: 25MB · Pricing: base 500.0 + compute weight 15.0 × compute unit × 1.21
Text to speech (edge-tts) text_to_speech v1.0.0
~194 Toman / call

Convert text to natural speech (MP3) with neural voices (Persian: Dilara/Farid, English and many more).

POST https://lemura.ir/public/v1/tools/text_to_speech
Parameters, example and limits
ParameterTypeRequiredDescription
textstring Text to speak (max 5000 chars)
voicestring
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
ratestring Speed like +10% or -20%
pitchstring 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": "..."}'
Max run time: 90s · Max input file size: 25MB · Pricing: base 150.0 + compute weight 10.0 × compute unit × 1.21

Code

Python code interpreter code_interpreter v1.0.0
~140 Toman / call

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

POST https://lemura.ir/public/v1/tools/code_interpreter
Parameters, example and limits
ParameterTypeRequiredDescription
codestring Python code
filesarray 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": "..."}'
Max run time: 60s · Max input file size: 25MB · Pricing: base 100.0 + compute weight 15.0 × compute unit × 1.21

Documents

Book translation book_translate async v1.0.1
~2,566 Toman / call

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

POST https://lemura.ir/public/v1/tools/book_translate
Parameters, example and limits
ParameterTypeRequiredDescription
filestring File id: f_xxx (uploaded/generated file) or att_N (chat attachment) File
target_langstring
fa | en | ar | tr | de | fr | es | ru | zh | ja | ko | it | ur | hi
Target language
stylestring
fluent | faithful | simple
Translation style
qualitystring
gpu | economy | balanced | best
gpu = economy (slower, 30% cheaper); economy / balanced / best = advanced cloud tiers
glossarystring Your own fixed translations, one per line: term = ترجمه
formatsarray
authorstring Author name for the title page
modelstring 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"}'
Max run time: 900s · Max input file size: 25MB · Pricing: base 2000.0 + compute weight 2.0 × compute unit × 1.21
Word document generator docx_generate v1.0.0
~327 Toman / call

Create a Word (.docx) document from content blocks (headings, paragraphs, lists, tables, images), or fill a .docx template (docxtpl) with a context.

POST https://lemura.ir/public/v1/tools/docx_generate
Parameters, example and limits
ParameterTypeRequiredDescription
titlestring Document title
rtlboolean Right-to-left (Persian)
blocksarray
templatestring File id: f_xxx (uploaded/generated file) or att_N (chat attachment) File
contextobject Template variables for docxtpl
filenamestring 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 '{}'
Max run time: 60s · Max input file size: 25MB · Pricing: base 250.0 + compute weight 20.0 × compute unit × 1.21
PDF generator pdf_generate v1.0.0
~327 Toman / call

Render HTML or Markdown into a high-quality PDF (WeasyPrint) with full Persian/RTL support and the Vazirmatn font.

POST https://lemura.ir/public/v1/tools/pdf_generate
Parameters, example and limits
ParameterTypeRequiredDescription
htmlstring HTML body
markdownstring Markdown text (used if html is empty)
titlestring Document title
rtlboolean Right-to-left
page_sizestring
A4 | A5 | Letter | A3
Page size
landscapeboolean Landscape orientation
cssstring Extra CSS
filenamestring 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 '{}'
Max run time: 90s · Max input file size: 25MB · Pricing: base 250.0 + compute weight 20.0 × compute unit × 1.21
PDF toolkit pdf_tools v1.0.0
~200 Toman / call

Manipulate PDFs: merge, split, extract pages, rotate, add text watermark, convert pages to images, images to PDF, compress, read metadata.

POST https://lemura.ir/public/v1/tools/pdf_tools
Parameters, example and limits
ParameterTypeRequiredDescription
actionstring
merge | split | extract_pages | rotate | watermark | to_images | images_to_pdf | compress | metadata
Operation
filesarray File
pagesstring Page ranges like 1-3,5
angleinteger
90 | 180 | 270
Rotation angle
textstring Watermark text
dpiinteger 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"]}'
Max run time: 120s · Max input file size: 25MB · Pricing: base 150.0 + compute weight 15.0 × compute unit × 1.21
PowerPoint generator pptx_generate v1.0.0
~388 Toman / call

Create a PowerPoint (.pptx) presentation from structured slides. Supports Persian/RTL text, themes, notes and images.

POST https://lemura.ir/public/v1/tools/pptx_generate
Parameters, example and limits
ParameterTypeRequiredDescription
titlestring Presentation title
subtitlestring Subtitle
themestring
purple | dark | light | blue | green
Theme
rtlboolean Right-to-left (Persian) layout
slidesarray
filenamestring 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": "..."}'
Max run time: 60s · Max input file size: 25MB · Pricing: base 300.0 + compute weight 20.0 × compute unit × 1.21
QR code generator qrcode_generate v1.0.0
~43 Toman / call

Generate a QR code image (PNG or SVG) for a URL, text, Wi-Fi config or contact card, with custom colors and optional center logo.

POST https://lemura.ir/public/v1/tools/qrcode_generate
Parameters, example and limits
ParameterTypeRequiredDescription
datastring Content to encode
sizeinteger Box size in px
fill_colorstring Foreground color
back_colorstring Background color
formatstring
png | svg
Output format
logostring 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": "..."}'
Max run time: 20s · Max input file size: 25MB · Pricing: base 30.0 + compute weight 5.0 × compute unit × 1.21
Excel workbook generator xlsx_generate v1.0.0
~267 Toman / call

Create an Excel (.xlsx) workbook with one or more sheets, formulas, styled headers, auto-filter and optional native charts.

POST https://lemura.ir/public/v1/tools/xlsx_generate
Parameters, example and limits
ParameterTypeRequiredDescription
sheetsarray
rtlboolean Right-to-left sheets
filenamestring 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": ["..."]}]}'
Max run time: 60s · Max input file size: 25MB · Pricing: base 200.0 + compute weight 20.0 × compute unit × 1.21

Finance

Crypto market data (ccxt) crypto_market v1.0.0
~79 Toman / call

Live crypto market data from major exchanges (ccxt): ticker, OHLCV candles, order book, markets; optional technical indicators and candlestick chart.

POST https://lemura.ir/public/v1/tools/crypto_market
Parameters, example and limits
ParameterTypeRequiredDescription
actionstring
ticker | ohlcv | orderbook | markets
Data
symbolstring Pair like BTC/USDT
exchangestring
binance | kucoin | okx | bybit | kraken | coinbase | bitfinex | gateio | mexc
Exchange
timeframestring
1m | 5m | 15m | 1h | 4h | 1d | 1w
Candle timeframe
limitinteger Candles
indicatorsarray
chartboolean 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"}'
Max run time: 60s · Max input file size: 25MB · Pricing: base 60.0 + compute weight 5.0 × compute unit × 1.21
Stock market & technical analysis stock_market v1.0.0
~79 Toman / call

Stock/ETF/index/forex data from Yahoo Finance (yfinance): price history, company info and technical indicators (pandas-ta) with an optional chart.

POST https://lemura.ir/public/v1/tools/stock_market
Parameters, example and limits
ParameterTypeRequiredDescription
symbolstring Ticker like AAPL, ^GSPC, EURUSD=X, GC=F
actionstring
history | info | indicators
Data
periodstring
5d | 1mo | 3mo | 6mo | 1y | 2y | 5y | max
Range
intervalstring
1h | 1d | 1wk | 1mo
Interval
indicatorsarray
chartboolean 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": "..."}'
Max run time: 60s · Max input file size: 25MB · Pricing: base 60.0 + compute weight 5.0 × compute unit × 1.21

Image

Image editor (Pillow) image_edit v1.0.0
~83 Toman / call

Edit images with a pipeline of operations: resize, crop, rotate, flip, grayscale, blur, sharpen, brightness, contrast, text watermark, format conversion, compression, thumbnail.

POST https://lemura.ir/public/v1/tools/image_edit
Parameters, example and limits
ParameterTypeRequiredDescription
filestring File id: f_xxx (uploaded/generated file) or att_N (chat attachment) File
opsarray
formatstring
png | jpeg | webp
Output format
qualityinteger 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"}'
Max run time: 60s · Max input file size: 25MB · Pricing: base 60.0 + compute weight 8.0 × compute unit × 1.21
Anime illustration (Lemura-hosted) local_image_anime v1.0.0
~0 Toman / call

Anime / cartoon style illustration on Lemura's own GPU server (queued; results arrive in Lemura Studio).

POST https://lemura.ir/public/v1/tools/local_image_anime
Parameters, example and limits
ParameterTypeRequiredDescription
promptstring Image description (Persian or English)
sizestring
1024x1024 | 832x1216 | 1216x832
Frame
countinteger 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": "..."}'
Max run time: 60s · Max input file size: 25MB · Pricing: base 0.0 + compute weight 0.0 × compute unit × 1.21
Photo retouch, title and upscaling (Lemura-hosted) local_image_design v1.0.0
~0 Toman / call

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

POST https://lemura.ir/public/v1/tools/local_image_design
Parameters, example and limits
ParameterTypeRequiredDescription
filestring File id: f_xxx (uploaded/generated file) or att_N (chat attachment) File
textstring Exact text to write on the picture (any language; empty = none)
fontstring
vazir | lalezar | estedad | sahel | cyberpunk | bold
Font
positionstring
bottom | top | center
Where the text goes
colorstring
white | yellow | black | purple | red | cyan
Text colour
effectstring
outline | glow | box
Text style
retouchboolean Clean up and enhance the photo
upscalestring
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"}'
Max run time: 60s · Max input file size: 25MB · Pricing: base 0.0 + compute weight 0.0 × compute unit × 1.21
Image editing on Lemura's GPU local_image_edit v1.0.0
~0 Toman / call

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

POST https://lemura.ir/public/v1/tools/local_image_edit
Parameters, example and limits
ParameterTypeRequiredDescription
filestring File id: f_xxx (uploaded/generated file) or att_N (chat attachment) File
promptstring What should change / the target look
stylestring
realistic | anime
Model
changestring
light | medium | strong
How strong the change is
countinteger 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": "..."}'
Max run time: 60s · Max input file size: 25MB · Pricing: base 0.0 + compute weight 0.0 × compute unit × 1.21
SDXL image generation (Lemura-hosted) local_image_sdxl v1.0.0
~0 Toman / call

Generate 1-4 images with SDXL on Lemura's own GPU server (queued; results arrive in Lemura Studio).

POST https://lemura.ir/public/v1/tools/local_image_sdxl
Parameters, example and limits
ParameterTypeRequiredDescription
promptstring Image description (Persian or English)
sizestring
1024x1024 | 832x1216 | 1216x832
Frame
countinteger 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": "..."}'
Max run time: 60s · Max input file size: 25MB · Pricing: base 0.0 + compute weight 0.0 × compute unit × 1.21
Background removal remove_background async v1.0.0
~400 Toman / call

Remove the background of a photo (rembg / U²-Net); optionally replace it with a solid color.

POST https://lemura.ir/public/v1/tools/remove_background
Parameters, example and limits
ParameterTypeRequiredDescription
filestring File id: f_xxx (uploaded/generated file) or att_N (chat attachment) File
bg_colorstring Optional background color, e.g. #ffffff
alpha_mattingboolean 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"}'
Max run time: 180s · Max input file size: 25MB · Pricing: base 250.0 + compute weight 20.0 × compute unit × 1.21

Language processing

Text analysis (spaCy + fastText) nlp_analyze v1.0.0
~55 Toman / call

Detect language (fastText, 176 languages) and extract named entities, sentences and noun phrases (spaCy).

POST https://lemura.ir/public/v1/tools/nlp_analyze
Parameters, example and limits
ParameterTypeRequiredDescription
textstring Text
opsarray
curl -X POST https://lemura.ir/public/v1/tools/nlp_analyze -H "Authorization: Bearer lsk-YOUR_KEY" \
  -H "Content-Type: application/json" -d '{"text": "..."}'
Max run time: 60s · Max input file size: 25MB · Pricing: base 40.0 + compute weight 5.0 × compute unit × 1.21
Persian NLP (hazm) persian_nlp v1.0.0
~55 Toman / call

Persian text processing with hazm: normalization (spacing, characters, half-space), sentence/word tokenization, stemming, lemmatization.

POST https://lemura.ir/public/v1/tools/persian_nlp
Parameters, example and limits
ParameterTypeRequiredDescription
textstring Persian text
opsarray
curl -X POST https://lemura.ir/public/v1/tools/persian_nlp -H "Authorization: Bearer lsk-YOUR_KEY" \
  -H "Content-Type: application/json" -d '{"text": "..."}'
Max run time: 60s · Max input file size: 25MB · Pricing: base 40.0 + compute weight 5.0 × compute unit × 1.21
Summarization & sentiment text_summarize v1.0.0
~92 Toman / call

Extractive summarization (sumy: LSA/LexRank/TextRank/Luhn) and multilingual sentiment analysis (transformers).

POST https://lemura.ir/public/v1/tools/text_summarize
Parameters, example and limits
ParameterTypeRequiredDescription
textstring Text
filestring File id: f_xxx (uploaded/generated file) or att_N (chat attachment) File
taskstring
summarize | sentiment | both
Task
sentencesinteger Summary sentences
methodstring
lsa | lexrank | textrank | luhn
Algorithm
languagestring
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 '{}'
Max run time: 120s · Max input file size: 25MB · Pricing: base 60.0 + compute weight 8.0 × compute unit × 1.21

File processing

Archive (zip/7z) tools archive_tools v1.0.0
~109 Toman / call

List, extract or create ZIP / 7z archives (optionally password-protected).

POST https://lemura.ir/public/v1/tools/archive_tools
Parameters, example and limits
ParameterTypeRequiredDescription
actionstring
list | extract | create
Operation
filestring File id: f_xxx (uploaded/generated file) or att_N (chat attachment) File
filesarray File
formatstring
zip | 7z
Archive format for create
passwordstring Archive password
namestring 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"}'
Max run time: 120s · Max input file size: 25MB · Pricing: base 80.0 + compute weight 10.0 × compute unit × 1.21
Main-content extraction (trafilatura) html_extract v1.0.0
~79 Toman / call

Fetch a public web page (or take raw HTML/file) and extract its main readable content as text/markdown with metadata (trafilatura).

POST https://lemura.ir/public/v1/tools/html_extract
Parameters, example and limits
ParameterTypeRequiredDescription
urlstring Public https URL
htmlstring Raw HTML instead of URL
filestring File id: f_xxx (uploaded/generated file) or att_N (chat attachment) File
outputstring
text | markdown | json
Output format
include_linksboolean 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 '{}'
Max run time: 40s · Max input file size: 25MB · Pricing: base 60.0 + compute weight 5.0 × compute unit × 1.21
OCR (image/PDF to text) ocr_image async v1.0.0
~666 Toman / call

Extract text from images or scanned PDFs with EasyOCR (Persian + English by default).

POST https://lemura.ir/public/v1/tools/ocr_image
Parameters, example and limits
ParameterTypeRequiredDescription
filestring File id: f_xxx (uploaded/generated file) or att_N (chat attachment) File
languagesarray
detailboolean Return boxes and confidence
max_pagesinteger 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"}'
Max run time: 600s · Max input file size: 25MB · Pricing: base 400.0 + compute weight 25.0 × compute unit × 1.21
PDF text & table extraction pdf_extract async v1.0.0
~218 Toman / call

Extract text and tables from a digital PDF (pdfplumber), page by page.

POST https://lemura.ir/public/v1/tools/pdf_extract
Parameters, example and limits
ParameterTypeRequiredDescription
filestring File id: f_xxx (uploaded/generated file) or att_N (chat attachment) File
pagesstring Page ranges like 1-3,5
tablesboolean Also extract tables
max_charsinteger 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"}'
Max run time: 300s · Max input file size: 25MB · Pricing: base 150.0 + compute weight 15.0 × compute unit × 1.21

Knowledge base (RAG)

Knowledge base indexing (RAG) knowledge_index async v1.0.0
~303 Toman / call

Index files, web pages or text into the user's private knowledge base (langchain splitter + chromadb) so it can be searched in chat.

POST https://lemura.ir/public/v1/tools/knowledge_index
Parameters, example and limits
ParameterTypeRequiredDescription
collectionstring Knowledge base name
filesarray File
urlsarray
textstring Raw text to index
replaceboolean 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": "..."}'
Max run time: 900s · Max input file size: 25MB · Pricing: base 200.0 + compute weight 10.0 × compute unit × 1.21

Social media

YouTube channel analytics youtube_analytics v1.0.0
~61 Toman / call

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

POST https://lemura.ir/public/v1/tools/youtube_analytics
Parameters, example and limits
ParameterTypeRequiredDescription
daysinteger Last N days (1-365, default 28)
bystring
day | video | country
Breakdown
limitinteger Top N videos
channelstring 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 '{}'
Max run time: 40s · Max input file size: 25MB · Pricing: base 50.0 + compute weight 0.0 × compute unit × 1.21
YouTube comments youtube_comments v1.0.0
~0 Toman / call

Read the latest comments of the channel or of one video; or reply to a comment thread (reply_to + text).

POST https://lemura.ir/public/v1/tools/youtube_comments
Parameters, example and limits
ParameterTypeRequiredDescription
video_idstring Only this video (optional)
limitinteger How many (max 100)
reply_tostring Comment thread id to reply to
textstring Reply text
channelstring 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 '{}'
Max run time: 40s · Max input file size: 25MB · Pricing: base 0.0 + compute weight 0.0 × compute unit × 1.21
YouTube playlists youtube_playlists v1.0.0
~0 Toman / call

List the channel's playlists, or create one (create_title, description, privacy).

POST https://lemura.ir/public/v1/tools/youtube_playlists
Parameters, example and limits
ParameterTypeRequiredDescription
create_titlestring Create a playlist with this title (optional)
descriptionstring Playlist description
privacystring
private | unlisted | public
Privacy
channelstring 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 '{}'
Max run time: 40s · Max input file size: 25MB · Pricing: base 0.0 + compute weight 0.0 × compute unit × 1.21
Upload a video to YouTube youtube_upload async v1.0.0
~242 Toman / call

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

POST https://lemura.ir/public/v1/tools/youtube_upload
Parameters, example and limits
ParameterTypeRequiredDescription
filestring File id: f_xxx (uploaded/generated file) or att_N (chat attachment) File
titlestring Video title (max 100 chars)
descriptionstring Description
tagsarray
privacystring
private | unlisted | public
Privacy
publish_atstring Scheduled publish time, RFC 3339 (optional)
categorystring YouTube category id (22 People&Blogs, 27 Education, 24 Entertainment, 28 Science&Tech)
thumbnailstring Thumbnail image file id (optional)
playlist_idstring Add to this playlist (optional)
made_for_kidsboolean Made for kids
languagestring Language code, e.g. fa
channelstring 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": "..."}'
Max run time: 900s · Max input file size: 25MB · Pricing: base 200.0 + compute weight 0.0 × compute unit × 1.21
YouTube channel videos youtube_videos v1.0.0
~0 Toman / call

Recent videos of the user's channel with views, likes, comments, length and privacy.

POST https://lemura.ir/public/v1/tools/youtube_videos
Parameters, example and limits
ParameterTypeRequiredDescription
limitinteger How many (max 50)
channelstring 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 '{}'
Max run time: 40s · Max input file size: 25MB · Pricing: base 0.0 + compute weight 0.0 × compute unit × 1.21

Video & animation

Custom animation from HTML/CSS/JS animation_html async v2.0.0
~1,936 Toman / call

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

POST https://lemura.ir/public/v1/tools/animation_html
Parameters, example and limits
ParameterTypeRequiredDescription
htmlstring Complete HTML document of the animation
duration_secnumber
aspectstring
16:9 | 9:16 | 1:1 | 4:5
Aspect ratio
qualitystring
480p | 720p | 1080p
Resolution (short side)
fpsinteger
24 | 25 | 30
Frames per second
formatstring
mp4 | webm | gif
Output format
filesarray Images/videos used by the page (reference their ids in the HTML) File
musicstring File id: f_xxx (uploaded/generated file) or att_N (chat attachment) File
music_volumenumber
titlestring 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": "..."}'
Max run time: 900s · Max input file size: 25MB · Pricing: base 600.0 + compute weight 4.0 × compute unit × 1.21
Animation & motion graphics (scenes) animation_render async v2.0.0
~2,904 Toman / call

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

POST https://lemura.ir/public/v1/tools/animation_render
Parameters, example and limits
ParameterTypeRequiredDescription
titlestring Video title (also the file name)
scenesarray
aspectstring
16:9 | 9:16 | 1:1 | 4:5
Aspect ratio
qualitystring
480p | 720p | 1080p
Resolution (short side)
fpsinteger
24 | 25 | 30
Frames per second
formatstring
mp4 | webm | gif
Output format
themeobject
rtlboolean Right-to-left (Persian) layout
logostring File id: f_xxx (uploaded/generated file) or att_N (chat attachment) File
musicstring File id: f_xxx (uploaded/generated file) or att_N (chat attachment) File
music_volumenumber
watermarkstring 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"}'
Max run time: 900s · Max input file size: 25MB · Pricing: base 800.0 + compute weight 4.0 × compute unit × 1.21
AI video editor (Lemura-hosted) local_video_edit v1.2.0
~0 Toman / call

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

POST https://lemura.ir/public/v1/tools/local_video_edit
Parameters, example and limits
ParameterTypeRequiredDescription
filestring File id: f_xxx (uploaded/generated file) or att_N (chat attachment) File
promptstring What to do, in the user's words (optional)
sub_stylestring
bold3d | glow | pop | highlight | classic | box | neon | none
Subtitle style
qualitystring
enhance | upscale | off
Picture: enhance (default), upscale (AI super-resolution) or off
sub_langstring
original | fa
original or fa (translate subtitles to Persian)
aspectstring
original | 9:16 | 1:1 | 16:9
Output frame
silencestring
light | strong | off
Remove silences
zoomstring
auto | dynamic | off
Zooms
emojistring
on | off
Emojis
sfxstring
on | off
Sound effects
transitionstring
fade | slide | zoom | random | none
Transitions
backgroundstring
off | blur | color | image
Replace the background behind the people: blur (unrecognisable), color, image (bg_file) or off
bg_colorstring
green | white | black | purple | blue | pink
Background colour when background=color
bg_filestring 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"}'
Max run time: 120s · Max input file size: 25MB · Pricing: base 0.0 + compute weight 0.0 × compute unit × 1.21
Video translation + Persian subtitles (Lemura-hosted) local_video_subtitle v1.0.0
~0 Toman / call

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

POST https://lemura.ir/public/v1/tools/local_video_subtitle
Parameters, example and limits
ParameterTypeRequiredDescription
filestring File id: f_xxx (uploaded/generated file) or att_N (chat attachment) File
modestring
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"}'
Max run time: 120s · Max input file size: 25MB · Pricing: base 0.0 + compute weight 0.0 × compute unit × 1.21
Video upscaling / super-resolution (Lemura-hosted) local_video_upscale v1.0.0
~0 Toman / call

Upscale 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).

POST https://lemura.ir/public/v1/tools/local_video_upscale
Parameters, example and limits
ParameterTypeRequiredDescription
filestring File id: f_xxx (uploaded/generated file) or att_N (chat attachment) File
scaleinteger
2 | 4
Upscale factor 2 or 4
modelstring
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"}'
Max run time: 120s · Max input file size: 25MB · Pricing: base 0.0 + compute weight 0.0 × compute unit × 1.21
AI motion graphics from a prompt motion_generate async v1.0.0
~3,267 Toman / call

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

POST https://lemura.ir/public/v1/tools/motion_generate
Parameters, example and limits
ParameterTypeRequiredDescription
promptstring What the video should show and say (story, text, style, colors, mood)
secondsnumber Length in seconds (default 15)
aspectstring
16:9 | 9:16 | 1:1 | 4:5
Aspect ratio (9:16 for stories/reels)
qualitystring
480p | 720p | 1080p
Resolution (short side)
formatstring
mp4 | webm | gif
Output format
fpsinteger
24 | 25 | 30
Frames per second
filesarray Images/logos to use in the video File
musicstring File id: f_xxx (uploaded/generated file) or att_N (chat attachment) File
music_volumenumber
base_htmlstring File id: f_xxx (uploaded/generated file) or att_N (chat attachment) File
titlestring 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": "..."}'
Max run time: 900s · Max input file size: 25MB · Pricing: base 1500.0 + compute weight 4.0 × compute unit × 1.21
Shot-by-shot video storyboard motion_storyboard v1.0.0
~0 Toman / call

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

POST https://lemura.ir/public/v1/tools/motion_storyboard
Parameters, example and limits
ParameterTypeRequiredDescription
briefstring What the video is about, audience, goal, key messages
secondsnumber
aspectstring
16:9 | 9:16 | 1:1 | 4:5
Aspect ratio
qualitystring
480p | 720p | 1080p
Resolution
voicestring
none | amir | gyro
Persian voice-over: amir / gyro, or none
languagestring Language of texts / voice
kindstring promo, explainer, tutorial, reel, product launch …
filesarray File
theme_fromstring 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": "..."}'
Max run time: 150s · Max input file size: 25MB · Pricing: base 0.0 + compute weight 0.0 × compute unit × 1.21
Render a storyboard video motion_storyboard_render async v1.0.0
~3,267 Toman / call

Make 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).

POST https://lemura.ir/public/v1/tools/motion_storyboard_render
Parameters, example and limits
ParameterTypeRequiredDescription
storyboard_idinteger Storyboard id
shotsarray Edited shots (optional)
aspectstring
16:9 | 9:16 | 1:1 | 4:5
Aspect ratio
voicestring
none | amir | gyro
Voice-over
musicstring File id: f_xxx (uploaded/generated file) or att_N (chat attachment) File
music_volumenumber
speednumber
titlestring 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}'
Max run time: 900s · Max input file size: 25MB · Pricing: base 1500.0 + compute weight 4.0 × compute unit × 1.21
Styled video built part by part motion_styled async v1.0.0
~9,075 Toman / call

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

POST https://lemura.ir/public/v1/tools/motion_styled
Parameters, example and limits
ParameterTypeRequiredDescription
promptstring The full brief: story, messages, texts, audience, mood (style details too for style=free)
stylestring
neon_editorial | game_ui | card_arena | minimal_bold | free
Ready-made style
aspectstring
16:9 | 9:16
Frame: 16:9 horizontal or 9:16 vertical
secondsnumber Total length in seconds (default 30)
segmentinteger
5 | 10
Length of each part in seconds
qualitystring
720p | 1080p
Resolution
filesarray Images/logos to use in the video File
musicstring File id: f_xxx (uploaded/generated file) or att_N (chat attachment) File
music_volumenumber
titlestring 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": "..."}'
Max run time: 900s · Max input file size: 25MB · Pricing: base 1500.0 + compute weight 4.0 × compute unit × 1.21
Save a motion video as a template motion_template_save v1.0.0
~0 Toman / call

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

POST https://lemura.ir/public/v1/tools/motion_template_save
Parameters, example and limits
ParameterTypeRequiredDescription
job_idstring job_… of the finished video
titlestring Template name
descriptionstring Short description
publicboolean 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": "..."}'
Max run time: 120s · Max input file size: 25MB · Pricing: base 0.0 + compute weight 0.0 × compute unit × 1.21
Make a video from a motion template motion_template_use async v1.0.0
~0 Toman / call

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

POST https://lemura.ir/public/v1/tools/motion_template_use
Parameters, example and limits
ParameterTypeRequiredDescription
template_idinteger Template id
valuesobject {field key: value}
textstring Free text with the user's information to fill the fields
qualitystring
480p | 720p | 1080p
Resolution
formatstring
mp4 | webm | gif
Output format
musicstring File id: f_xxx (uploaded/generated file) or att_N (chat attachment) File
titlestring 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}'
Max run time: 900s · Max input file size: 25MB · Pricing: base 0.0 + compute weight 0.0 × compute unit × 1.21
Motion-graphics templates motion_templates v1.0.0
~0 Toman / call

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

POST https://lemura.ir/public/v1/tools/motion_templates
Parameters, example and limits
ParameterTypeRequiredDescription
scopestring
all | mine | public
Which templates
querystring Search text
aspectstring
16:9 | 9:16 | 1:1 | 4:5
Aspect
limitinteger 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 '{}'
Max run time: 20s · Max input file size: 25MB · Pricing: base 0.0 + compute weight 0.0 × compute unit × 1.21
AI video editor (captions, graphics, highlights) motion_video_edit async v1.0.0
~4,961 Toman / call

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

POST https://lemura.ir/public/v1/tools/motion_video_edit
Parameters, example and limits
ParameterTypeRequiredDescription
filestring File id: f_xxx (uploaded/generated file) or att_N (chat attachment) File
promptstring What the edit should achieve, style, things to highlight or remove
modestring
enhance | highlights
enhance = keep the whole video and add captions/graphics; highlights = cut to the best moments
target_secondsnumber Highlights length (default 45)
aspectstring
keep | 16:9 | 9:16 | 1:1 | 4:5
Output frame (keep = like the source)
qualitystring
720p | 1080p
Resolution
captionsboolean Word-by-word captions
caption_stylestring
karaoke | clean | bold
Caption look
caption_positionstring
bottom | middle | top
Caption position
languagestring Speech language (auto, fa, en, ar, …)
musicstring File id: f_xxx (uploaded/generated file) or att_N (chat attachment) File
music_volumenumber
logostring File id: f_xxx (uploaded/generated file) or att_N (chat attachment) File
ctastring Call to action at the end
accentstring Accent color (CSS)
titlestring 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"}'
Max run time: 900s · Max input file size: 25MB · Pricing: base 2500.0 + compute weight 4.0 × compute unit × 1.21

Visualization & data

Chart generator (plotly) chart_generate v1.0.0
~83 Toman / call

Create a chart (bar, line, pie, scatter, area, histogram, heatmap, funnel) as PNG/SVG image or interactive HTML with Persian font support.

POST https://lemura.ir/public/v1/tools/chart_generate
Parameters, example and limits
ParameterTypeRequiredDescription
typestring
bar | line | pie | scatter | area | histogram | heatmap | funnel
Chart type
titlestring Title
dataobject
x_titlestring X axis title
y_titlestring Y axis title
formatstring
png | svg | html
Output
widthinteger px
heightinteger px
themestring
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"}'
Max run time: 60s · Max input file size: 25MB · Pricing: base 60.0 + compute weight 8.0 × compute unit × 1.21
Test data generator (faker) fake_data v1.0.0
~43 Toman / call

Generate realistic fake datasets (Persian or English locales) for testing: people, contacts, addresses, companies, dates, numbers, text.

POST https://lemura.ir/public/v1/tools/fake_data
Parameters, example and limits
ParameterTypeRequiredDescription
localestring
fa_IR | en_US | de_DE | ar_SA | tr_TR
Locale
rowsinteger Row count
fieldsarray faker providers: name, email, phone_number, address, company, job, date, city, text, iban, credit_card_number, uuid4, random_int, ...
formatstring
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": ["..."]}'
Max run time: 60s · Max input file size: 25MB · Pricing: base 30.0 + compute weight 5.0 × compute unit × 1.21

Web

Headless browser (Playwright) browser_render async v1.0.0
~315 Toman / call

Open a public web page in a real headless Chromium (JavaScript-heavy sites) and return its rendered text, HTML, a screenshot or a PDF.

POST https://lemura.ir/public/v1/tools/browser_render
Parameters, example and limits
ParameterTypeRequiredDescription
urlstring Public https URL
actionstring
text | html | screenshot | pdf
What to return
full_pageboolean Full-page screenshot
wait_msinteger Extra wait after load
selectorstring Optional CSS selector to wait for / extract
widthinteger 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": "..."}'
Max run time: 90s · Max input file size: 25MB · Pricing: base 200.0 + compute weight 15.0 × compute unit × 1.21
Web scraper web_scrape v1.0.0
~67 Toman / call

Fetch a public web page over a safe proxy and extract text, links, tables, metadata or CSS-selector fields (httpx + BeautifulSoup).

POST https://lemura.ir/public/v1/tools/web_scrape
Parameters, example and limits
ParameterTypeRequiredDescription
urlstring Public https URL
extractstring
text | links | tables | meta | all
What to extract
selectorsobject name -> CSS selector
max_charsinteger 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": "..."}'
Max run time: 40s · Max input file size: 25MB · Pricing: base 50.0 + compute weight 5.0 × compute unit × 1.21

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"]}