25 AI tools powered by DreamAPI — from Newport AI.
Always use the Python scripts in
scripts/. Do NOT usecurlor direct HTTP calls.
Every user-facing reply MUST follow ALL rules below.
https://api.newportai.com/Estimated Generation Time
Task TypeEstimated TimeAvatar (LipSync / DreamAvatar / Dreamact)~2–5 minImage Generation (Flux)~30s–1 minImage Editing (Colorize / Enhance / etc.)~30s–1 minVideo Generation (Wan2.1)3–5 minVideo Editing (Swap Face / Matting)30s–1 minTTS (Common / Pro / Clone)2–5 minVideo Translate3–5 minVoice Clone10–30sRemove Background10–30s
Required login message template
When authentication is needed, send the user this message (match user's language):
text
To get started, you need a DreamAPI API key.
1. Go to: https://api.newportai.com/
2. Sign in with Google or GitHub
3. Copy your API key from the Dashboard
Once you have your key, just tell me and I'll set it up for you.
中文模板:
text
开始之前,你需要一个 DreamAPI 的 API Key。
1. 打开 https://api.newportai.com/
2. 用 Google 或 GitHub 登录
3. 在 Dashboard 页面复制你的 API Key
拿到 Key 后告诉我,我帮你设置好。
bash
pip install -r {baseDir}/scripts/requirements.txt
These rules apply to ALL generation modules.
run — it submits the task and polls automatically until done.query when run has already timed out and you have a taskId to resume.query also times out, increase --timeout and try again with the same taskId.text
Decision tree:
→ New request? use `run`
→ run timed out? use `query --task-id <id>`
→ query timed out? use `query --task-id <id> --timeout 1200`
→ task status=fail? resubmit with `run`
Task Status Codes:
CodeStatusDescription0-2ProcessingTask is queued or running3SuccessTask completed4FailedTask failed
ModuleScriptReferenceDescriptionAuthscripts/auth.pyauth.mdAPI key management — login, status, logoutAvatarscripts/avatar.pyavatar.mdLipSync, LipSync 2.0, DreamAvatar 3.0 Fast, DreamactImage Genscripts/image_gen.pyimage_gen.mdFlux Text-to-Image, Flux Image-to-ImageImage Editscripts/image_edit.pyimage_edit.mdColorize, Enhance, Outpainting, Inpainting, Swap Face, Remove BGVideo Genscripts/video_gen.pyvideo_gen.mdText-to-Video, Image-to-Video, Head-Tail-to-Video (Wan2.1)Video Editscripts/video_edit.pyvideo_edit.mdSwap Face Video, Video Matting, CompositeVideo Translatescripts/video_translate.pyvideo_translate.mdVideo Translate 2.0 (en/zh/es)Voicescripts/voice.pyvoice.mdVoice Clone, TTS Clone, TTS Common, TTS Pro, Voice ListUserscripts/user.pyuser.mdCredit balance
Read individual reference docs for usage, options, and examples. Local files (image/audio/video) are auto-uploaded when passed as arguments.
text
What does the user need?
│
├─ A talking face synced to audio?
│ ├─ Has a video + audio → avatar.py lipsync / lipsync2
│ └─ Has a photo + audio → avatar.py dreamavatar
│
├─ A character performing actions from a driving video?
│ → avatar.py dreamact
│
├─ Generate an image from text?
│ → image_gen.py text2image
│
├─ Transform an existing image?
│ → image_gen.py image2image
│
├─ Edit an image?
│ ├─ Colorize B&W photo → image_edit.py colorize
│ ├─ Enhance quality → image_edit.py enhance
│ ├─ Extend borders → image_edit.py outpainting
│ ├─ Fill/replace region → image_edit.py inpainting
│ ├─ Replace face → image_edit.py swap-face
│ └─ Remove background → image_edit.py remove-bg
│
├─ Generate a video from text?
│ → video_gen.py text2video
│
├─ Animate an image into video?
│ → video_gen.py image2video
│
├─ Create transition between two frames?
│ → video_gen.py head-tail
│
├─ Edit a video?
│ ├─ Replace face → video_edit.py swap-face
│ ├─ Remove background → video_edit.py matting
│ └─ Replace background → video_edit.py matting + composite
│
├─ Translate video speech?
│ → video_translate.py
│
├─ Text-to-speech?
│ ├─ With cloned voice → voice.py clone + tts-clone
│ ├─ Standard quality → voice.py tts-common
│ └─ Premium quality → voice.py tts-pro
│
├─ Browse available voices?
│ → voice.py list
│
├─ Check credit balance?
│ → user.py credit
│
└─ Outside capabilities?
→ Tell user this isn't supported yet
User says...Script & Command"Make a talking face video with this audio"avatar.py lipsync run"Generate an avatar from this photo and audio"avatar.py dreamavatar run"Make this character do the dance in this video"avatar.py dreamact run"Generate an image of..."image_gen.py text2image run"Modify this image to..."image_gen.py image2image run"Colorize this old photo"image_edit.py colorize run"Enhance this blurry image"image_edit.py enhance run"Extend this image"image_edit.py outpainting run"Fill in this area of the image"image_edit.py inpainting run"Swap the face in this photo"image_edit.py swap-face run"Remove the background"image_edit.py remove-bg run"Generate a video about..."video_gen.py text2video run"Animate this image into a video"video_gen.py image2video run"Create a transition between these two images"video_gen.py head-tail run"Swap the face in this video"video_edit.py swap-face run"Remove the video background"video_edit.py matting run"Replace the video background with..."video_edit.py matting run + composite run"Translate this video to Chinese"video_translate.py run"Clone this voice"voice.py clone run"Read this text with the cloned voice"voice.py tts-clone run"Convert this text to speech"voice.py tts-common run or tts-pro run"What voices are available?"voice.py list"How many credits do I have?"user.py credit
submitShow the result URL first, then key metadata. Keep it clean.
Result template:
text
[type emoji] [task type] complete
Result: <OUTPUT_URL>
• [key metadata]
Not happy with the result? Let me know and I'll adjust.
See references/error_handling.md for error codes and recovery.
CategoryToolsCountAvatarLipSync, LipSync 2.0, DreamAvatar 3.0 Fast, Dreamact4Image GenerationFlux Text-to-Image, Flux Image-to-Image2Image EditingColorize, Enhance, Outpainting, Inpainting, Swap Face, Remove BG6Video GenerationText-to-Video, Image-to-Video, Head-Tail-to-Video3Video EditingSwap Face Video, Video Matting, Composite3Video TranslateVideo Translate 2.01VoiceVoice Clone, TTS Clone, TTS Common, TTS Pro, Voice List5Total****24
Never promise capabilities that don't exist as modules.