目录收录

Dicebear Avatars API

Generate avatars in different styles with a free API. Dicebear 提供免费头像生成 API,支持多种风格(扁平风、像素风、插画风等),可直接嵌入 HTML 或下载为 SVG 文件。

免费 API 目录收录 无需认证 CORS: Yes
来源类型
目录收录
可用方式
免费可用
认证方式
无需认证
协议格式
REST
计费摘要
免费为主
稳定性说明
以来源方说明为准
面向 Agent

如何调用 Dicebear Avatars API

供 Hermes、OpenClaw、浏览器自动化 Agent 等读取。优先解析 <head>#boyapi-agent-spec JSON。

Hermes OpenClaw Coding Agent Browser Agent
  1. 1. 确认调用目标

    业务请求发往 https://api.dicebear.com,不要向 boyapi.com 发送 Dicebear Avatars 业务 API。

  2. 2. 构造 HTTP 请求
    • 方法:GET
    • 路径:/7.x/lorelei/svg
    • 必填:seed
    • 鉴权:无需 API Key
  3. 3. 最小可执行示例

    复制以下 cURL 试调:

    curl -sS 'https://api.dicebear.com/7.x/lorelei/svg?seed=peter'
  4. 4. 解析响应

    API 直接返回 SVG 内容。将 URL 作为图片 src 使用即可,如

  5. 5. 环境与限制

    CORS:Yes。浏览器联调以实际结果为准。

机器可读规范(JSON)

application/json · #boyapi-agent-spec
{
  "spec_version": "1.0",
  "page_type": "boyapi_api_detail",
  "api": {
    "slug": "dicebear-avatars",
    "name": "Dicebear Avatars"
  },
  "invocation": {
    "method": "GET",
    "base_url": "https://api.dicebear.com",
    "path": "/7.x/lorelei/svg",
    "full_url_example": "https://api.dicebear.com/7.x/lorelei/svg?seed=peter"
  }
}

完整字段以 <head>#boyapi-agent-spec 为准。

Agent 注意:boyapi.com 仅提供目录与文档,不提供第三方 API 代理网关。
接入信息

可用方式

目录定位
免费目录收录(public-apis)
认证要求
无需认证(auth=No)
HTTPS
支持(https=Yes)
CORS
Yes — 可在浏览器前端直接调用
接口名称
Dicebear Avatars
典型端点
GET /7.x/lorelei/svg
功能描述
Generate avatars in different styles with a free API

平台支持

  • 目录收录 API,实际请求发往 https://api.dicebear.com
  • CORS 支持 Yes,浏览器可直接调用
  • 返回 SVG 格式,可直接嵌入 HTML <img> 标签
  • 支持多种风格:lorelei(扁平风)、notionists(插画风)、pixel-art(像素风)、avataaars、identicon 等