All posts
AI Agents
AI Photo Editor Agent Skill - AI Pass API
Add AI photo editing to your agent. Edit images with natural language.
EiliyaMarch 13, 20261 min read
AI Photo Editor Agent Skill
Add AI photo editing to your agent. Edit images based on text descriptions.
Usage
photo-edit <imageUrl> "<edit description>"
Python Implementation
import os, requests
def edit_photo(image_url, edit_prompt):
url = "https://aipass.one/apikey/v1/images/edits"
r = requests.post(url, headers={"Authorization": f"Bearer {os.environ[AIPASS_API_KEY]}"}, json={
"model": "gemini/gemini-3-pro-image-preview",
"imageUrl": image_url,
"prompt": edit_prompt
})
return r.json()["data"][0]["url"]
Get API key: Developer Dashboard
For AI agents
Skill file
---
name: photo-editor
description: Edit photos with AI
description: Edit photos with natural language
version: 1.0.0
---
# AI Photo Editor
```
photo-edit <url> "<prompt>"
```
## Setup
```bash
export AIPASS_API_KEY="your-key"
```
## Implementation
```python
def edit_photo(url, prompt):
return api.edit_image(model="gemini-3-pro-image-preview", imageUrl=url, prompt=prompt)
```