使用HTTP请求节点从Free DummyJSON API生成文本图像
初级
这是一个Building Blocks, Marketing领域的自动化工作流,包含 3 个节点。主要使用 Set, HttpRequest, ManualTrigger 等节点。 使用HTTP请求节点从Free DummyJSON API生成文本图像
前置要求
- •可能需要目标 API 的认证凭证
使用的节点 (3)
工作流预览
可视化展示节点连接关系,支持缩放和平移
导出工作流
复制以下 JSON 配置到 n8n 导入,即可使用此工作流
{
"name": "生成图片工作流",
"tags": [],
"nodes": [
{
"id": "0a657f21-f0fe-4521-be7f-aa245f86f5d3",
"name": "当点击\"测试工作流\"时",
"type": "n8n-nodes-base.manualTrigger",
"position": [
340,
-200
],
"parameters": {},
"typeVersion": 1
},
{
"id": "54ead951-03fb-4741-9e66-bffa0ff42302",
"name": "从 API 获取图片",
"type": "n8n-nodes-base.httpRequest",
"position": [
780,
-200
],
"parameters": {
"url": "=https://dummyjson.com/image/{{ $json.size }}/{{ $json.backgroundColor }}/{{ $json.textColor }}",
"options": {},
"sendQuery": true,
"queryParameters": {
"parameters": [
{
"name": "text",
"value": "={{ $json.text }}"
},
{
"name": "fontSize",
"value": "={{ $json.fontSize }}"
},
{
"name": "type",
"value": "={{ $json.type }}"
},
{
"name": "fontFamily",
"value": "={{ $json.fontFamily }}"
}
]
}
},
"typeVersion": 4.2
},
{
"id": "9b60f208-7bbc-4c35-9303-797aabef478d",
"name": "设置图片属性",
"type": "n8n-nodes-base.set",
"position": [
560,
-200
],
"parameters": {
"options": {},
"assignments": {
"assignments": [
{
"id": "25b4c572-4ba6-4719-b547-8d3787ba557b",
"name": "size",
"type": "string",
"value": "600x400"
},
{
"id": "a6689fdb-b212-4c88-b80f-64aabe61daa1",
"name": "backgroundColor",
"type": "string",
"value": "cc22e3"
},
{
"id": "f9dcc452-4dd5-46fc-948b-39194bf0637d",
"name": "textColor",
"type": "string",
"value": "ffffff"
},
{
"id": "89842462-d3ac-4267-a40a-3e98e8823ef3",
"name": "text",
"type": "string",
"value": "Generated!"
},
{
"id": "59eb064d-1cc3-4b7d-92ec-594dadbd38cd",
"name": "fontSize",
"type": "string",
"value": "100"
},
{
"id": "ccbae0db-559a-4de2-be63-4238feca6498",
"name": "fontFamily",
"type": "string",
"value": "pacifico"
},
{
"id": "ab88695a-d223-4f26-9ded-3e4c965ca28c",
"name": "type",
"type": "string",
"value": "png"
}
]
}
},
"typeVersion": 3.4
}
],
"active": false,
"pinData": {},
"settings": {
"executionOrder": "v1"
},
"versionId": "c2d9939a-6766-4b7c-8331-63a655946208",
"connections": {
"9b60f208-7bbc-4c35-9303-797aabef478d": {
"main": [
[
{
"node": "54ead951-03fb-4741-9e66-bffa0ff42302",
"type": "main",
"index": 0
}
]
]
},
"0a657f21-f0fe-4521-be7f-aa245f86f5d3": {
"main": [
[
{
"node": "9b60f208-7bbc-4c35-9303-797aabef478d",
"type": "main",
"index": 0
}
]
]
}
}
}常见问题
如何使用这个工作流?
复制上方的 JSON 配置代码,在您的 n8n 实例中创建新工作流并选择「从 JSON 导入」,粘贴配置后根据需要修改凭证设置即可。
这个工作流适合什么场景?
初级 - 构建模块, 营销
需要付费吗?
本工作流完全免费,您可以直接导入使用。但请注意,工作流中使用的第三方服务(如 OpenAI API)可能需要您自行付费。
相关工作流推荐
Overpass 潜在客户生成系统
使用 OpenStreetMap 数据生成商业线索并保存到 Google Sheets
If
Set
Code
+
If
Set
Code
27 节点Akram Kadri
销售
自动化Rank Math SEO字段更新(文章和产品)
自动更新文章和产品的Rank Math SEO字段
Set
Http Request
Manual Trigger
Set
Http Request
Manual Trigger
3 节点phil
构建模块
自动更新 YouTube 视频描述并插入文本
自动更新 YouTube 视频描述并插入文本
Set
Code
You Tube
+
Set
Code
You Tube
9 节点Akram Kadri
营销
使用 Icypeas 批量验证 Google Sheet 中的电子邮件
使用 Icypeas 批量验证 Google Sheet 中的电子邮件
Code
Http Request
Google Sheets
+
Code
Http Request
Google Sheets
8 节点Corentin Ribeyre
销售
构建自定义YouTube MCP服务器
构建自定义YouTube MCP服务器
Set
Switch
Aggregate
+
Set
Switch
Aggregate
20 节点Jimleuk
构建模块
[模板] AI宠物店 v8
🐶 AI宠物店助手 - 集成GPT-4o、Google日历和WhatsApp/Instagram/Facebook
If
N8n
Set
+
If
N8n
Set
244 节点Amanda Benks
销售
工作流信息
难度等级
初级
节点数量3
分类2
节点类型3
作者
Akram Kadri
@akramkadrin8n Automation Freelancer ------------------------ Contact me at: akram@digispruce.com
外部链接
在 n8n.io 查看 →
分享此工作流