Overview
The AI Icon Generator is a powerful REST API that leverages artificial intelligence to create custom icons on demand. Instead of manually designing icons or searching through icon libraries, users can describe what they need in plain language and receive generated icon assets within seconds.
This tool is ideal for developers, designers, and product teams who need rapid icon generation for web applications, mobile apps, design systems, or marketing materials. Whether you're prototyping a new interface, building a comprehensive icon set, or automating icon creation in your CI/CD pipeline, the AI Icon Generator eliminates the friction of traditional icon design workflows.
Key capabilities include intelligent interpretation of natural language prompts, consistent style generation, and immediate delivery of ready-to-use icon assets. The API integrates seamlessly into existing development environments and scales from individual developers to enterprise teams.
Usage
Sample Request
CODEBLOCK0
Sample Response
CODEBLOCK1
Endpoints
POST /generate-icons
Description: Generate one or more custom icons based on text prompts using AI.
Method: INLINECODE0
Path: INLINECODE1
Parameters:
| Name | Type | Required | Description |
|---|
| INLINECODE2 | string | Yes | Natural language description of the icon to generate (e.g., "gear icon", "shopping cart with arrow") |
| INLINECODE3 |
string | No | Visual style for the generated icon. Common values:
modern,
flat,
outlined,
filled,
3d,
minimalist. Default:
modern |
|
size | string | No | Output icon size. Common values:
64px,
128px,
256px,
512px,
1024px. Default:
256px |
|
format | string | No | Output image format. Accepted values:
png,
svg,
webp. Default:
png |
|
count | integer | No | Number of icon variations to generate (1-5). Default:
1 |
|
color_scheme | string | No | Color preference for the icon. Values:
monochrome,
vibrant,
pastel,
custom. Default:
monochrome |
Response Schema:
CODEBLOCK2
Status Codes:
- -
200: Icons generated successfully - INLINECODE32 : Invalid parameters (e.g., unsupported format, invalid style)
- INLINECODE33 : Rate limit exceeded
- INLINECODE34 : Server error during icon generation
Pricing
| Plan | Calls/Day | Calls/Month | Price |
|---|
| Free | 5 | 50 | Free |
| Developer |
20 | 500 | $39/mo |
| Professional | 200 | 5,000 | $99/mo |
| Enterprise | 100,000 | 1,000,000 | $299/mo |
About
ToolWeb.in — 200+ security APIs, CISSP & CISM, platforms: Pay-per-run, API Gateway, MCP Server, OpenClaw, RapidAPI, YouTube.
References
- - Kong Route: https://api.mkkpro.com/creative/ai-icon-generator
- API Docs: https://api.mkkpro.com:8002/docs
概述
AI图标生成器是一款强大的REST API,利用人工智能按需创建自定义图标。用户无需手动设计图标或搜索图标库,只需用自然语言描述需求,即可在数秒内获得生成的图标资源。
该工具非常适合需要为Web应用、移动应用、设计系统或营销材料快速生成图标的开发者、设计师和产品团队。无论您是在原型设计新界面、构建完整的图标集,还是在CI/CD流水线中自动化图标创建,AI图标生成器都能消除传统图标设计工作流程中的障碍。
核心功能包括自然语言提示的智能解读、一致的风格生成,以及即用型图标资源的即时交付。该API可无缝集成到现有开发环境中,并支持从个人开发者到企业团队的不同规模需求。
使用方法
示例请求
json
{
prompt: 带有锁符号的极简云存储图标,
style: 现代,
size: 256px,
format: png
}
示例响应
json
{
success: true,
iconid: icon7a4k9m2x,
prompt: 带有锁符号的极简云存储图标,
style: 现代,
size: 256px,
format: png,
url: https://api.mkkpro.com/icons/icon_7a4k9m2x.png,
created_at: 2024-01-15T10:32:45Z,
expires_at: 2024-04-15T10:32:45Z,
download_count: 0
}
接口端点
POST /generate-icons
描述: 基于文本提示使用AI生成一个或多个自定义图标。
方法: POST
路径: /generate-icons
参数:
| 名称 | 类型 | 必填 | 描述 |
|---|
| prompt | 字符串 | 是 | 待生成图标的自然语言描述(例如:齿轮图标、带箭头的购物车) |
| style |
字符串 | 否 | 生成图标的视觉风格。常用值:现代、扁平、轮廓、填充、3D、极简。默认值:现代 |
| size | 字符串 | 否 | 输出图标尺寸。常用值:64px、128px、256px、512px、1024px。默认值:256px |
| format | 字符串 | 否 | 输出图像格式。可接受值:png、svg、webp。默认值:png |
| count | 整数 | 否 | 生成的图标变体数量(1-5)。默认值:1 |
| color_scheme | 字符串 | 否 | 图标的颜色偏好。值:单色、鲜艳、柔和、自定义。默认值:单色 |
响应结构:
json
{
success: 布尔值,
icon_id: 字符串,
prompt: 字符串,
style: 字符串,
size: 字符串,
format: 字符串,
url: 字符串(图标下载URL),
urls: [字符串数组(当count>1时)],
created_at: 字符串(ISO 8601时间戳),
expires_at: 字符串(ISO 8601时间戳),
download_count: 整数
}
状态码:
- - 200:图标生成成功
- 400:参数无效(例如,不支持的格式、无效样式)
- 429:超出速率限制
- 500:图标生成过程中服务器错误
定价方案
| 方案 | 每日调用次数 | 每月调用次数 | 价格 |
|---|
| 免费版 | 5 | 50 | 免费 |
| 开发者版 |
20 | 500 | $39/月 |
| 专业版 | 200 | 5,000 | $99/月 |
| 企业版 | 100,000 | 1,000,000 | $299/月 |
关于我们
ToolWeb.in — 200+安全API,CISSP和CISM认证,平台:按次付费、API网关、MCP服务器、OpenClaw、RapidAPI、YouTube。
参考链接
- - Kong路由: https://api.mkkpro.com/creative/ai-icon-generator
- API文档: https://api.mkkpro.com:8002/docs