build with selfielab

give any agent the same creative tools as our studio canvas agent — images, video, edits, captions, stitch & trim.

cli

npm install -g selfielab — generate, video, stitch, trim, mute, remove-bg, write-shot-prompt with --json for agents.

mcp connector

one-click remote mcp at /api/mcp — oauth browser sign-in for claude, codex, grok; optional cli fallback.

rest api

Full HTTP API: image/video generation, characters, media tools, credits. Bearer sl_ keys.

llms.txt

Machine-readable agent docs for GEO/AEO crawlers and coding agents.

quick install

cli
npm install -g selfielab

# one-off without a global install:
npx selfielab tools --json
auth
export SELFIELAB_API_KEY=sl_your_api_key
# optional — defaults to https://selfielabstudio.com
export SELFIELAB_BASE_URL=https://selfielabstudio.com

canvas parity tools

external agents can run the full creative loop without the web ui. authenticate with a personal sl_ api key (settings → api keys).

toolwhat it does
create_imagegenerate image from prompt + optional face ref
create_image_batch2–4 images in one request
edit_imagerestyle existing image with instruction
remove_backgroundtransparent PNG cutout (2 credits)
overlay_textcaption image or video
create_videoanimate image with motion prompt
edit_videogenerative video restyle
stitch_videosmerge 2–5 clips in order
trim_videocut start/end seconds
mute_videostrip audio track
write_shot_promptvision → reusable shot prompt

auth

headers
Authorization: Bearer sl_your_api_key
# or
X-API-Key: sl_your_api_key
# OAuth access tokens from the connector flow also work as:
# Authorization: Bearer <access_token>

create keys in the app under settings. api keys require a pro or studio subscription. generation spends the same credits as the web product.

suggested agent workflow

  1. write_shot_prompt on a reference look (optional)
  2. create_image / create_image_batch with face reference
  3. edit_image or remove_background / overlay_text
  4. create_video to animate
  5. trim_video · mute_video · stitch_videos · edit_video
  6. poll job status with selfielab status or the jobs api

more docs

library

no items found