Muse Video 标志

Muse Video

社区
useapi
muse-video

Make AI images and 10-second videos with sound using Meta's Muse agent (muse.ai) through the useapi.net Muse API, on the user's Muse subscription (the free plan works). Text to image, combining up to 9 photos into one picture, editing an image, restoring and colorizing an old photo, image to video with spoken dialogue (make a photo talk), and video to video such as replacing a person in a clip. Files chain by assetId with no re-upload. Downloads the .webp or .mp4. Use when the user asks for a Muse or Meta Muse image or video, a talking photo, an old photo restored or animated, a face or person swapped in a video, or a short AI video with dialogue from the command line. Needs curl, jq and a USEAPI_TOKEN environment variable.

概览

发布者useapi
代码仓库muse-api
技能名称muse-video
星标数
72
复刻数
14
附带文件
8
许可协议MIT
链接
  • Markdown 格式的指令

    模型按需加载 SKILL.md 文件,因此只有在请求确实与该技能匹配时才会消耗 Token。

  • 兼容任何大语言模型

    AI 技能采用纯 Markdown,而非特定提供商的代码,因此可搭配 GPT、Claude、Gemini、Grok 或本地模型使用。

  • 8 个附带文件

    模型执行任务时可读取的脚本、模板和参考资料。这些文件为只读文件,绝不会被执行。

  • 开源

    由 useapi 发布于 GitHub。请在安装前查看技能的源文件。

安装

在 TypingMind 中安装 Muse Video AI 技能,即可搭配任意大语言模型使用;也可以将其放入其他支持读取 SKILL.md 的智能体中。

1

安装到 TypingMind

TypingMind 可直接从 GitHub 文件夹安装技能:读取 SKILL.md,打包资源文件,并将结果保存在本地。

  1. 打开应用,前往“插件 → 技能”。
  2. 选择“从 GitHub 安装”。
  3. 粘贴下方的技能文件夹 URL 并确认。
    https://github.com/useapi/muse-api/tree/main/skills/muse-video
  4. 请在每个需要使用该技能的聊天中启用它。
依次选择“插件 → 技能 → 添加技能 → 从 GitHub URL 导入”,然后粘贴文件夹 URL 并点击“继续”。
2

安装到其他智能体

任何支持 Agent Skills 格式的智能体都可以使用此技能,只需将文件夹复制到该智能体的技能目录中。

Claude Code — .claude/skills
git clone --depth 1 https://github.com/useapi/muse-api.git /tmp/muse-api
mkdir -p .claude/skills
cp -r /tmp/muse-api/skills/muse-video .claude/skills/muse-video
复制后,请重启 Claude Code,以加载新技能。

在 TypingMind 中使用此技能

在任意 TypingMind 聊天中启用 Muse Video,后续即可交由模型处理。技能的名称和描述会放在系统提示词中,一旦请求匹配,模型就会自动加载完整指令,无需您手动调用,且在实际使用前不会消耗 Token。

一旦请求与技能匹配,模型就会自动加载 Muse Video。

兼容任何 AI 模型

AI 技能是纯 Markdown 指令,而非特定提供商的代码,因此 Muse Video 不局限于最初适配的模型。只需在 TypingMind 中安装一次,即可搭配 GPT-5、Claude、Gemini、Grok、DeepSeek、Mistral、Llama 或您自行运行的本地模型使用,全程使用您自己的 API 密钥。

  • 仅在需要时加载

    系统提示词中仅包含技能名称和描述。首次遇到匹配的请求时才会加载完整指令,因此技能未使用时,这些指令不会消耗 Token。

  • 在聊天中切换模型

    技能是指令而非代码,因此切换模型不会导致技能失效,新模型会读取同一个 SKILL.md。

技能指令

这是模型会加载的 SKILL.md 内容。请在安装前阅读,因为技能就是模型将遵循的指令。

Images and 10-second videos with Meta Muse via the useapi.net Muse API

These scripts call the useapi.net Muse API, a third-party REST API that runs on the user's subscription to Muse (muse.ai), Meta's AI agent. useapi.net is not affiliated with Meta. Every job uses part of the account's weekly Muse allowance. Every script is in scripts/ next to this file. Run them with bash.

Before you start

  1. USEAPI_TOKEN must be set. If it is missing, ask the user for their useapi.net API token (setup: https://useapi.net/docs/start-here/setup-useapi). Their Muse account must already be added (https://useapi.net/docs/start-here/setup-muse). Never print the token, echo it, or write it to a file.
  2. USEAPI_EMAIL is optional: the added Muse account to use. Leave it unset and the API picks a healthy account with allowance left. All inputs of one job must be on the same account, and a job runs on the account that holds its inputs, so set it when the user has several accounts and you upload files.
  3. curl and jq must be installed.

Fastest path: one command

bash
scripts/image.sh "<prompt>" [image_1=<assetId> ...]
scripts/video.sh "<prompt>" [image_1=<assetId> video_1=<assetId> ...]

Each prints progress on stderr and the saved file path on stdout (.webp for images, .mp4 for videos), with the job record next to it as .json. The new file's assetId is logged and is in .result.assets[0].assetId of that .json: pass it to the next job. OUT_DIR sets the folder, default the current one. An image takes 20 to 60 seconds, a video 60 to 140. Run videos in the background (in Claude Code, run_in_background) or with a timeout of at least 10 minutes, and do not start a second copy while one runs.

bash
# Text to image: say the aspect ratio in the prompt
scripts/image.sh "In exactly 16:9 aspect ratio (landscape), a cinematic photo of a vintage motorcycle on wet cobblestones at night, fog, 35mm film."

# Make a photo talk: upload it, animate it, put the line in quotes
IMG=$(scripts/upload.sh grandma.jpg)
scripts/video.sh "Animate image_1 with the same portrait frame: she looks up at the camera, smiles and says softly: \"You came back.\" Keep her face exactly as in image_1." image_1="$IMG"

Chaining: pass assetIds, never re-upload

Every file Muse makes stays in the account's Muse workspace, so its assetId goes straight into the next job as image_N or video_N. Upload only the user's own files, with upload.sh (free, no allowance, the same file always gets the same id).

bash
BIKE=$(scripts/upload.sh bike.jpg); RIDER=$(scripts/upload.sh rider.jpg); BEACH=$(scripts/upload.sh beach.jpg)
PIC=$(scripts/image.sh "In exactly 16:9 aspect ratio (landscape), the woman from image_2 riding the motorcycle from image_1 through the surf of the beach in image_3. Use the beach from image_3 exactly as photographed. Keep her face and the motorcycle exactly as in the images." \
  image_1="$BIKE" image_2="$RIDER" image_3="$BEACH")
PIC_ID=$(jq -r '.result.assets[0].assetId' "${PIC%.*}.json")
CLIP=$(scripts/video.sh "Animate image_1 in exactly 16:9 aspect ratio: she rides through the waves and shouts: \"Nothing beats this view!\" Keep her face and the motorcycle exactly as in image_1." image_1="$PIC_ID")
CLIP_ID=$(jq -r '.result.assets[0].assetId' "${CLIP%.*}.json")
NEW=$(scripts/upload.sh other-woman.jpg)
scripts/video.sh "Edit video_1: replace the rider with the woman from image_1, keep everything else the same. Instead of the original line she shouts: \"Catch me if you can!\" Keep the 16:9 frame." video_1="$CLIP_ID" image_1="$NEW"

Costs (the weekly Muse allowance)

Muse meters each account per week, as a whole percent used. scripts/account.sh reads it live: quota.tier (HATCH_FREE is the free plan), quota.percentUsed, quota.resetsAt. On the free plan, in useapi.net's tests:

RequestUsed of the week (free plan)
A video (video.sh, generate.sh video)2 to 3 percent
An image (image.sh, generate.sh image)0 to 1 percent
Upload, download, reading a job or the accountnothing
A failed job (503, 403 refusal)nothing made

Paid Muse plans (Power $20 or Maximum $100 a month, as of November 2026) have larger allowances. When it runs out, a job on that account answers 412 until resetsAt. useapi.net itself charges nothing per image or video (one $15/month subscription covers every useapi.net API). Tell the user the cost before more than two or three videos.

Writing prompts that work

  • No parameters: there are none for model, aspect ratio, resolution or length. Say it in the prompt.
  • Aspect ratio: write in exactly 16:9 aspect ratio (or 9:16, 1:1, 4:5, 3:4, 21:9 ...). "Cinematic 16:9 landscape photo" once came back 3:2. Image to video keeps the start image's shape unless the prompt asks for another ratio.
  • Length and resolution: every video is about 10 seconds at about 720p, with sound. Asking for 5 seconds still gives 10; asking for 1080p or 4K adds no detail.
  • Dialogue: spoken lines go in quotes, she says softly: "...". One or two short sentences.
  • Name the inputs in the prompt: the woman from image_2 riding the motorcycle from image_1. A prompt that names an input you did not pass answers 400.
  • Say what must stay the same: "keep her face exactly as in image_1", "use the beach from image_3 exactly as photographed: same position, not mirrored or redrawn".
  • Animate: Animate image_1 ... makes a clip that starts from that picture. Edit a video: Edit video_1: replace the rider with the woman from image_1, keep everything else the same.
  • Restore an old photo: list what to fix (scratches, fading, grain, colorize) and insist on "the same framing, crop and aspect ratio as image_1".
  • result.text is Muse's own last message, e.g. "Done. 10 seconds, 16:9 landscape". Pass it on to the user.

Step by step (for more control)

bash
JOB=$(scripts/generate.sh video "Animate image_1: ..." image_1="$IMG")   # prints the job id, sent once
scripts/wait-job.sh "$JOB" > job.json                                     # polls every 10 s, prints the final record
scripts/download.sh job.json ./out                                        # prints the saved .mp4 path
jq -r '.result.assets[0].assetId' job.json                                # the clip, for the next job
ScriptInterface
image.sh "<prompt>" [image_1..9=<assetId>]generate + wait + download an image, prints the .webp path
video.sh "<prompt>" [image_1..9= video_1..3= audio_1..3=]generate + wait + download a video, prints the .mp4 path
upload.sh <file>upload jpeg/png/webp/mp4/mov/webm/mp3/wav/m4a/ogg up to 50 MB, prints the assetId
generate.sh image|video "<prompt>" [key=value ...]also replyUrl, replyRef; prints the job id
wait-job.sh <jobid>polls until done, prints the job record; exits 1 on a failed job with a hint
download.sh <job.json|-|assetId> [OUT_DIR] [NAME]saves muse_<type>_<time>.<webp|mp4>, prints the path
account.sh [email]the account's plan and weekly usage, read live (no email: every account, as last read)

Every option: https://useapi.net/docs/api-muse-v1

Files are never deleted by the API: they stay in the account's Muse workspace and can be downloaded again by assetId. Job records are kept for 7 days (then 410).

Timeouts and resuming without paying twice

generate.sh, image.sh and video.sh send each job once and never retry it: a job resent after an unclear failure would use the allowance twice. If a run is interrupted after job j...-bot:muse was logged, do not run it again. Resume with the job id:

bash
scripts/wait-job.sh "<jobid>" > job.json && scripts/download.sh job.json

Reading jobs, reading the account, uploading and downloading cost nothing, so those scripts retry network errors and 5xx answers on their own and are safe to re-run.

Errors

Every failed request or failed job prints the API's error and a one-line hint:

  • 400: a parameter was rejected (the message names it), an input of the wrong type (video_1 given an image), inputs on different accounts, or the prompt names an input that was not passed. Nothing was used.
  • 401: wrong token. 404: the account is not added, or the file is no longer in the Muse workspace. 410: the job is older than 7 days.
  • 403 on a job: Muse refused on content grounds (its own words are in the message), or asked for a confirmation. Running the same prompt again will not help: rephrase or change the inputs. 403 on a request: the id belongs to another API token.
  • 412: the account's weekly allowance is used up. Use another account (account.sh) or wait for resetsAt.
  • 429: the account is running its maxJobs (default 10), or Muse is limiting it for about a minute. Nothing was made: send once more after a minute. Never loop on it.
  • 503: nothing was made: Muse could not be reached, or Muse failed this time and said so ("the video worker glitched out before it rendered anything"). Running the same request again is safe and usually works.
  • 502: Muse made a file the API could not read. Do not resubmit automatically: tell the user and report the job id to useapi.net support.
  • 504: Muse did not finish in time, but it may have made the file. Check GET /jobs/<jobid>?history=true and ask the user before running it again.
  • 596: the Muse account needs attention: Meta wants a security check, or the password changed. The user signs in at https://muse.ai, then re-adds the account: https://useapi.net/docs/start-here/setup-muse

After it finishes

Tell the user the file path(s), what Muse said (result.text), and for videos the length (about 10 s). If you read the account, say how much of the week is used (quota.percentUsed) and when it resets. Mention that each result's assetId can feed the next job with no re-upload.

附带文件

技能加载后,模型会按需读取这些文件。它们仅作为可读文件提供,绝不会被执行。

常见问题

Muse Video AI 技能有什么作用?

Make AI images and 10-second videos with sound using Meta's Muse agent (muse.ai) through the useapi.net Muse API, on the user's Muse subscription (the free plan works). Text to image, combining up to 9 photos into one picture, editing an image, restoring and colorizing an old photo, image to video with spoken dialogue (make a photo talk), and video to video such as replacing a person in a clip. Files chain by assetId with no re-upload. Downloads the .webp or .mp4. Use when the user asks for a Muse or Meta Muse image or video, a talking photo, an old photo restored or animated, a face or per...

为什么在 TypingMind 中使用 Muse Video?

因为您只需安装一次,就能搭配任何模型使用。Muse Video 采用纯 Markdown 格式,而非特定提供商专用的代码,因此同一技能可用于 GPT-5、Claude、Gemini、Grok 或本地模型。您甚至可以在聊天中途切换模型,而不会影响技能的正常使用。TypingMind 使用您自己的 API 密钥,因此您直接向提供商付费,而不是按席位订阅;您的技能和聊天记录也都保留在您自己的存储空间中。

如何在 TypingMind 中安装 Muse Video?

在 TypingMind 中打开“插件 → 技能 → 从 GitHub 安装”,然后粘贴 https://github.com/useapi/muse-api/tree/main/skills/muse-video。TypingMind 会读取其中的 SKILL.md,打包相关文件,并将其安装为技能,供您在各个聊天中按需启用。

哪些 AI 模型可以使用 Muse Video?

您在 TypingMind 中连接的任何模型都可以。AI 技能采用纯 Markdown 指令,而非特定提供商专用的代码,因此 GPT、Claude、Gemini、Grok 和本地模型都能在请求匹配时加载此技能。

Muse Video 可以搭配多少个 AI 模型使用?

数量不限。只要模型支持技能,您就可以将它与 Muse Video 搭配使用。GPT、Claude、Gemini、Grok、DeepSeek、Mistral、Llama 等模型都可以通过您自己的 API 密钥接入 TypingMind。

Muse Video AI 技能免费吗?

是的。useapi 已在 GitHub 上根据 MIT 许可证发布了该技能。您只需向自己的 AI 提供商支付所用 Token 的费用。

什么是 AI 技能?

AI 技能是一组可复用的指令,用于教会 AI 模型完成某项特定任务。它遵循开放的 Agent Skills 格式:包含名称和描述的 SKILL.md 文件,以及模型可能需要的脚本、模板或参考文件。模型仅在您的请求与技能匹配时才会读取这些指令,因此已安装的技能在使用前不会产生任何费用。

AI 技能与插件或 MCP 服务器有何不同?

插件或 MCP 服务器为模型提供可调用的新工具,也就是在某处运行并返回结果的代码。AI 技能则为模型提供知识和流程:如何处理任务、遵循哪些步骤,以及怎样的输出才算优质。技能采用纯 Markdown 格式,因此不需要服务器、API 密钥或运行时环境,并且适用于任何模型。

查看全部

立即创建您自己的 AI 工作区

订阅我们的电子简报,获取新功能和后续赠奖活动的通知 👇