返回顶部
t

tomoviee-reference-to-image参考图生成图像

Generate images from a reference image using Tomoviee Image-to-Image API (`tm_reference_img2img`) through Wondershare OpenAPI gateway (`https://openapi.wondershare.cc`). Use when users request image-to-image editing, style transfer, or subject-preserving transformations.

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

tomoviee-reference-to-image

Tomoviee AI 参考图转图像

概述

根据参考图像和提示词生成新图像。

  • - API 能力:tmreferenceimg2img
  • 创建端点:https://openapi.wondershare.cc/v1/open/capacity/application/tmreferenceimg2img
  • 结果端点:https://openapi.wondershare.cc/v1/open/pub/task

提供商和端点来源

使用此映射验证提供商身份和运行时端点来源:

  • - 供应商门户:https://www.tomoviee.ai 和 https://www.tomoviee.cn
  • 此技能使用的运行时网关主机:https://openapi.wondershare.cc
  • 此技能仅向 openapi.wondershare.cc 发送运行时 API 调用

凭证处理

  • - appkey 和 appsecret 仅用于构建 Authorization: Basic key:appsecret)>。
  • 凭证仅保存在进程内存中,此技能不会写入磁盘。
  • 请勿将凭证提交到技能文件或仓库历史记录中。

快速开始

安装依赖

bash
pip install -r requirements.txt

认证辅助工具

bash
python scripts/generateauthtoken.py YOURAPPKEY YOURAPPSECRET

Python 客户端

python
from scripts.tomovieeimg2imgclient import TomovieeImg2ImgClient

client = TomovieeImg2ImgClient(appkey, appsecret)

API 使用

基本示例

python
taskid = client.imageto_image(
prompt=保持主体身份和姿态,将场景转换为现代办公室,逼真光照,
reference_image=https://example.com/reference.jpg,
control_type=2,
init_image=https://example.com/reference.jpg,
width=1024,
height=1024,
batch_size=1,
control_intensity=0.5,
)

result = client.polluntilcomplete(task_id)
import json
imageurl = json.loads(result[result])[imagespath][0]
print(image_url)

参数

  • - prompt(必填):用于保留和转换指令的文本提示词。
  • referenceimage(必填):输入参考图像 URL。
  • controltype(必填):控制模式。支持的值:0、1、2、3。
  • width(必填):输出宽度(像素),范围 512-2048。
  • height(必填):输出高度(像素),范围 512-2048。
  • batchsize(必填):生成图像数量,范围 1-4。
  • controlintensity(必填):控制强度,范围 0-1。
  • initimage(可选):当 controltype=2 时后端需要。
  • callback(可选):回调 URL。
  • params(可选):透明回调透传参数。

异步工作流

  1. 1. 创建任务并获取 taskid
  2. 使用 polluntilcomplete(taskid) 轮询
  3. 从 result 解析输出图像 URL

状态码:

  • - 1 已排队
  • 2 处理中
  • 3 成功
  • 4 失败
  • 5 已取消
  • 6 超时

资源

  • - scripts/tomovieeimg2imgclient.py - 主 API 客户端
  • scripts/tomovieeimagetoimageclient.py - 兼容性导入垫片
  • scripts/generateauthtoken.py - 认证令牌辅助工具
  • references/imageapis.md - API 参考和约束
  • references/promptguide.md - 提示词编写指南

外部资源

  • - 开发者门户(全球):https://www.tomoviee.ai/developers.html
  • API 文档(全球):https://www.tomoviee.ai/doc/ai-image/image-to-image.html
  • 开发者门户(中国大陆):https://www.tomoviee.cn/developers.html
  • API 文档(中国大陆):https://www.tomoviee.cn/doc/ai-image/image-to-image.html

标签

skill ai

通过对话安装

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

OpenClaw WorkBuddy QClaw Kimi Claude

方式一:安装 SkillHub 和技能

帮我安装 SkillHub 和 tomoviee-reference-to-image-1776195945 技能

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

设置 SkillHub 为我的优先技能安装源,然后帮我安装 tomoviee-reference-to-image-1776195945 技能

通过命令行安装

skillhub install tomoviee-reference-to-image-1776195945

下载

⬇ 下载 tomoviee-reference-to-image v1.0.2(免费)

文件大小: 13.02 KB | 发布时间: 2026-4-15 10:58

v1.0.2 最新 2026-4-15 10:58
- Renamed skill to "tomoviee-reference-to-image" and updated descriptions to clarify support for image-to-image editing, style transfer, and subject-preserving transformations.
- Added explicit documentation on endpoint provenance and credential handling for improved transparency and security.
- Introduced new Python client location (`scripts/tomoviee_img2img_client.py`) and added a compatibility shim for the previous client path.
- Expanded and clarified API usage examples, parameter requirements, and async workflow steps.
- Added/updated references to bundled resources and external API documentation.

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

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

p2p_official_large
返回顶部