一键导入
icon-generator
Generate AI icons using icon.new. Use when the user wants to create icons, generate icon assets, or needs visual icons for their project.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
菜单
Generate AI icons using icon.new. Use when the user wants to create icons, generate icon assets, or needs visual icons for their project.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
基于 SOC 职业分类
| name | icon-generator |
| description | Generate AI icons using icon.new. Use when the user wants to create icons, generate icon assets, or needs visual icons for their project. |
Generate icons using the icon.new API service.
Use this skill when the user:
Endpoint: POST https://icon.new/api/v1/generate
Authentication: Bearer token via ICON_NEW_API_KEY environment variable, or x402 payment.
Use curl to call the API:
curl -X POST https://icon.new/api/v1/generate \
-H "Authorization: Bearer $ICON_NEW_API_KEY" \
-H "Content-Type: application/json" \
-d '{"prompt": "ICON_DESCRIPTION", "count": COUNT}'
| Parameter | Required | Description |
|---|---|---|
prompt | Yes | Description of the icon (max 100 characters) |
count | No | Number of icons to generate: 1-4 (default: 1) |
{
"icons": [
{
"id": "uuid",
"url": "https://icon.new/api/v1/icons/uuid",
"prompt": "rocket launching into space"
}
],
"credits": {
"used": 1,
"remaining": 42
}
}
Generate a single rocket icon:
curl -s -X POST https://icon.new/api/v1/generate \
-H "Authorization: Bearer $ICON_NEW_API_KEY" \
-H "Content-Type: application/json" \
-d '{"prompt": "rocket launching into space"}'
Generate multiple variations:
curl -s -X POST https://icon.new/api/v1/generate \
-H "Authorization: Bearer $ICON_NEW_API_KEY" \
-H "Content-Type: application/json" \
-d '{"prompt": "shopping cart", "count": 3}'
The API returns URLs for each icon. Append the file extension for the format you need:
# Download as SVG (vector, best for web)
curl -s "https://icon.new/api/v1/icons/ICON_ID.svg" -o icon.svg
# Download as PNG (raster)
curl -s "https://icon.new/api/v1/icons/ICON_ID.png" -o icon.png
# Download as ICO (for favicons)
curl -s "https://icon.new/api/v1/icons/ICON_ID.ico" -o favicon.ico
Supported formats: .svg, .png, .ico
| Status | Meaning |
|---|---|
| 401 | Invalid or missing API key |
| 402 | Insufficient credits (or x402 payment required) |
| 400 | Invalid parameters (check prompt length) |
| 500 | Server error |
1 credit = 1 icon. Credits never expire.
$0.35 USDC per icon on Base mainnet. No account needed — pay directly per request via x402.
Before using this skill, the user must either:
ICON_NEW_API_KEYIf the API key is not set, remind the user to configure it or mention the x402 option.
When the user needs multiple icons, use a single API call with the count parameter instead of making separate calls.
The response includes credit information. Check remaining credits before making additional calls.
After successfully generating icons:
<img src="icon.svg">) or embedded inline