PixelMuse

Create stunning AI-generated artwork with cutting-edge models.

Free Tools

  • Prompt Library
  • Prompt Enhancer
  • Blog

Resources

  • Explore Gallery
  • Get Credits
  • Changelog
  • Sitemap

Developers

  • API Reference
  • API Keys
  • CLI & MCP Server
  • GitHub
  • llms.txt
  • Privacy Policy
  • Terms of Service
  • Created by Starmorph

© 2026 PixelMuse. All rights reserved.

Contact Us
Now on npm

AI image generation from the terminal

CLI, interactive TUI, and MCP server for AI agents — powered by the Pixelmuse API. One install, any model, predictable pricing.

npm install -g pixelmuse
Sign up — 15 free creditsGitHub

Quick Start

1

Install globally

npm install -g pixelmuse
2

Authenticate with your API key

pixelmuse login
3

Generate your first image

pixelmuse "a cat floating through space"

Requires Node.js 20+. For terminal image previews, install chafa (brew install chafa).

Four Interfaces, One API

Pick the one that fits your workflow. They all use the same API key and credit balance.

CLI

Generate images from any terminal. Pipe from stdin, JSON output for scripting, watch mode for iteration.

pixelmuse "a cyberpunk city at night" -m recraft-v4 -a 16:9
Best for: Scripting, automation, CI/CD

Interactive TUI

Full terminal UI with model browser, generation wizard, gallery, and account management.

pixelmuse ui
Best for: Visual browsing, exploring models

MCP Server

Let AI agents in Claude Code, Cursor, and Windsurf generate images autonomously.

{ "pixelmuse": { "command": "npx", "args": ["-y", "pixelmuse-mcp"] } }
Best for: AI-assisted workflows

Claude Code Skill

A prompt template that auto-triggers when you ask Claude to generate images mid-conversation.

"generate a blog thumbnail for my React hooks post"
Best for: Generating images in Claude Code

Interactive TUI

Browse models, generate images, and manage your account — all from a visual terminal interface.

CLI Reference

All commands and flags at a glance.

Commands

CommandDescription
pixelmuse "prompt"Generate an image (default command)
pixelmuse modelsList available models with credit costs
pixelmuse accountAccount balance and usage stats
pixelmuse historyRecent generations in a table
pixelmuse open <id>Open a generation in system viewer
pixelmuse loginAuthenticate with your API key
pixelmuse logoutRemove stored credentials
pixelmuse template <cmd>Manage prompt templates (init/use/list)
pixelmuse uiLaunch the interactive TUI

Flags

FlagDescriptionDefault
-m, --modelModel IDnano-banana-2
-a, --aspect-ratioAspect ratio1:1
-s, --styleStyle presetnone
-o, --outputOutput file pathauto
--jsonMachine-readable JSON output—
--no-previewSkip terminal image preview—
--openOpen result in system viewer—
--clipboardCopy image to clipboard—
--watch <file>Regenerate when file changes—
--no-saveDon't save image to disk—

MCP Server Setup

Give your AI agent the power to generate images. Add this to your editor config.

Add to ~/.claude/.mcp.json

{
  "mcpServers": {
    "pixelmuse": {
      "command": "npx",
      "args": ["-y", "pixelmuse-mcp"],
      "env": {
        "PIXELMUSE_API_KEY": "pm_live_your_key_here"
      }
    }
  }
}
ToolDescription
generate_imageGenerate an image with model, aspect ratio, style, and output path
list_modelsList all available models with credit costs
check_balanceCheck your credit balance and plan info

Prompt Templates

Save reusable prompts as YAML files with variables and default settings.

# Scaffold a new template
pixelmuse template init product-shot

# Generate with a template
pixelmuse template use blog-thumbnail --var subject="React hooks guide"

# List all templates
pixelmuse template list

Template format (~/.config/pixelmuse-cli/prompts/)

name: Blog Thumbnail
description: Dark-themed blog post thumbnail
prompt: >
  A cinematic {{subject}} on a dark gradient background,
  dramatic lighting, 8K resolution
defaults:
  model: nano-banana-2
  aspect_ratio: "16:9"
variables:
  subject: "code editor with syntax highlighting"
tags: [blog, thumbnail, dark]

Models

Switch models with -m model-id. All models available on every plan.

ModelCreditsBest For
nano-banana-2default

Speed, text rendering, world knowledge

1Speed, text rendering, world knowledge
nano-banana-pro

Text rendering, real-time info, multi-image editing

4Text rendering, real-time info, multi-image editing
flux-schnell

Quick mockups, ideation

1Quick mockups, ideation
imagen-3

Realistic photos, complex compositions

1Realistic photos, complex compositions
recraft-v4

Typography, design, composition

1Typography, design, composition
recraft-v4-pro

High-res design, art direction

7High-res design, art direction

Start Building

Everything you need to integrate AI image generation into your workflow.

API Reference

Full REST API docs (Scalar)

API Keys

Create and manage keys

Pricing

Plans from $12/mo, packs from $10

GitHub

Source, issues, and contributions

PixelMuse

Create stunning AI-generated artwork with cutting-edge models.

Free Tools

  • Prompt Library
  • Prompt Enhancer
  • Blog

Resources

  • Explore Gallery
  • Get Credits
  • Changelog
  • Sitemap

Developers

  • API Reference
  • API Keys
  • CLI & MCP Server
  • GitHub
  • llms.txt
  • Privacy Policy
  • Terms of Service
  • Created by Starmorph

© 2026 PixelMuse. All rights reserved.

Contact Us

Sign up today and get 15 free credits — start creating! to create amazing images!

Sign up
PixelMuse Logo
PixelMuse
Beta v0.7.0
CreateExploreMy ImagesGet Credits