yoboxapi
  1. comfyui-yobox
yoboxapi
  • 聊天模型
    • 聊天接口(通用)
      POST
  • 绘图模型
    • nanobananapro-url 文生图(文生图)
      POST
    • nannobananapro-url(图生图)
      POST
    • gpt生图
      POST
    • gemini2.5文生图
      POST
    • gemini2.5图生图
      POST
    • gemini2.5指定比例出图
      POST
    • 图生图gemini2.5指定比例
      POST
    • nanobnanapro
      POST
    • jimeng4.0
      POST
    • replicate-nanobananapro
      POST
    • replicate-nanobanana
      POST
    • replicate-flux-2-pro
      POST
    • replicate-z-image
      POST
    • replicate-qwen-image-layered
      POST
    • imagen-4.0-文生图
      POST
    • nanobananapro-1k
      POST
    • nanobananapro-文生图
      POST
    • nanobananapro-图生图
      POST
    • nanobanana-2k-文生图
      POST
    • nanobanana-2k-图生图
      POST
  • 视频生成
    • veo3.1 (别在线调试,用 postman)带图片请求
      POST
    • 即梦请求(异步)
      POST
    • 即梦get请求
      GET
    • veo-3.1-pro-异步
      POST
    • sora2
      POST
    • sora-2-pro-异步
      POST
    • 通用异步接口(视频)
      POST
    • 通用异步接口(get)
      GET
    • 异步veo3.1多图参考
      POST
    • grok视频生成
      POST
    • jimeng-video-3.5-pro
      POST
    • seeddance-1.5-pro
      POST
    • kling-o1-edits
      POST
  • 用户信息
    • 总额度查询
    • 已用额度查询
  • comfyui-yobox
    • nanobanana
      POST
    • simop-image
      POST
  • yoboxai
    • get异步调用
    • 异步调用
  1. comfyui-yobox

nanobanana

开发中
POST
http://localhost:3000/api/workflow/execute

请求参数

Body 参数application/json

示例
{
  "workflow": {
  "nodes": [
    {
      "id": "imageTemplate-3",
      "type": "imageTemplate",
      "position": {
        "x": -8316.224671547378,
        "y": -5663.14185764354
      },
      "style": {
        "width": 520,
        "height": 640
      },
      "dragHandle": ".node-drag-handle",
      "data": {
        "label": "AI 对话",
        "template": {
          "version": 2,
          "canvas": {
            "width": 512,
            "height": 512,
            "background": "#ffffff"
          },
          "layers": [
            {
              "slot": "image-1",
              "rect": {
                "x": 0.1,
                "y": 0.1,
                "w": 0.8,
                "h": 0.8
              },
              "fit": "cover",
              "z": 1,
              "radius": 24,
              "shape": "rect",
              "locked": false
            }
          ],
          "texts": [
            {
              "id": "text-1",
              "text": "Text",
              "x": 0.43750996586506663,
              "y": 0.20885382216762732,
              "z": 11,
              "fontSize": 72,
              "color": "#d42525",
              "strokeAlign": "outside",
              "align": "center"
            }
          ]
        },
        "templateLocked": false,
        "isLoading": false,
        "error": null,
        "result": "data:image/png;base64,="
      },
      "width": 520,
      "height": 640,
      "selected": false,
      "positionAbsolute": {
        "x": -8316.224671547378,
        "y": -5663.14185764354
      },
      "dragging": false
    },
    {
      "id": "prompt-4",
      "type": "prompt",
      "position": {
        "x": -8706.972727271479,
        "y": -5539.859550590554
      },
      "style": {
        "width": 240,
        "height": 120
      },
      "dragHandle": ".node-drag-handle",
      "data": {
        "label": "2222",
        "isLoading": false,
        "error": null,
        "result": "ji"
      },
      "width": 240,
      "height": 120,
      "selected": false,
      "positionAbsolute": {
        "x": -8706.972727271479,
        "y": -5539.859550590554
      },
      "dragging": false
    },
    {
      "id": "save-6",
      "type": "save",
      "position": {
        "x": -7694.715272226677,
        "y": -5183.636454410738
      },
      "style": {
        "width": 240,
        "height": 200
      },
      "dragHandle": ".node-drag-handle",
      "data": {
        "label": "输出与保存"
      },
      "width": 240,
      "height": 200
    }
  ],
  "edges": [
    {
      "id": "reactflow__edge-imageLoad-2-nanobanana-1image-1",
      "source": "imageLoad-2",
      "target": "nanobanana-1",
      "sourceHandle": null,
      "targetHandle": "image-1",
      "animated": false
    },
    {
      "id": "reactflow__edge-imageLoad-2-imageTemplate-2image-1",
      "source": "imageLoad-2",
      "target": "imageTemplate-2",
      "sourceHandle": null,
      "targetHandle": "image-1",
      "animated": false
    },
    {
      "id": "reactflow__edge-imageLoad-2-imageTemplate-6image-1",
      "source": "imageLoad-2",
      "target": "imageTemplate-6",
      "sourceHandle": null,
      "targetHandle": "image-1",
      "animated": false
    },
    {
      "id": "reactflow__edge-prompt-2-imageTemplate-6text-1",
      "source": "prompt-2",
      "target": "imageTemplate-6",
      "sourceHandle": null,
      "targetHandle": "text-1",
      "animated": false
    },
    {
      "source": "prompt-4",
      "sourceHandle": null,
      "target": "imageTemplate-3",
      "targetHandle": "text-1",
      "animated": false,
      "id": "reactflow__edge-prompt-4-imageTemplate-3text-1"
    },
    {
      "source": "imageTemplate-3",
      "sourceHandle": null,
      "target": "save-6",
      "targetHandle": null,
      "animated": true,
      "id": "reactflow__edge-imageTemplate-3-save-6"
    }
  ]
},
  "keys": {
    "imageChatKey": "YOUR_KEY",
    "videoKey": "YOUR_KEY"
  }
}

请求示例代码

Shell
JavaScript
Java
Swift
Go
PHP
Python
HTTP
C
C#
Objective-C
Ruby
OCaml
Dart
R
请求示例请求示例
Shell
JavaScript
Java
Swift
curl --location --request POST 'http://localhost:3000/api/workflow/execute' \
--header 'Content-Type: application/json' \
--data-raw '{
  "workflow": {
  "nodes": [
    {
      "id": "imageTemplate-3",
      "type": "imageTemplate",
      "position": {
        "x": -8316.224671547378,
        "y": -5663.14185764354
      },
      "style": {
        "width": 520,
        "height": 640
      },
      "dragHandle": ".node-drag-handle",
      "data": {
        "label": "AI 对话",
        "template": {
          "version": 2,
          "canvas": {
            "width": 512,
            "height": 512,
            "background": "#ffffff"
          },
          "layers": [
            {
              "slot": "image-1",
              "rect": {
                "x": 0.1,
                "y": 0.1,
                "w": 0.8,
                "h": 0.8
              },
              "fit": "cover",
              "z": 1,
              "radius": 24,
              "shape": "rect",
              "locked": false
            }
          ],
          "texts": [
            {
              "id": "text-1",
              "text": "Text",
              "x": 0.43750996586506663,
              "y": 0.20885382216762732,
              "z": 11,
              "fontSize": 72,
              "color": "#d42525",
              "strokeAlign": "outside",
              "align": "center"
            }
          ]
        },
        "templateLocked": false,
        "isLoading": false,
        "error": null,
        "result": "data:image/png;base64,="
      },
      "width": 520,
      "height": 640,
      "selected": false,
      "positionAbsolute": {
        "x": -8316.224671547378,
        "y": -5663.14185764354
      },
      "dragging": false
    },
    {
      "id": "prompt-4",
      "type": "prompt",
      "position": {
        "x": -8706.972727271479,
        "y": -5539.859550590554
      },
      "style": {
        "width": 240,
        "height": 120
      },
      "dragHandle": ".node-drag-handle",
      "data": {
        "label": "2222",
        "isLoading": false,
        "error": null,
        "result": "ji"
      },
      "width": 240,
      "height": 120,
      "selected": false,
      "positionAbsolute": {
        "x": -8706.972727271479,
        "y": -5539.859550590554
      },
      "dragging": false
    },
    {
      "id": "save-6",
      "type": "save",
      "position": {
        "x": -7694.715272226677,
        "y": -5183.636454410738
      },
      "style": {
        "width": 240,
        "height": 200
      },
      "dragHandle": ".node-drag-handle",
      "data": {
        "label": "输出与保存"
      },
      "width": 240,
      "height": 200
    }
  ],
  "edges": [
    {
      "id": "reactflow__edge-imageLoad-2-nanobanana-1image-1",
      "source": "imageLoad-2",
      "target": "nanobanana-1",
      "sourceHandle": null,
      "targetHandle": "image-1",
      "animated": false
    },
    {
      "id": "reactflow__edge-imageLoad-2-imageTemplate-2image-1",
      "source": "imageLoad-2",
      "target": "imageTemplate-2",
      "sourceHandle": null,
      "targetHandle": "image-1",
      "animated": false
    },
    {
      "id": "reactflow__edge-imageLoad-2-imageTemplate-6image-1",
      "source": "imageLoad-2",
      "target": "imageTemplate-6",
      "sourceHandle": null,
      "targetHandle": "image-1",
      "animated": false
    },
    {
      "id": "reactflow__edge-prompt-2-imageTemplate-6text-1",
      "source": "prompt-2",
      "target": "imageTemplate-6",
      "sourceHandle": null,
      "targetHandle": "text-1",
      "animated": false
    },
    {
      "source": "prompt-4",
      "sourceHandle": null,
      "target": "imageTemplate-3",
      "targetHandle": "text-1",
      "animated": false,
      "id": "reactflow__edge-prompt-4-imageTemplate-3text-1"
    },
    {
      "source": "imageTemplate-3",
      "sourceHandle": null,
      "target": "save-6",
      "targetHandle": null,
      "animated": true,
      "id": "reactflow__edge-imageTemplate-3-save-6"
    }
  ]
},
  "keys": {
    "imageChatKey": "YOUR_KEY",
    "videoKey": "YOUR_KEY"
  }
}'

返回响应

🟢200成功
application/json
Body

示例
{
    "leafNodeIds": [
        "string"
    ],
    "resultsByNodeId": {
        "nanobanana-1767577983618": "string",
        "save-1767586515332": "string"
    },
    "errorsByNodeId": {},
    "leafResults": [
        {
            "nodeId": "string",
            "result": "string"
        }
    ]
}
修改于 2026-01-07 09:33:15
上一页
已用额度查询
下一页
simop-image
Built with