Submits an intelligent production job.
Operation description
This operation submits jobs for asynchronous execution. The system adds each job to a pipeline for scheduling, queuing, and processing. You can retrieve job results by calling the QueryIProductionJob operation or through asynchronous message notifications.
QPS limit
The QPS limit for this operation is 100 queries per second (QPS) for each user. If you exceed this limit, API calls are subject to rate limiting. For more information, see QPS limits.
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 function. For information about the regions that support each function, see Service regions. Valid values:
|
ImageCartoonize |
| ModelId |
string |
No |
The ID of the algorithm model. If you do not specify this parameter, the system uses the default model for the function. |
null |
| JobParams |
string |
No |
The job parameters for the algorithm, specified as a JSON object. The content of this parameter varies depending on the algorithm. For more information, see Supplemental parameters for intelligent production jobs. |
{"Model":"gif"} |
| ScheduleParams |
string |
No |
Optional job scheduling parameters. |
null |
| NotifyUrl |
string |
No |
The callback URL. Only MNS message queues are supported. You can find the message queue path in the MNS console by navigating to Queues > Details. |
mns://125340688170****.mns.cn-beijing.aliyuncs.com/queues/example-pipeline |
| UserData |
string |
No |
Optional custom data that the service passes back in the callback notification. |
{\"key\":\"value\"} |
| PipelineId |
string |
No |
The ID of the job pipeline. You can obtain the pipeline ID from the MPS console by navigating to Global Settings > Pipelines. This ID determines the job callback queue and provides tenant isolation. If you do not specify this parameter, the default pipeline is used. The default pipeline has a concurrency of 10 and is not bound to a message queue for notifications. |
39f8e0bc005e4f309379701645f4**** |
| Input |
string |
No |
The input file in an OSS bucket. Only OSS paths are supported. The file must be in an OSS bucket in the same region as the MPS service. You can obtain the path from the MPS console by navigating to Media Management > Media List, or from the OSS console by selecting the corresponding bucket. Note
The |
oss://example-****.oss-cn-shanghai.aliyuncs.com/example.mp4 |
| Output |
string |
No |
The output file in an OSS bucket. Only OSS paths are supported. The destination OSS bucket must be in the same region as the MPS service. You can obtain the path from the MPS console by navigating to Media Management > Media List, or from the OSS console by selecting the corresponding bucket. Note
The format is |
oss://example-****.oss-cn-shanghai.aliyuncs.com/iproduction/{source}-{timestamp}-{sequenceId}.srt |
Response elements
|
Element |
Type |
Description |
Example |
|
object |
The returned parameters. |
||
| RequestId |
string |
The request ID. |
5210DBB0-E327-4D45-ADBC-0B83C8796E26 |
| JobId |
string |
The job ID. Save this ID for subsequent queries. |
39f8e0bc005e4f309379701645f4**** |
| Result |
string |
The job result. The structure of the result varies depending on the algorithm. For more information, see Supplemental parameters for intelligent production jobs. |
{ "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.