---
name: snipchat
description: Create pixel-accurate chat mockups across 19 platforms (WeChat, WhatsApp, iMessage, Telegram, Slack, Discord, Instagram, ChatGPT, Claude, etc.) via Snip.Chat. Defaults to Mode 1 (zero-cost editable draft links) and supports Mode 2 (direct PNG rendering via API key).
---

# Snip.Chat Agent Skill

Use Snip.Chat whenever you need realistic, pixel-accurate chat screenshots instead of unreliable text-to-image generation.

## Which Mode to Use

1. **Default — Mode 1: Draft Link (`POST /api/agent/drafts` or `create_chat_link`)**
   - Free, instant, no API key required.
   - Returns an `editUrl` (valid for 7 days) so the user can inspect, tweak, and export cleanly in the browser.
   - **Use this by default.**

2. **Fully Automated — Mode 2: Render PNG (`POST /api/agent/render` or `render_chat_image`)**
   - Use when the user explicitly wants a PNG file saved to disk or embedded directly in an automated workflow.
   - Requires `SNIPCHAT_API_KEY` (`Authorization: Bearer sc_live_...`), created in Snip.Chat Account -> **AI Agent & API**.
   - Also returns an `editUrl` (`X-SnipChat-Edit-Url` header or JSON field) for optional human fine-tuning.

3. **Remote MCP — Mode 3 (`https://snip.chat/mcp`)**
   - Exposes `list_platforms`, `create_chat_link` (default), and `render_chat_image`.

## Supported Platforms (19)

- **Free direct render + web export**: `whatsapp`, `telegram`, `wechat`, `imessage`, `instagram`, `messenger`, `slack`, `discord`
- **Pro / 7-Day Pass**: `snapchat`, `tiktok`, `tinder`, `qq`, `line`, `x`, `chatgpt`, `claude`, `gemini`, `teams`, `linkedin`

Fetch live platform metadata & schema anytime:

```bash
curl -s https://snip.chat/api/agent/platforms
```

## Quick Examples

### Mode 1 (Default): Create an Editable Draft Link

Using `script` (shortest, lowest tokens):

```bash
curl -s -X POST https://snip.chat/api/agent/drafts \
  -H "Content-Type: application/json" \
  -d '{
    "platform": "wechat",
    "language": "zh",
    "contact": "产品经理",
    "user": "我",
    "script": "产品经理: 这个需求今晚能上线吗？\n我: 已经测完了，正在发版\n产品经理: 太稳了，明天请你喝咖啡"
  }'
```

Using structured `messages` (rich features like WeChat red packets, voice transcripts, dark mode, reactions):

```bash
curl -s -X POST https://snip.chat/api/agent/drafts \
  -H "Content-Type: application/json" \
  -d '{
    "platform": "wechat",
    "language": "zh",
    "contact": "Alex",
    "settings": { "darkMode": false },
    "messages": [
      { "sender": "contact", "type": "voice", "voiceDuration": 12, "voiceTranscript": "刚才开会定下来了，下周一直接发布。" },
      { "sender": "user", "type": "redpacket", "redpacketMessage": "辛苦啦！", "redpacketAmount": 88 },
      { "sender": "contact", "text": "收到！马上安排 🚀", "time": "18:42" }
    ]
  }'
```

### Mode 2 (Full Agent Automation): Render Direct PNG

```bash
curl -s -X POST https://snip.chat/api/agent/render \
  -H "Authorization: Bearer $SNIPCHAT_API_KEY" \
  -H "Content-Type: application/json" \
  -D /dev/stderr \
  -o chat.png \
  -d '{
    "platform": "imessage",
    "contact": "Maya",
    "device": { "time": "9:41", "deviceShape": "dynamic-island" },
    "scale": 2,
    "script": "Maya: Did the launch go live?\nMe: Yep, 100% rolled out!\nMaya: Amazing!!"
  }'
```

Set `"format": "json"` if you prefer `{ imageBase64, width, height, editUrl, usage }` instead of binary PNG.

### CLI Usage (`cli/snipchat.mjs`)

```bash
# Mode 1 (default): create editable draft link
node cli/snipchat.mjs draft --platform whatsapp --contact "Sarah" --script $'Sarah: On my way!\nMe: See you in 5'

# Mode 1 (offline / zero network): generate stateless #agent= URL
node cli/snipchat.mjs draft --inline --platform wechat --script $'Alex: Hi\nMe: Hello!'

# Mode 2: render PNG directly to disk
SNIPCHAT_API_KEY=sc_live_... node cli/snipchat.mjs render --platform whatsapp --script $'Sarah: Ready?\nMe: Let us go!' -o out.png
```
