# Gemini CLI — Connect Sumi Studio to your AI agent

Sumi Studio runs a remote MCP server. Copy the ready-to-paste setup below to connect directly (OAuth sign-in is also available), and your agent can generate images, video and audio, manage assets and build canvases, paying from your credits at the same prices as the website.

Source: https://sumistudio.ai/en/connect/gemini-cli

Server URL: https://sumistudio.ai/api/mcp
Server Card (SEP-1649): https://sumistudio.ai/.well-known/mcp/server-card.json
Public Tool Catalog: https://sumistudio.ai/.well-known/mcp/server.json

## Auto-install via CLI & upload local files

Run one command to auto-detect Antigravity, Claude, Cursor, VS Code, Windsurf, Codex, Gemini CLI and Cherry Studio, merge config safely with backups, and enable local file uploads via the stdio bridge.

```sh
npx @sumistudio/mcp install --toolset all
```

## Toolset profile

- **Core (39 · Cursor / ChatGPT)** (`https://sumistudio.ai/api/mcp/t/core`): 39 essential tools for models, quotes, generation, projects, assets, and canvases — fits Cursor and ChatGPT 40-tool limits.
- **Studio (83 · Antigravity / Windsurf)** (`https://sumistudio.ai/api/mcp/t/studio`): 83 studio tools (core + elements, voices, presets, creative records, workspace, templates, Cast me, and rap) — fits Antigravity, Windsurf, VS Code, Cline, and Trae 100-tool limits.
- **Video Editor (53)** (`https://sumistudio.ai/api/mcp/t/editor`): 53 editing tools (core + CoreCut timelines, captions, voiceover, and film export).
- **All Tools (106)** (`https://sumistudio.ai/api/mcp`): All 106 tools, adding trash and real-person portraits — for clients without a 100-tool cap.

> The snippets below use YOUR_API_KEY as a placeholder. Sign in to generate a key in one click and auto-fill every command and URL.

## Gemini CLI (CLI)

### 1. Copy this and send it to your agent

Copy and send this message to your agent: it sets up Sumi Studio with your API key automatically (no login pop-up), or tells you the exact clicks if a menu is required.

```text
Connect me to Sumi Studio so I can create images, videos, and audio from here.

1. First check whether you can call the Sumi Studio list_projects tool. If you can, skip to step 3.
2. If you can't, merge this configuration into ~/.gemini/settings.json (keeping existing mcpServers entries; it already includes my API key header, so no browser sign-in is needed):
{
  "mcpServers": {
    "sumistudio": {
      "httpUrl": "https://sumistudio.ai/api/mcp",
      "headers": {
        "Authorization": "Bearer YOUR_API_KEY"
      }
    }
  }
}
Restart Gemini CLI if tools don't appear right away.
3. Call list_projects to confirm the connection works and show my most recent projects, then call open_studio and tell me my account and credit balance, then ask me what I want to make this time.
```

### 2. Verify connection and start creating

It works right away once added—no browser sign-in needed. As soon as your agent confirms the connection, ask it to create images, videos, or audio.

### Set it up by hand

Prefer to add it yourself, or your agent cannot finish setup? Copy and paste the steps below—signed-in users get a real key auto-filled on copy.

#### 1. Add the server configuration

Merge the JSON below into ~/.gemini/settings.json (keeping existing entries). Uses httpUrl + Authorization header—no browser login needed.

```json
{
  "mcpServers": {
    "sumistudio": {
      "httpUrl": "https://sumistudio.ai/api/mcp",
      "headers": {
        "Authorization": "Bearer YOUR_API_KEY"
      }
    }
  }
}
```

## Slash workflows ready after connecting

Type / in your connected agent to launch these 8 studio workflows, or copy an example prompt below.

- `/storyboard` — **Visual Storyboard**: Break a concept into shot lists and keyframes on a canvas. (`/storyboard 6-shot cyberpunk rain-alley chase opening, 16:9 cinematic lighting`)
- `/image-to-video` — **Image to Video**: Animate a reference image with camera motion and model quotes. (`/image-to-video animate my latest hero frame with slow dolly-in, 5s 1080p`)
- `/canvas-build` — **Canvas Workflow**: Assemble linked script, image, video and audio nodes on a canvas. (`/canvas-build 15s perfume commercial canvas with 3 visual scenes and voiceover`)
- `/rough-cut` — **Timeline Rough Cut**: Assemble clips, captions and audio into a Smart Cut timeline. (`/rough-cut assemble the 4 generated clips in my latest project with auto captions`)
- `/character-sheet` — **Character Turnaround**: Generate consistent front, side, back and expression sheets. (`/character-sheet 3-view turnaround and 4 expressions for an ink-brush mecha heroine`)
- `/director-brief` — **Director Brief**: Draft a structured treatment, pacing plan and credit estimate. (`/director-brief 30s brand film for an electric bike launch with budget estimate`)
- `/upscale-polish` — **Upscale & Polish**: Enhance resolution, lighting consistency and export deliverables. (`/upscale-polish upscale the selected keyframes to 4K and prep final export`)

## What you can do once connected

Once connected, ask your agent to generate images, video and audio, manage your assets or build a canvas. It shows the price before every generation; when in doubt, ask it for an estimate first.

## Manage connected agents

API keys appear under Settings › API keys, and OAuth apps under Settings › Authorized apps. You can revoke a key or disconnect an app at any time.
