Submits an intelligent production job.
Operation description
Jobs committed by invoking this operation are executed in asynchronous mode. The job is added to an MPS queue for scheduling and execution. You can invoke the QueryIProductionJob operation to query the job execution result, or use the asynchronous message notification mechanism to obtain the result.
QPS limit
You can call this operation up to 100 times per second per account. If the number of calls per second exceeds the limit, throttling is triggered. This may affect your business. For more information, see QPS limit.
Try it now
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
mts:SubmitIProductionJob |
*All Resource
|
None | None |
Request parameters
|
Parameter |
Type |
Required |
Description |
Example |
| FunctionName |
string |
Yes |
The name of the algorithm. For the regions supported by each algorithm, see Regions. Valid values:
|
ImageCartoonize |
| ModelId |
string |
No |
The algorithm model ID. If this parameter is left empty, the default model for the corresponding algorithm is used. In most cases, leave this parameter empty to use the default model. |
null |
| JobParams |
string |
No |
The algorithm job parameters. This is a JSON object, and the content varies depending on the algorithm. For more information, see Supplementary description of intelligent production operation parameters. |
{"Model":"gif"} |
| ScheduleParams |
string |
No |
The job scheduling parameters for configuring task scheduling. This parameter is optional. Leave it empty if not needed. |
null |
| NotifyUrl |
string |
No |
The callback URL. Currently, only MNS MSMQ are supported. You can view the MSMQ path in the MNS console > Queue List > Details. |
mns://125340688170****.mns.cn-beijing.aliyuncs.com/queues/example-pipeline |
| UserData |
string |
No |
The custom business data that is returned in the callback message to the callback URL. This parameter is optional. Leave it empty if not needed. |
{\"key\":\"value\"} |
| PipelineId |
string |
No |
The ID of the MPS queue. You can obtain the ID from the MPS console > Global Settings > MPS Queue. This parameter is used to determine the job callback queue and provide tenant isolation. If this parameter is not specified, the default MPS queue is used, which supports a maximum of 10 concurrent jobs and is not bound to message notifications. |
39f8e0bc005e4f309379701645f4**** |
| Input |
string |
No |
The OSS Bucket of the input file. Currently, only OSS paths are supported, and the region of the OSS bucket must be the same as the region of the current MPS service. You can obtain the path from the MPS console > Media Management > Media Library or by selecting the corresponding bucket in the OSS console. Note
Depending on the algorithm, Input may be required in certain scenarios. Specify this parameter based on your business requirements. |
oss://example-****.oss-cn-shanghai.aliyuncs.com/example.mp4 |
| Output |
string |
No |
The OSS Bucket of the output file. Currently, only OSS paths are supported. You can obtain the path from the MPS console > Media Management > Media Library or by selecting the corresponding bucket in the OSS console. The region of the OSS bucket must be the same as the region of the current MPS service. Note
The format is |
oss://example-****.oss-cn-shanghai.aliyuncs.com/iproduction/{source}-{timestamp}-{sequenceId}.srt |
Response elements
|
Element |
Type |
Description |
Example |
|
object |
The response parameters. |
||
| RequestId |
string |
The request ID. |
5210DBB0-E327-4D45-ADBC-0B83C8796E26 |
| JobId |
string |
The job ID. Save this ID for use when calling other operations. |
39f8e0bc005e4f309379701645f4**** |
| Result |
string |
The returned result. The result varies depending on the algorithm. For more information, see Supplementary description of intelligent production operation parameters. |
{ "Code":"Success", "Details":[], "FunctionName":"ImageCartoonize", "JobId":"39f8e0bc005e4f309379701645f4****", "Message":"success", "State":"Success", "Type":"IProduction" } |
Examples
Success response
JSON format
{
"RequestId": "5210DBB0-E327-4D45-ADBC-0B83C8796E26",
"JobId": "39f8e0bc005e4f309379701645f4****",
"Result": "{ \"Code\":\"Success\", \"Details\":[], \"FunctionName\":\"ImageCartoonize\", \"JobId\":\"39f8e0bc005e4f309379701645f4****\", \"Message\":\"success\", \"State\":\"Success\", \"Type\":\"IProduction\" }"
}
Error codes
See Error Codes for a complete list.
Release notes
See Release Notes for a complete list.