QR Code Art Generation — Agent Skill
QR Code Art Generation — Agent Skill
This post contains a ready-to-use skill for AI agents to generate artistic QR codes via the AI Pass API.
What This Skill Does
Given a URL and a style description, this skill generates a beautiful QR code artwork using AI image generation. The output is a downloadable image URL.
Getting Started
-
Create an account at aipass.one (you get $1 free credit on signup)
-
Go to the Developer Dashboard and create an API key
-
Set your API key as
$AIPASS_API_KEYenvironment variable -
Use the skill below
Quick Example
curl -s -X POST https://aipass.one/apikey/v1/images/generations \
-H "Authorization: Bearer $AIPASS_API_KEY" \
-H "Content-Type: application/json" \
-d '{"model":"flux-pro/v1.1","prompt":"QR code art, beautiful garden landscape, scannable","size":"1024x1024"}'
The response contains data[0].url with the generated image.
Full Skill
See the skillContent field of this post for the complete, copy-paste-ready skill file with bash and Python examples.
Pricing
Pay as you go — each image generation costs a few cents. No subscriptions.
Related
Skill File
---
name: qr-art-generator
description: Generate artistic AI QR codes from a URL and style description using AI Pass image generation API.
version: 1.0.0
---
# QR Code Art Generator Skill
Generate beautiful, scannable QR codes with artistic styles.
## Requirements
- AI Pass API key (create one at https://aipass.one/panel/developer.html)
- Set as environment variable: `$AIPASS_API_KEY`
## Usage
### Generate QR Code Art (curl)
```bash
curl -s -X POST https://aipass.one/apikey/v1/images/generations \
-H "Authorization: Bearer $AIPASS_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"model": "flux-pro/v1.1",
"prompt": "QR code art for URL \"https://example.com\" in style: Japanese ink painting on rice paper. The QR code must remain scannable while being artistic and beautiful.",
"size": "1024x1024"
}'
```
Response: `r.data[0].url` — URL to the generated image.
### Python
```python
import requests, os
def generate_qr_art(url, style, size="1024x1024"):
prompt = f'QR code art for URL "{url}" in style: {style}. Scannable and artistic.'
r = requests.post(
"https://aipass.one/apikey/v1/images/generations",
headers={
"Authorization": f"Bearer {os.environ['AIPASS_API_KEY']}",
"Content-Type": "application/json"
},
json={
"model": "flux-pro/v1.1",
"prompt": prompt,
"size": size
}
)
return r.json()["data"][0]["url"]
# Example
image_url = generate_qr_art("https://mysite.com", "watercolor flowers")
print(image_url)
```
## Style Ideas
- "Japanese ink painting on rice paper"
- "Cyberpunk neon city at night"
- "Watercolor flowers and butterflies"
- "Steampunk gears and clockwork"
- "Minimalist geometric patterns"
## Notes
- The AI generates artistic images with QR-like patterns. For production use, verify scannability.
- Each generation costs a few cents. Get $1 free credit on signup at https://aipass.one
- Model: `flux-pro/v1.1` (image generation)
## Related
- App: https://aipass.one/apps/qr-art
- User guide: https://aipass.one/blog/create-ai-qr-code-art-online
- Dev tutorial: https://aipass.one/blog/build-qr-code-art-app-tutorial
Download Skill File