AI
Pass

AI Affirmation Generator — Agent Skill

AI Affirmation Generator — Agent Skill

Generate personalized affirmations via the AI Pass API. Ready-to-use for any AI agent.

Setup

  1. Create an account at aipass.one
  2. Go to Developer Dashboard → API Keys
  3. Set your key as $AIPASS_API_KEY

Usage

See the skill file below for complete curl and Python examples.

Related

Skill File

---
name: ai-affirmation-generator
description: Generate personalized affirmations using AI Pass API.
version: 1.0.0
---

# AI Affirmation Generator Skill

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

## Generate Affirmations

```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": "Generate 5 personalized affirmations based on the user situation. Make them specific and meaningful."},
      {"role": "user", "content": "I am nervous about a job interview tomorrow"}
    ]
  }'
```

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

## Python

```python
import requests, os

def generate_affirmations(situation, tone="empowering"):
    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"Generate 5 personalized {tone} affirmations. Specific and meaningful."},
                {"role": "user", "content": situation}
            ]
        }
    )
    return r.json()["choices"][0]["message"]["content"]
```

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