PageSourceSearch

https://melies.co/_nuxt/B9OH42qr.js

js melies.co collected 2026-10-03 23:47:13 UTC 12,682 bytes, 12 lines download raw bytes

1import{N as h,Q as w,R as k,a5 as I,U as C,V as M,$ as e,a0 as o,W as i,fR as S,a9 as s,aM as T,a$ as y,eJ as D,bJ as N,_ as l,an as L,a4 as q}from"./CIuLSf6r.js";import{_ as A}from"./CY5_6V_q.js";import{_ as O}from"./C7WIltOR.js";import{_ as B}from"./C2Khzp9z.js";import"./By6j0PyO.js";(function(){try{var a=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},n=new a.Error().stack;n&&(a._sentryDebugIds=a._sentryDebugIds||{},a._sentryDebugIds[n]="7c45917c-3b47-4cd9-9d96-458a1bc34e1e",a._sentryDebugIdIdentifier="sentry-dbid-7c45917c-3b47-4cd9-9d96-458a1bc34e1e")}catch{}})();const E={class:"mb-14"},P={class:"flex items-center gap-2 mb-4"},j={class:"inline-flex items-center gap-1.5 px-2.5 py-1 rounded-full text-xs font-medium bg-indigo-500/15 text-indigo-300 border border-indigo-500/20"},G={class:"inline-flex items-center gap-1.5 px-2.5 py-1 rounded-full text-xs font-medium bg-green-500/15 text-green-300 border border-green-500/20"},R={class:"grid grid-cols-1 sm:grid-cols-3 gap-3 mt-8"},V={class:"mt-0.5 w-8 h-8 rounded-lg bg-indigo-950/60 border border-indigo-800/30 flex items-center justify-center flex-shrink-0"},Y={class:"mt-0.5 w-8 h-8 rounded-lg bg-indigo-950/60 border border-indigo-800/30 flex items-center justify-center flex-shrink-0"},Q={class:"mt-0.5 w-8 h-8 rounded-lg bg-indigo-950/60 border border-indigo-800/30 flex items-center justify-center flex-shrink-0"},W={class:"docs-p mt-4"},$={class:"docs-p mt-4"},U=`# 1. Check your balance
2melies credits
3
4# 2. Generate an image with an AI actor and style flags
5melies image "portrait in a café" --actor mei --art-style ghibli --lighting golden --sync
6
7# 3. Generate a movie poster with a preset style
8melies poster "Neon Shadows" --style noir --actor james --sync
9
10# 4. Image → video pipeline in one command
11melies pipeline "warrior on a cliff at sunset" --actor mei --best --sync`,Z=h({__name:"index",setup(a){const{t:n,locale:f,locales:b}=w(),r=k(),g=m=>{const t=document.getElementById(m);if(t){const d=t.getBoundingClientRect().top+window.scrollY-130;window.scrollTo({top:d,behavior:"smooth"})}},x={type:"application/ld+json",innerHTML:JSON.stringify({"@context":"https://schema.org","@type":"SoftwareApplication",name:"Melies CLI",applicationCategory:"DeveloperApplication",operatingSystem:"macOS, Linux, Windows",offers:{"@type":"Offer",price:"0",priceCurrency:"USD"},description:n("docs.meta.description"),url:"https://melies.co/docs"})};return I({title:n("docs.meta.title")+" • Melies",titleTemplate:n("docs.meta.title")+" • Melies",link:[...b?.value?.map(m=>({rel:"alternate",hreflang:m.code,href:"https://melies.co"+r("/docs",m.code)})),{rel:"canonical",href:"https://melies.co"+r("/docs")}],meta:[{hid:"og:site_name",property:"og:site_name",content:"Melies AI"},{name:"description",content:n("docs.meta.description")},{hid:"og:title",property:"og:title",content:n("docs.meta.title")},{hid:"og:url",property:"og:url",content:"https://melies.co"+r("/docs")},{hid:"og:description",property:"og:description",content:n("docs.meta.description")},{hid:"og:type",property:"og:type",content:"website"},{hid:"twitter:card",name:"twitter:card",content:"summary_large_image"},{hid:"twitter:site",name:"twitter:site",content:"@meliesapp"},{hid:"twitter:title",name:"twitter:title",content:n("docs.meta.title")},{hid:"twitter:description",name:"twitter:description",content:n("docs.meta.description")}],script:[x]}),(m,t)=>{const d=q,p=A,c=O,u=B;return C(),M("div",null,[e("div",E,[e("div",P,[e("span",j,[o(i(S),{class:"w-3 h-3"}),t[2]||(t[2]=s(" CLI v2.0 ",-1))]),e("span",G,[o(i(T),{class:"w-3 h-3"}),t[3]||(t[3]=s(" 50+ models ",-1))])]),t[7]||(t[7]=e("h1",{class:"text-3xl lg:text-4xl font-bold text-white mb-4 tracking-tight"}," Melies CLI Documentation ",-1)),t[8]||(t[8]=e("p",{class:"text-base text-gray-400 leading-relaxed max-w-2xl"}," Generate images, videos, and movie posters from the command line. Melies gives you access to 50+ AI models through a single tool. Install it, authenticate, and start generating. ",-1)),e("div",R,[e("a",{href:"#installation",class:"group flex items-start gap-3 p-4 rounded-xl border border-gray-800 bg-gray-900/40 hover:border-indigo-800/50 hover:bg-gray-900/60 transition-all",onClick:t[0]||(t[0]=y(v=>g("installation"),["prevent"]))},[e("div",V,[o(i(D),{class:"w-4 h-4 text-indigo-400"})]),t[4]||(t[4]=e("div",null,[e("span",{class:"block text-sm font-medium text-white group-hover:text-indigo-300 transition-colors"},"Install"),e("span",{class:"block text-xs text-gray-500 mt-0.5"},"npm install -g melies")],-1))]),e("a",{href:"#quick-start",class:"group flex items-start gap-3 p-4 rounded-xl border border-gray-800 bg-gray-900/40 hover:border-indigo-800/50 hover:bg-gray-900/60 transition-all",onClick:t[1]||(t[1]=y(v=>g("quick-start"),["prevent"]))},[e("div",Y,[o(i(N),{class:"w-4 h-4 text-indigo-400"})]),t[5]||(t[5]=e("div",null,[e("span",{class:"block text-sm font-medium text-white group-hover:text-indigo-300 transition-colors"},"Quick Start"),e("span",{class:"block text-xs text-gray-500 mt-0.5"}
11,"Generate in 3 steps")],-1))]),o(d,{to:i(r)("/docs/commands"),class:"group flex items-start gap-3 p-4 rounded-xl border border-gray-800 bg-gray-900/40 hover:border-indigo-800/50 hover:bg-gray-900/60 transition-all"},{default:l(()=>[e("div",Q,[o(i(L),{class:"w-4 h-4 text-indigo-400"})]),t[6]||(t[6]=e("div",null,[e("span",{class:"block text-sm font-medium text-white group-hover:text-indigo-300 transition-colors"},"Commands"),e("span",{class:"block text-xs text-gray-500 mt-0.5"},"Full CLI reference")],-1))]),_:1},8,["to"])])]),t[44]||(t[44]=e("hr",{class:"border-gray-800/60 mb-12"},null,-1)),o(u,{id:"installation"},{description:l(()=>[t[10]||(t[10]=e("h2",{class:"docs-h2 !mt-0"},"Installation",-1)),t[11]||(t[11]=e("p",{class:"docs-p"},"Install Melies globally from npm. Requires Node.js 18 or later.",-1)),t[12]||(t[12]=e("p",{class:"docs-p"},[s("Melies works on macOS, Linux, and Windows. Once installed, the "),e("code",{class:"docs-inline-code"},"melies"),s(" command is available globally in your terminal.")],-1)),o(p,{type:"tip"},{default:l(()=>[...t[9]||(t[9]=[e("p",null,[s("If you use "),e("code",{class:"docs-inline-code"},"nvm"),s(" or another Node version manager, install Melies in the Node version you use most often to keep it available across sessions.")],-1)])]),_:1})]),code:l(()=>[o(c,{code:"npm install -g melies",lang:"bash"}),t[13]||(t[13]=e("p",{class:"text-xs text-gray-500 mt-3 mb-3"},"Verify the installation:",-1)),o(c,{code:"melies --version",lang:"bash"})]),_:1}),o(u,{id:"authentication"},{description:l(()=>[t[15]||(t[15]=e("h2",{class:"docs-h2"},"Authentication",-1)),t[16]||(t[16]=e("p",{class:"docs-p"},[s("You need a Melies account to use the CLI. Sign up at "),e("a",{href:"https://melies.co",class:"docs-link"},"melies.co"),s(" (Google or email).")],-1)),t[17]||(t[17]=e("div",{class:"docs-steps"},[e("div",{class:"docs-step"},[e("div",{class:"docs-step-number"},"1"),e("div",null,[e("p",{class:"text-sm text-gray-300 mb-2"},"Run the login command to authenticate via your browser:"),e("p",{class:"text-xs text-gray-500 mt-2"},"This opens your browser. After you sign in, the token is saved automatically.")])]),e("div",{class:"docs-step"},[e("div",{class:"docs-step-number"},"2"),e("div",null,[e("p",{class:"text-sm text-gray-300"},"For CI pipelines and agents, use a token directly.")])])],-1)),o(p,{type:"info",title:"Where to find your API token"},{default:l(()=>[...t[14]||(t[14]=[e("p",null,"Click your avatar (top right) → Settings → API tab. You can generate up to 5 tokens.",-1),e("p",{class:"mt-2"},[s("You can also set "),e("code",{class:"docs-inline-code"},"MELIES_TOKEN"),s(" as an environment variable. It takes precedence over the stored config.")],-1)])]),_:1})]),code:l(()=>[o(c,{code:`melies login                         # Opens browser for OAuth
12melies login --token YOUR_TOKEN      # Direct token auth (CI/agents)`,lang:"bash"})]),_:1}),o(u,{id:"quick-start"},{description:l(()=>[t[26]||(t[26]=e("h2",{class:"docs-h2"},"Quick Start",-1)),t[27]||(t[27]=e("p",{class:"docs-p"},"The Melies workflow follows a consistent pattern: check your balance, pick a model, generate, and use the result.",-1)),t[28]||(t[28]=e("h3",{class:"text-base font-semibold text-white mt-6 mb-2"},"Quality Presets",-1)),t[29]||(t[29]=e("p",{class:"docs-p"},"Every command supports three quality presets so you can trade speed for quality without memorizing model names. Melies picks the best model for you.",-1)),t[30]||(t[30]=e("div",{class:"docs-table-wrapper mt-4"},[e("table",{class:"docs-table"},[e("thead",null,[e("tr",null,[e("th",null,"Preset"),e("th",null,"What it does"),e("th",null,"Best for")])]),e("tbody",null,[e("tr",null,[e("td",null,[e("code",null,"--fast")]),e("td",{class:"text-gray-400"},"Fastest model available. Lower cost, near-instant generation."),e("td",{class:"text-gray-400"},"Drafts, iteration, testing prompts")]),e("tr",null,[e("td",null,[e("code",null,"--quality")]),e("td",{class:"text-gray-400"},"Balanced model. Better detail and coherence at moderate cost."),e("td",{class:"text-gray-400"},"Social media, thumbnails, most use cases")]),e("tr",null,[e("td",null,[e("code",null,"--best")]),e("td",{class:"text-gray-400"},"Top-tier model. Maximum quality, longer generation, higher cost."),e("td",{class:"text-gray-400"},"Hero shots, final renders, portfolio work")])])])],-1)),e("p",W,[t[19]||(t[19]=s("If no preset is specified, ",-1)),t[20]||(t[20]=e("code",{class:"docs-inline-code"},"--fast",-1)),t[21]||(t[21]=s(" is the default. You can always override with ",-1)),t[22]||(t[22]=e("code",{class:"docs-inline-code"},"-m model-id",-1)),t[23]||(t[23]=s(" to pick a specific model. See the ",-1)),o(d,{to:i(r)("/docs/models"),class:"docs-link"},{default:l(()=>[...t[18]||(t[18]=[s("Models page",-1)])]),_:1},8,["to"]),t[24]||(t[24]=s(" for the full catalog.",-1))]),o(p,{type:"tip"},{default:l(()=>[...t[25]||(t[25]=[e("p",null,[s("The "),e("code",{class:"docs-inline-code"},"--sync"),s(" flag makes commands wait for the result instead of returning immediately. This is especially useful for scripts and AI agents.")],-1)])]),_:1})]),code:l(()=>[o(c,{code:U,lang:"bash"})]),_:1}),o(u,{id:"credit-system"},{description:l(()=>[t[39]||(t[39]=e("h2",{class:"docs-h2"},"Credit System",-1)),t[40]||(t[40]=e("p",{class:"docs-p"},[s("Every generation costs credits. The exact cost depends on the model used. Quality presets ("),e("code",{class:"docs-inline-code"},"--fast"),s(", "),e("code",{class:"docs-inline-code"},"--quality"),s(", "),e("code",{class:"docs-inline-code"},"--best"),s(") select a default model for you. Check your balance with "),e("code",{class:"docs-inline-code"},"melies credits"),s(".")],-1)),t[41]||(t[41]=e("h4",{class:"text-sm font-semibold text-white mt-6 mb-3"},"Default preset models",-1)),t[42]||(t[42]=e("div",{class:"docs-table-wrapper"},[e("table",{class:"docs-table"}
12,[e("thead",null,[e("tr",null,[e("th",null,"Preset"),e("th",null,"Image model"),e("th",null,"Credits"),e("th",null,"Video model"),e("th",null,"Credits")])]),e("tbody",null,[e("tr",null,[e("td",null,[e("code",null,"--fast"),s(" (default)")]),e("td",{class:"text-gray-400"},"flux-schnell"),e("td",null,"2"),e("td",{class:"text-gray-400"},"kling-v2"),e("td",null,"30")]),e("tr",null,[e("td",null,[e("code",null,"--quality")]),e("td",{class:"text-gray-400"},"flux-pro"),e("td",null,"8"),e("td",{class:"text-gray-400"},"kling-v3-pro"),e("td",null,"100")]),e("tr",null,[e("td",null,[e("code",null,"--best")]),e("td",{class:"text-gray-400"},"gpt-image-2.5-sunburst"),e("td",null,"20"),e("td",{class:"text-gray-400"},"veo-3.1"),e("td",null,"400")])])])],-1)),o(p,{type:"info"},{default:l(()=>[e("p",null,[t[32]||(t[32]=s("Use ",-1)),t[33]||(t[33]=e("code",{class:"docs-inline-code"},"-m model-id",-1)),t[34]||(t[34]=s(" to override presets. Credits vary by model. Some models have variable pricing based on resolution or duration. See the ",-1)),o(d,{to:i(r)("/docs/models"),class:"docs-link"},{default:l(()=>[...t[31]||(t[31]=[s("Models",-1)])]),_:1},8,["to"]),t[35]||(t[35]=s(" page for the full catalog and per-model pricing.",-1))])]),_:1}),e("p",$,[t[37]||(t[37]=s(" Need more credits? Check our ",-1)),o(d,{to:i(r)("/pricing"),class:"docs-link"},{default:l(()=>[...t[36]||(t[36]=[s("pricing plans",-1)])]),_:1},8,["to"]),t[38]||(t[38]=s(" for details on credit bundles and subscriptions. ",-1))])]),code:l(()=>[o(c,{code:"melies credits",lang:"bash"}),t[43]||(t[43]=e("p",{class:"text-xs text-gray-500 mt-3 mb-3"},"Group usage by day:",-1)),o(c,{code:"melies credits -g day",lang:"bash"})]),_:1})])}}});export{Z as default};

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.