Creates a task template for image data processing in a specified region.
Try it now
Test
RAM authorization
Request syntax
POST HTTP/1.1
Request parameters
|
Parameter |
Type |
Required |
Description |
Example |
| RegionId |
string |
Yes |
The region ID. |
cn-hangzhou |
| TemplateName |
string |
No |
The name of the task template. |
template1 |
| TemplateType |
string |
Yes |
The templatetype of the node. Valid values: image. |
image |
| TemplateConfig |
string |
Yes |
The JSON string for additional template configurations. |
{"ETL_TEMPLATE_STR":"config"} |
| Captioning |
boolean |
No |
Specifies whether to fetch the image summary or video synopsis. When Settings is set to true, CaptioningPrompt must be specified. |
|
| CaptioningPrompt |
string |
No |
The prompt used for extracting summaries. This parameter takes effect only when Captioning is set to true. |
Summarize the image content |
| Embedding |
boolean |
No |
Specifies whether to convert the content into vectors. |
|
| EmbeddingDimension |
integer |
No |
The output dimension of the vector. Valid values when Embedding is set to true: 512, 768, 1024, and 2048. |
1024 |
Response elements
|
Element |
Type |
Description |
Example |
|
object |
Schema of Response |
||
| RequestId |
string |
The request ID. |
2921D843-433A-5FB3-A03B-4EC093B219F8 |
| TemplateId |
string |
The ID of the created task template. |
tpl-123456 |
Examples
Success response
JSON format
{
"RequestId": "2921D843-433A-5FB3-A03B-4EC093B219F8",
"TemplateId": "tpl-123456"
}
Error codes
See Error Codes for a complete list.
Release notes
See Release Notes for a complete list.