~/nano-studio-pro — developers

API · MCP · CLI

The AI product-photography API — for code and agents

Generate, cut out, and search professional product photography from your own code — or hand the same tools to an AI agent over MCP. Powered by Nano Banana 2. Start with free trial credits, no card required.

curl -X POST https://nanostudiopro.com/api/v1/generations \
  -H "Authorization: Bearer sk_sf_live_..." \
  -H "Content-Type: application/json" \
  -d '{
    "project_id": "prj_...",
    "prompt": "A leather handbag on a marble table, soft daylight",
    "resolution": "2K"
  }'
A developer building with the Studio Pro API at their desk, pixel-art styleA programmer debugging code late at night, pixel-art style

What you can build

Every endpoint returns a tracked task and signed URLs. Versioned under /api/v1.

Generate

Create product photos from a prompt + up to 14 reference images.

POST /v1/generations

Cut out

Extract the subject as a transparent PNG with a clean background plate.

POST /v1/cutouts

Import

Drop any local or remote image straight into a project timeline.

POST /v1/generations/upload

Search

Full-text + detection-aware search across a user's whole library.

GET /v1/search

Assets

Manage a reusable reference library — models, poses, backgrounds.

GET/POST /v1/assets

Tasks

Track every async job; poll status, cancel, or retry.

GET /v1/tasks

Embed

Put the search experience on your own site with the <nano-search> widget — two lines of HTML, no build step.

/embed/search.js

Model Context Protocol

Connect any AI agent

Expose the whole studio as MCP tools. The user speaks naturally; the agent picks the tool and fills the parameters — no glue code, no per-app integration. 30 tools covering generation, sheets, editing (product placement, item swaps, style transfer), cutout, video, characters and places, storyboards (plan, make and share an interactive film), detections, search, projects, assets, and tasks, all backed by the same /v1 API.

“Generate this bag on a marble table in 2K”→generate_image
“Remove the background from this photo”→cutout
“Find all my red-dress shots on a light background”→search
“How many credits do I have left?”→whoami
# Remote — paste the URL into any MCP host that takes a token
https://nanostudiopro.com/api/mcp

# Local (stdio) — with the CLI installed, this is the whole setup
claude mcp add --scope user nanostudio nsp mcp

Works in Claude Desktop, Claude Code, and any MCP-compatible host. Full tool reference →

CLI

Pure Node, zero dependencies. Install with one line, authenticate with a device flow, and pipe your token anywhere.

curl https://nanostudiopro.com/cli/nsp | node -   # install
nsp login                              # device-flow auth (opens browser)
nsp token                              # print your token, pipe into curl

Authentication

Two ways in — both scoped and revocable:

  • Personal access token

    Create one in settings, send it as Authorization: Bearer. Optional daily spend caps per token.

  • Device flow (RFC 8628)

    For CLIs and tools — the user approves in a browser, no copy-paste. Guide →

Everything else