Xpersona
T

Tomoviee Reference to Image

CLAWHUB · Unverified

Generate images from a reference image using Tomoviee Image-to-Image API (`tm_reference_img2img`) through Wondershare OpenAPI gateway (`https://openapi.wonde... Skill: Tomoviee Reference to Image Owner: wondershare-boop Summary: Generate images from a reference image using Tomoviee Image-to-Image API (tm_reference_img2img) through Wondershare OpenAPI gateway (https://openapi.wonde... Tags: latest:1.0.2 Version history: v1.0.2 | 2026-03-27T14:08:23.904Z | user - Renamed skill to "tomoviee-reference-to-image" and updated descriptions to clarify support for image-to-image editi

62
Rank
84
Safety
1.0k
Downloads

About

What it does, and when to use it.

Capability contract not published. No trust telemetry is available yet. 1K downloads reported by the source. Last updated 10/11/2026.

Avoid when

  • Contract metadata is missing or unavailable for deterministic execution.

Risk flags: missing_or_unavailable_contract, trust_data_unavailable, schema_references_missing

Install and run

Setup complexity: low.

clawhub skill install s1707d6v06e1pv7bbn814sjdq583gtne:tomoviee-reference-to-image
  1. Setup complexity is LOW. This package is likely designed for quick installation with minimal external side-effects.
  2. Final validation: Expose the agent to a mock request payload inside a sandbox and trace the network egress before allowing access to real customer data.

Contract: missing

curl -s "https://www.xpersona.co/api/v1/agents/clawhub-wondershare-boop-tomoviee-reference-to-image/snapshot"

Run-check

$0.02 USD

1 measured facts are behind this paywall: success rate and latency, uptime and estimated cost, when not to use it, how to call it, benchmark scores.

Agents pay $0.02 in USDC. A card payment is $0.50, the smallest a card allows.

Documentation

CLAWHUB

80,942 characters of source documentation, loaded on request.

Extracted files

5 files captured from the source.

SKILL.md

---
name: tomoviee-reference-to-image
description: 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.
---

# Tomoviee AI Reference-to-Image

## Overview

Generate new images from a reference image and prompt.

- API capability: `tm_reference_img2img`
- Create endpoint: `https://openapi.wondershare.cc/v1/open/capacity/application/tm_reference_img2img`
- Result endpoint: `https://openapi.wondershare.cc/v1/open/pub/task`

## Provider and Endpoint Provenance

Use this mapping to verify provider identity and runtime endpoint provenance:

- Vendor portals: `https://www.tomoviee.ai` and `https://www.tomoviee.cn`
- Runtime gateway host used by this skill: `https://openapi.wondershare.cc`
- This skill sends runtime API calls only to `openapi.wondershare.cc`

## Credential Handling

- `app_key` and `app_secret` are only used to build `Authorization: Basic <base64(app_key:app_secret)>`.
- Credentials are kept in process memory only and are not written to disk by this skill.
- Do not commit credentials into skill files or repository history.

## Quick Start

### Install dependencies

```bash
pip install -r requirements.txt
```

### Authentication helper

```bash
python scripts/generate_auth_token.py YOUR_APP_KEY YOUR_APP_SECRET
```

### Python Client

```python
from scripts.tomoviee_img2img_client import TomovieeImg2ImgClient

client = TomovieeImg2ImgClient("app_key", "app_secret")
```

## API Usage

### Basic Example

```python
task_id = client.image_to_image(
    prompt="Keep subject identity and posture, transform scene to modern office, photorealistic lighting",
    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.poll_until_complete(task_id)
import json
image_url = json.loads(result["result"])["images_path"][0]
print(image_url)
```

### Parameters

- `prompt` (required): Text prompt for preservation and transformation instructions.
- `reference_image` (required): Input reference image URL.
- `control_type` (required): Control mode. Supported values: `"0"`, `"1"`, `"2"`, `"3"`.
- `width` (required): Output width in pixels, range `512-2048`.
- `height` (required): Output height in pixels, range `512-2048`.
- `batch_size` (required): Number of generated images, range `1-4`.
- `control_intensity` (required): Control strength, range `0-1`.
- `init_image` (optional): Required by backend when `control_type="2"`.
- `callback` (optional): Callback URL.
- `params` (optional): Transparent callback passthrough parameter.

## Async Workflow

1. Create task and get `task_id`
2. Poll with `poll_until_complete(task_id)`
3. Parse output image URL(s) from `result`

Status codes:
- `

_meta.json

{
  "ownerId": "kn7bn8fv79mjtchs17087tdtsx82fc86",
  "slug": "tomoviee-reference-to-image",
  "version": "1.0.2",
  "publishedAt": 1774620503904
}

references/image_apis.md

# Tomoviee Image-to-Image API Reference

## Provenance and Endpoint Mapping

- Vendor portals: `https://www.tomoviee.ai` and `https://www.tomoviee.cn`
- Runtime gateway host used by this skill: `https://openapi.wondershare.cc`
- Primary capability: `tm_reference_img2img`

All runtime API calls in this skill target only:

1. `https://openapi.wondershare.cc/v1/open/capacity/application/tm_reference_img2img`
2. `https://openapi.wondershare.cc/v1/open/pub/task`

## Text Parameters

- `prompt` (required): Prompt text (preserve + modify instructions)

## Control Parameters

- `control_type` (required): `"0"`, `"1"`, `"2"`, `"3"`
- `control_intensity` (required): `0-1`

## Image Parameters

- `reference_image` (required): reference image URL
- `init_image` (optional): backend-required when `control_type="2"`

## Output Parameters

- `width` (required): `512-2048`
- `height` (required): `512-2048`
- `batch_size` (required): `1-4`

## Optional Callback Parameters

- `callback` (optional): callback URL
- `params` (optional): transparent callback passthrough

## Result Endpoint

`https://openapi.wondershare.cc/v1/open/pub/task`

## Status Codes

- `1` queued
- `2` processing
- `3` success
- `4` failed
- `5` cancelled
- `6` timeout

## Example

```python
from scripts.tomoviee_img2img_client import TomovieeImg2ImgClient

client = TomovieeImg2ImgClient("app_key", "app_secret")
task_id = client.image_to_image(
    prompt="Keep identity and composition, change background to modern office",
    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.poll_until_complete(task_id)
```

references/prompt_guide.md

# Tomoviee Prompt Engineering Guide

## Overview
This guide provides structured prompt formulas and best practices for all Tomoviee AI APIs to achieve optimal generation results.

---

## Video APIs

### Text-to-Video Prompt Formula
```
主体(描述) + 运动 + 场景(描述) + (镜头语言 + 光影 + 氛围)
Subject (description) + Motion + Scene (description) + (Camera + Lighting + Atmosphere)
```

**Component Breakdown**:

1. **Subject (主体)**: Main focus of the video
   - Who/what is in the scene
   - Key characteristics, appearance
   - Position and pose

2. **Motion (运动)**: Action and movement
   - What the subject is doing
   - Speed and direction of movement
   - Dynamic elements

3. **Scene (场景)**: Environment and context
   - Location and setting
   - Background elements
   - Time of day/season

4. **Camera (镜头语言)**: Optional camera work
   - Camera angle (wide, close-up, aerial, etc.)
   - Camera movement (pan, zoom, tracking, etc.)
   - Or specify `camera_move_index` parameter

5. **Lighting (光影)**: Optional lighting style
   - Natural/artificial light
   - Time of day (golden hour, blue hour, etc.)
   - Light direction and quality

6. **Atmosphere (氛围)**: Optional mood and tone
   - Overall feeling (dramatic, peaceful, energetic)
   - Color palette/grading
   - Weather/environmental effects

**Examples**:

**Minimal** (Subject + Motion + Scene):
```
"A red sports car driving fast on a coastal highway at sunset"
```

**Standard** (+ Camera + Lighting):
```
"A red sports car speeding along a winding coastal highway at golden hour, 
camera following from the side, warm orange sunlight reflecting off the car"
```

**Detailed** (+ Atmosphere):
```
"A sleek red Ferrari speeding along a dramatic coastal highway carved into cliffs, 
camera tracking smoothly from the side at car level, 
golden hour sunset casting long shadows and warm orange glow, 
cinematic and epic atmosphere with ocean waves crashing below"
```

**More Examples by Use Case**:

**Product Showcase**:
```
"White wireless headphones slowly rotating on a minimalist white surface, 
studio lighting with soft shadows, clean and modern atmosphere"
```

**Nature/Travel**:
```
"Majestic waterfall cascading down mossy rocks in a lush rainforest, 
slow zoom in from wide to medium shot, 
dappled sunlight filtering through the canopy, 
serene and peaceful atmosphere"
```

**Action/Sports**:
```
"Professional skateboarder performing a kickflip on urban street ramp, 
slow motion capture from low angle, 
bright daylight with high contrast shadows, 
energetic and dynamic atmosphere"
```

### Image-to-Video Prompt Formula
```
主体 + 运动 + 镜头语言
Subject + Motion + Camera
```

**Why simpler?** The image already provides:
- Scene and environment
- Lighting and color palette
- Composition and framing
- Atmosphere and mood

**Your prompt should focus on**:
- Motion to add to the static image
- Camera movement to apply
- Any new dynamic elements

**Examples**:

```
"Camera slowly zooming in, subject's hair gently blowing in the wind"
``

skill-card.md

## Description:

Generates new images from a reference image and prompt using Tomoviee's Image-to-Image API through the Wondershare OpenAPI gateway.

This skill is ready for commercial/non-commercial use.

## Publisher:

[wondershare-boop](https://clawhub.ai/user/wondershare-boop)

### License/Terms of Use:

MIT-0

## Use Case:

Developers and creative production teams use this skill to create subject-preserving image variations, style transfers, and scene changes from a prompt and reference image.

### Deployment Geography for Use:

Global

## Known Risks and Mitigations:

Risk: Reusable Tomoviee API credentials can be exposed through command-line arguments or printed authorization tokens.

Mitigation: Use environment variables or a secrets manager outside the skill, avoid the token helper for real credentials, and prevent agents from printing Authorization tokens.

Risk: Reference image URLs, prompts, callback URLs, and passthrough params are submitted to Tomoviee/Wondershare endpoints.

Mitigation: Submit only data approved for third-party processing and avoid sensitive images, private URLs, or callbacks that expose internal services.

## Reference(s):

- [ClawHub Skill Page](https://clawhub.ai/wondershare-boop/skills/tomoviee-reference-to-image)
- [Tomoviee Image-to-Image API Docs](https://www.tomoviee.ai/doc/ai-image/image-to-image.html)
- [Tomoviee Developer Portal](https://www.tomoviee.ai/developers.html)
- [Tomoviee Image-to-Image API Docs (Mainland)](https://www.tomoviee.cn/doc/ai-image/image-to-image.html)
- [Image API Reference](references/image_apis.md)
- [Prompt Engineering Guide](references/prompt_guide.md)

## Skill Output:

**Output Type(s):** [text, code, shell commands, configuration, guidance]

**Output Format:** [Markdown documentation with Python snippets and shell commands; API responses are JSON with task status and generated image URLs.]

**Output Parameters:** [1D]

**Other Properties Related to Output:** [Creates asynchronous image-generation tasks and polls for completion.]

## Skill Version(s):

1.0.2 (source: server release evidence)

## Ethical Considerations:

Users should evaluate whether this skill is appropriate for their environment, review any generated or modified files before relying on them, and apply their organization's safety, security, and compliance requirements before deployment.

Sponsored

Ads related to Tomoviee Reference to Image and adjacent AI workflows.