AI
Pass

AI Tone Rewriter — Agent Skill

AI Tone Rewriter — Agent Skill

Rewrite text in any tone via the AI Pass API. Useful for email drafting, customer support, content creation, and communication automation.

Setup

  1. Create an account at aipass.one
  2. Go to Developer DashboardAPI Keys
  3. Create and copy your API key
  4. Set it as $AIPASS_API_KEY in your environment

Usage

See the skill file below for complete API integration details.

Skill File

---
name: ai-tone-rewriter
description: Rewrite text in any tone (professional, friendly, casual, formal, persuasive, empathetic) using AI Pass API.
version: 1.0.0
---

# AI Tone Rewriter Skill

## Auth
- **API Key:** `$AIPASS_API_KEY`
- Get your key: https://aipass.one/panel/developer.html → API Keys

## Rewrite Text

```bash
curl -s -X POST https://aipass.one/apikey/v1/chat/completions \
  -H "Authorization: Bearer $AIPASS_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "model": "gpt-5-mini",
    "messages": [
      {"role": "system", "content": "Rewrite the following text in a professional tone. Keep the core meaning. Output ONLY the rewritten text."},
      {"role": "user", "content": "Your report is late. This is unacceptable and needs to be fixed immediately."}
    ]
  }'
```

**Response:** `response.choices[0].message.content`

## Python

```python
import requests, os

def rewrite_tone(text, tone="professional"):
    r = requests.post(
        "https://aipass.one/apikey/v1/chat/completions",
        headers={
            "Authorization": f"Bearer {os.environ['AIPASS_API_KEY']}",
            "Content-Type": "application/json"
        },
        json={
            "model": "gpt-5-mini",
            "messages": [
                {"role": "system", "content": f"Rewrite the following text in a {tone} tone. Keep the core meaning. Output ONLY the rewritten text."},
                {"role": "user", "content": text}
            ]
        }
    )
    return r.json()["choices"][0]["message"]["content"]
```

## Available Tones
- professional, friendly, casual, formal, persuasive, empathetic

## Cost
- ~$0.001 per rewrite
- $1 free credit on signup
Download Skill File