1. Overview
1.1 Service Capabilities
ToMoviee Image Recognition is purpose-built to address common challenges in visual analysis. Powered by AI-based feature recognition and parsing technology, it enables accurate identification of visual content from an input image. You only need to upload one image, and the model can perform precise recognition tasks based on your requirements, including subject recognition, pose recognition, sketch recognition, and depth of field (DOF) recognition.
1.2 Sample Prompts and Outputs
|
Input Image |
Output Image |
|
|
|
2. Prompt Engine
N/A
3. API Requests
3.1 Request URL
https://open-api.wondershare.cc/v1/open/capacity/application/tm_reference_img2mask
3.2 Request Parameters
Method: POST
Headers
|
Parameter Name |
Value |
Required |
Example |
Description |
|
Content-Type |
application/json |
Yes |
|
|
|
Authorization |
|
Yes |
Basic xxx |
Security verification information, in the format of Basic {access_token}, where access_token is a token, generated using the given app_key and app_crit, with the generation method being base64 (app_key: app_crit) |
|
X-App-Key |
|
Assigned appkey |
body:
|
Parameter Name |
Type |
Required |
Default Value |
Description |
Other Info |
|
wsid |
integer |
Yes |
|
User ID. |
The wsid of this must be passed. |
|
callback |
string |
No |
|
Callback URL for algorithm results. For example, http://www.wondershare.cn/fx. |
|
|
params |
string |
No |
|
透明参数 |
|
|
template_info |
object [] |
Yes |
|
|
Each item must be of an object type. |
|
|-input_params |
object |
Yes |
|
|
|
|
|-control_type |
string |
Yes |
|
Input the control type, corresponding to: |
|
|
|-init_image |
string |
Yes |
|
The address of the image to be recognized, in jpg/png format |
|
|
|-template_id |
string |
Yes |
|
Fixed tm_reference_img2mask_template_spatial |
|
|
storage_info |
object |
Yes |
|
|
This stroage_info is recommended to be hidden on the B-end, but it must be passed |
|
|-input |
object |
Yes |
|
|
|
|
|-oss |
object |
Yes |
|
|
|
|
|-type |
integer |
No |
|
Fixed 0 |
|
|
|-output |
|
|
|
|
|
|
|-url |
object |
Yes |
|
|
|
|
|-expire_time |
integer |
Yes |
|
Fixed 1 |
3.3 Response
|
Parameter Name |
Type |
Required |
Default Value |
Description |
Other Info |
|
code |
number |
Yes |
|
Error code. |
|
|
msg |
string |
Yes |
|
Error message. |
|
|
data |
object |
No |
|
|
Notes: |
3.4 Sample Requests
{
"storage_info": {
"input": {
"is_url": true
},
"output": {
"url": {
"expire_time": 1
}
}
},
"template_info": [
{
"input_params": {
"control_type": "0",
"init_image": "http://tic-ai-storage.wondershare.com/pcloud%2F552096436%2F3%2F202507%2F1%2Fbackground1UF1nbYSH.jpg?Expires=1757383131&OSSAccessKeyId=LTAI5tFi5sAjeq28CgJWweCQ&Signature=0d%2BhOizMlIvPBzB%2Bk3aBFpEMt18%3D",
"template_id": "tm_reference_img2mask_template_spatial"
}
}
],
"wsid": 578691780
}




