Unrestricted Open-source alternative to AI video platforms — Free AI image & video generation studio with 600+ models (Flux, Midjourney, Kling, Sora, Veo). No content filters. Self-hosted, MIT licensed.
JavaScript ai-art-generatorai-image-generationai-video-generationfal-ai-alternativegenerative-aiimage-to-videoinvideo-alternativekling-ailipsynclitellm-alternativemidjourney-alternativemuapiopen-sourceopenrouter-alternativeseedance2sora-alternativetext-to-imagetext-to-videouncensoredwan-video
"use client";
import React from 'react';
import { FaGithub, FaTerminal, FaPlug, FaStar, FaExternalLinkAlt } from 'react-icons/fa';
import en from '../messages/en/mcpCliStudio.json';
import zh from '../messages/zh/mcpCliStudio.json';
import { resolveCopy } from '../i18nUtils';
// `title`/`tag` stay canonical (product/package names and short technical
// category tags); `id` keys into copy.features/copy.quickStart/copy.examples
// for the translated description/label. `code` blocks are technical and
// never translated.
const FEATURES = [
{
id: 'cli',
tag: 'CLI',
title: 'muapi-cli',
icon: FaTerminal,
code: `npm install -g muapi-cli
muapi auth login
muapi image generate "a cyberpunk city" \\
--model flux-dev`,
href: 'https://github.com/SamurAIGPT/muapi-cli',
},
{
id: 'mcp',
tag: 'MCP',
title: 'muapi-mcp-server',
icon: FaPlug,
code: `claude mcp add --transport http muapi \\
https://api.muapi.ai/mcp \\
--header "Authorization: Bearer YOUR_KEY"`,
href: 'https://github.com/SamurAIGPT/muapi-mcp-server',
},
{
id: 'skills',
tag: 'Skills',
title: 'Generative Media Skills',
icon: FaStar,
code: `npx skills add SamurAIGPT/muapi-skills --all`,
href: 'https://github.com/SamurAIGPT/muapi-skills',
},
];
const QUICK_STEPS = [
{ id: 'installCli', num: '1', code: 'npm install -g muapi-cli' },
{ id: 'signIn', num: '2', code: 'muapi auth login' },
{ id: 'addSkills', num: '3', code: 'npx skills add SamurAIGPT/muapi-skills' },
];
const EXAMPLES = [
{ id: 'imageGeneration', code: 'muapi image generate "a serene mountain lake at sunrise" \\\n --model flux-dev --download ./outputs' },
{ id: 'textToVideo', code: 'muapi video generate "a dog running on a beach" \\\n --model kling-master' },
{ id: 'audioCreation', code: 'muapi audio create "upbeat lo-fi hip hop for studying"' },
{ id: 'runSkill', code: 'bash library/visual/nano-banana/scripts/\\\n generate-nano-art.sh --file image.jpg --view' },
];
function CodeBlock({ children, className = '' }) {
return (
<pre
className={`text-[11.5px] font-mono text-[#22d3ee] bg-black/50 border border-white/5 rounded-md px-3 py-2 overflow-x-auto whitespace-pre ${className}`}
>
{children}
</pre>
);
}
export default function McpCliStudio({ locale = 'en' }) {
const copy = resolveCopy(en, zh, locale);
return (
<div className="w-full h-full overflow-y-auto bg-[#050505] text-white">
<div className="max-w-5xl mx-auto px-6 py-12 flex flex-col gap-12">
{/* Hero */}
<section className="flex flex-col items-center text-center gap-4">
<div className="px-3 py-1 rounded-full border border-white/10 bg-white/5 text-[11px] font-bold uppercase tracking-widest text-white/60">
{copy.hero.badge}
</div>
<h1 className="text-4xl md:text-5xl font-bold tracking-tight">{copy.hero.title}</h1>
<p className="text-white/60 text-base md:text-lg max-w-2xl">
{copy.hero.description}
</p>
</section>
{/* Quick start */}
<section className="rounded-2xl border border-white/5 bg-white/[0.02] p-6 md:p-8 flex flex-col gap-4">
<div className="flex items-center gap-2">
<span className="text-[11px] font-bold uppercase tracking-widest text-white/50">{copy.quickStart.sectionLabel}</span>
<div className="flex-1 h-px bg-white/5" />
</div>
<div className="grid md:grid-cols-3 gap-4">
{QUICK_STEPS.map((step) => (
<div
key={step.num}
className="rounded-xl border border-white/5 bg-white/[0.02] p-4 flex flex-col gap-2"
>
<div className="flex items-center gap-2">
<span className="w-6 h-6 rounded-full bg-white text-black text-xs font-bold flex items-center justify-center">
{step.num}
</span>
<span className="text-sm font-bold">{copy.quickStart.steps[step.id]}</span>
</div>
<CodeBlock className="text-[11.5px]">{step.code}</CodeBlock>
</div>
))}
</div>
</section>
{/* Feature cards */}
<section className="grid md:grid-cols-3 gap-4">
{FEATURES.map((f) => {
const Icon = f.icon;
return (
<a
key={f.title}
href={f.href}
target="_blank"
rel="noopener noreferrer"
className="rounded-2xl border border-white/5 bg-white/[0.02] p-6 flex flex-col gap-3 hover:bg-white/[0.04] hover:border-white/10 transition-colors group"
>
<div className="flex items-center justify-between">
<div className="w-10 h-10 rounded-xl bg-white/5 flex items-center justify-center text-white">
<Icon className="text-lg" />
</div>
<span className="text-[10px] font-bold uppercase tracking-widest text-white/50">{f.tag}</span>
</div>
<h3 className="text-lg font-bold">{f.title}</h3>
<p className="text-[13px] text-white/60 leading-relaxed">{copy.features[f.id].description}</p>
<CodeBlock>{f.code}</CodeBlock>
<div className="mt-auto flex items-center gap-1.5 text-[12px] font-bold text-white/50 group-hover:text-white transition-colors">
<FaGithub className="text-sm" />
<span>{copy.viewOnGithub}</span>
<FaExternalLinkAlt className="text-[10px]" />
</div>
</a>
);
})}
</section>
{/* Examples */}
<section className="flex flex-col gap-4">
<div className="flex items-center gap-2">
<span className="text-[11px] font-bold uppercase tracking-widest text-white/50">{copy.examples.sectionLabel}</span>
<div className="flex-1 h-px bg-white/5" />
</div>
<div className="grid md:grid-cols-2 gap-4">
{EXAMPLES.map((ex) => (
<div
key={ex.id}
className="rounded-xl border border-white/5 bg-white/[0.02] p-4 flex flex-col gap-2"
>
<span className="text-[12px] font-bold text-white/80">{copy.examples[ex.id]}</span>
<CodeBlock>{ex.code}</CodeBlock>
</div>
))}
</div>
</section>
<p className="text-center text-xs text-white/40 pb-4">
{copy.footer}
</p>
</div>
</div>
);
}