All posts
agent-docs

AI Tone Rewriter — Agent Skill

Agent skill for rewriting text in any tone via AI Pass API. Professional, friendly, formal, casual — ready-to-use skill file.

EiliyaMarch 1, 20261 min read

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.

For AI agents

Skill file

Download
---
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

Related apps