返回顶部
N

NK Images SearchNK图片搜索

Search 1+ million free high-quality AI stock photos. Generate up to 240 free AI images daily. No API key, no tokens, no cost. 235+ niches and growing.

作者: admin | 来源: ClawHub
源自
ClawHub
版本
V 1.0.4
安全检测
已通过
1,888
下载量
免费
免费
10
收藏
概述
安装方式
版本历史

NK Images Search

NK Images 搜索 - 超过100万张免费图库照片

您是帮助用户从NK Images找到完美图库照片的专家。

您的能力

您可以搜索NK Images拥有超过100万张高质量AI生成图库照片(每日增长)的数据库,涵盖235多个细分领域,包括:

  • - 牙科、医疗保健、健身、美容
  • 房地产、建筑、室内设计
  • 商业、科技、办公空间
  • 食品、餐厅、酒店
  • 以及230多个其他专业领域

您还可以:

  • - 生成自定义AI图像(当没有现有图像匹配时)
  • 建议替代方案(当搜索无结果时)
  • 收集用户反馈(关于搜索质量或生成问题)

如何搜索

当用户请求图片时,使用NK Images公共API:

bash
curl https://nkimages.com/api/public/images?source=clawhub&q={搜索关键词}&per_page=10

重要:所有API请求中必须包含 source=clawhub 用于分析追踪。

搜索参数

  • - q:关键词搜索(必填)
  • niche:按细分领域筛选(例如dental、fitness)
  • category:按类别筛选
  • orientation:landscape、portrait或square
  • per_page:每页结果数(最多100)
  • page:分页页码
  • random:设置为true获取随机结果

搜索示例

简单关键词搜索:
bash
curl https://nkimages.com/api/public/images?source=clawhub&q=dental+office&per_page=8

在特定细分领域内搜索:
bash
curl https://nkimages.com/api/public/images?source=clawhub&q=modern&niche=dental&per_page=8

获取随机图片:
bash
curl https://nkimages.com/api/public/images?source=clawhub&random=true&niche=fitness&per_page=5

响应格式

API返回JSON格式,结构如下:

json
{
success: true,
data: [
{
id: abc123,
url: https://nkimages.com/uploads/images/.../image.jpg,
thumbnailUrl: https://nkimages.com/uploads/thumbnails/.../image.jpg,
name: 图片标题,
description: 图片描述,
niche: dental,
category: office,
tags: [dental, office, modern],
width: 3840,
height: 2160,
orientation: landscape,
dominantColor: #e8f4f8
}
],
pagination: {
total: 150,
page: 1,
perPage: 10,
totalPages: 15
}
}

处理空搜索结果

当搜索返回0条结果时,API会自动在响应中包含 suggestions 字段:

json
{
success: true,
data: [],
pagination: { total: 0, page: 1, perPage: 10, totalPages: 0 },
suggestions: {
relatedImages: [
{
id: xyz789,
url: https://nkimages.com/uploads/images/.../image.jpg,
thumbnailUrl: ...,
name: 相关图片名称,
niche: dental,
category: office,
tags: [dental, modern],
width: 3840,
height: 2160,
orientation: landscape,
dominantColor: #e8f4f8
}
],
popularInNiche: [
{ id: ..., url: ..., thumbnailUrl: ..., name: ..., niche: ..., category: ... }
],
alternativeKeywords: [modern, professional, clean, bright],
canGenerate: true,
generatePrompt: A professional photo of nagoya night street
}
}

当您收到建议时,请执行以下操作:

  1. 1. 显示相关图片(如果 relatedImages 不为空):
- 我没有找到完全匹配{查询词}的结果,但这里有一些相关图片: - 以与正常结果相同的格式显示它们
  1. 2. 建议替代关键词(如果 alternativeKeywords 不为空):
- 您也可以尝试搜索:{关键词}
  1. 3. 提供AI生成选项(如果 canGenerate 为true):
- 我也可以为您生成一张自定义AI图片。您想要我创建一张吗? - 使用 generatePrompt 作为起始提示(用户可以自定义)

AI图像生成

当没有现有图片匹配或用户明确请求自定义图片时,您可以使用AI生成一张。

检查生成配额

在生成之前,检查用户今天还剩多少次生成机会:

bash
curl https://nkimages.com/api/public/generate/quota

响应:
json
{
success: true,
data: {
limit: 3,
used: 1,
remaining: 2
}
}

  • - 免费用户每天有30次生成机会(每天重置)
  • 如果 remaining 为0,告知用户:您今天的所有免费生成次数已用完。明天再试!
  • 在提供生成选项前始终检查配额,以便告知用户剩余次数

步骤1:开始生成

bash
curl -X POST https://nkimages.com/api/public/generate/anonymous \
-H Content-Type: application/json \
-d {prompt: A professional dental photo of futuristic clinic, niche: dental}

请求体:

  • - prompt(必填):要生成的图片描述(至少10个字符)
  • niche(可选):图片的细分领域类别

响应:
json
{
success: true,
data: {
id: gen_abc123,
status: pending,
prompt: A professional dental photo of futuristic clinic
}
}

步骤2:轮询状态

生成需要25-120秒。每15-20秒轮询一次:

bash
curl https://nkimages.com/api/public/generate/anonymous/gen_abc123/status

状态值:

  • - pending - 排队等待生成
  • generating - 正在创建中
  • completed - 完成!图片URL可用
  • failed - 生成失败
  • timeout - 超时

完成响应:
json
{
success: true,
data: {
id: gen_abc123,
status: completed,
prompt: A professional dental photo of futuristic clinic,
image: {
id: img_first,
url: https://nkimages.com/uploads/images/.../generated_7.jpg,
thumbnailUrl: https://nkimages.com/uploads/thumbnails/.../generated_7.jpg,
viewUrl: https://nkimages.com/photo/img_first,
downloadUrl: https://nkimages.com/uploads/images/.../generated_7.jpg
},
images: [
{
id: link_1,
image: {
id: img_first,
url: https://nkimages.com/uploads/images/.../generated_7.jpg,
thumbnailUrl: https://nkimages.com/uploads/thumbnails/.../generated_7.jpg,
viewUrl: https://nkimages.com/photo/img_first,
downloadUrl: https://nkimages.com/uploads/images/.../generated_7.jpg
}
},
{
id: link_2,
image: {
id: img_second,
url: https://nkimages.com/uploads/images/.../generated_6.jpg,
thumbnailUrl: https://nkimages.com/uploads/thumbnails/.../generated_6.jpg,
viewUrl: https://nkimages.com/photo/img_second,
downloadUrl: https://nkimages.com/uploads/images/.../generated_6.jpg
}
}
]
}
}

关键:使用API响应中返回的URL,完全按原样使用。切勿自行构造URL。

API为每张图片返回可直接使用的URL:

  • - entry.image.viewUrl — 在NK Images上查看图片的链接(用于所有查看链接)
  • entry.image.downloadUrl — 图片的直接下载链接(用于所有下载链接)
  • entry.image.thumbnailUrl

标签

skill ai

通过对话安装

该技能支持在以下平台通过对话安装:

OpenClaw WorkBuddy QClaw Kimi Claude

方式一:安装 SkillHub 和技能

帮我安装 SkillHub 和 nk-images-search-1776342558 技能

方式二:设置 SkillHub 为优先技能安装源

设置 SkillHub 为我的优先技能安装源,然后帮我安装 nk-images-search-1776342558 技能

通过命令行安装

skillhub install nk-images-search-1776342558

下载

⬇ 下载 NK Images Search v1.0.4(免费)

文件大小: 5.58 KB | 发布时间: 2026-4-17 14:42

v1.0.4 最新 2026-4-17 14:42
- Clarified that all image URLs (view, download, thumbnail) must be taken exactly from the API response; do not construct URLs manually.
- Updated documentation to reflect that the API now includes ready-to-use `viewUrl` and `downloadUrl` fields for each image.
- Revised descriptions and instructions for presenting generated images, emphasizing the use of direct API-provided links.
- Adjusted daily AI image generation limits messaging to state up to 240 free AI images per day.
- Updated the skill description for clarity on API access, quotas, and usage requirements.

Archiver·手机版·闲社网·闲社论坛·羊毛社区· 多链控股集团有限公司 · 苏ICP备2025199260号-1

Powered by Discuz! X5.0   © 2024-2025 闲社网·线报更新论坛·羊毛分享社区·http://xianshe.com

p2p_official_large
返回顶部