AI Essay Writer Skill for Agents
AI Essay Writer Skill for Agents
A ready-to-use skill for AI agents to generate essays via the AI Pass API.
Quick Start
Set your API key as $AIPASS_API_KEY (get one at the Developer Dashboard).
Generate an Essay
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": "Write a well-structured academic essay with introduction, body paragraphs, and conclusion."},
{"role": "user", "content": "The impact of AI on modern education"}
]
}'
Response path: choices[0].message.content
Parameters
- model:
gpt-5-mini(recommended for essays) - Style control: Adjust the system prompt — academic, persuasive, narrative, casual
- Length control: Specify word count in system prompt
Pricing
- $1 free credit on signup
- Pay as you go — each essay costs fractions of a cent
Related
Skill File
---
name: essay-writer
description: Generate well-structured essays on any topic using AI Pass text completion API.
version: 1.0.0
---
# Essay Writer Skill
Generate essays using AI text completion.
## Requirements
- AI Pass API key (create at https://aipass.one/panel/developer.html)
- Set as environment variable: `$AIPASS_API_KEY`
## Usage
### Generate Essay (curl)
```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": "Write a well-structured academic essay with introduction, body paragraphs with clear arguments, and conclusion."},
{"role": "user", "content": "The impact of artificial intelligence on modern education"}
]
}'
```
Response: `r.choices[0].message.content` — complete essay text.
### With Custom Parameters
```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": "Write a 500-word persuasive essay. Use strong arguments with evidence. Formal tone."},
{"role": "user", "content": "Why renewable energy should replace fossil fuels"}
]
}'
```
### Python
```python
import requests, os
def write_essay(topic, style="academic", length="500 words"):
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"Write a well-structured {style} essay, approximately {length}. Include introduction, body paragraphs, and conclusion."},
{"role": "user", "content": topic}
]
}
)
return r.json()["choices"][0]["message"]["content"]
print(write_essay("The future of space exploration"))
```
## Notes
- Model: `gpt-5-mini` (fast, high quality text generation)
- $1 free credit on signup at https://aipass.one
- Create API key at https://aipass.one/panel/developer.html
## Related
- App: https://aipass.one/apps/essay-writer
- User guide: https://aipass.one/blog/ai-essay-writer-online
- Dev tutorial: https://aipass.one/blog/build-ai-essay-writer
Download Skill File