SubmitTextGenerateJob
Expands marketing copy based on the submitted keywords, word count, and number of copies. Due to the characteristics of the Chinese language, the word count of the generated copy may differ from the requested word count. After you submit the task, call the GetSmartHandleJob operation by using the job ID to query the task status and results.
Operation description
Before you call this operation, you must purchase the Enterprise Subscription Service to obtain the permissions to use this feature. For more information, see Subscription billing.
This operation is billed based on the number of tokens in the generated content. The number of tokens is positively correlated with the word count of the generated text. For more information, see Intelligent one-click video generation. If the synthesis task fails, no fees are incurred.
This operation is an asynchronous operation. After you submit a task, a task ID is returned. The task is not completed at this time and is queued for asynchronous execution in the background. The final result is notified through a callback. You can also call the Obtain intelligent task results operation to actively query the task status.
Try it now
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
ice:SubmitTextGenerateJob |
create |
*All Resource
|
None | None |
Request parameters
|
Parameter |
Type |
Required |
Description |
Example |
| Title |
string |
No |
The title of the task.
|
Test Title |
| Description |
string |
No |
The description of the task. The description can be up to 1,024 bytes in length and must be encoded in UTF-8. |
Test Description |
| Type |
string |
No |
The type of the task. Valid values:
Valid values:
|
MarketingCopy |
| GenerateConfig |
string |
No |
The generation configuration. When Type is set to Title or MarketingCopy, you must specify the following fields:
When Type is set to StoryboardScript, you must specify the following field:
|
{"keywords":"New store cake,Animal cream","textLength":100,"targetCount":3} or {"originText": "A new cake shop has opened on the street,Selling cream cakes,Fruit cake,Bread,Muffins, etc..A coffee shop has opened across from the cake shop,An endless stream of customers."} |
| UserData |
string |
No |
The custom settings in JSON format. The length cannot exceed 512 bytes. Custom callback URL configuration is supported. |
{"NotifyAddress":"http://xx.xx.xxx"} |
Response elements
|
Element |
Type |
Description |
Example |
|
object |
Schema of Response |
||
| RequestId |
string |
Id of the request |
******11-DB8D-4A9A-875B-275798****** |
| JobId |
string |
The ID of the intelligent task. |
****d80e4e4044975745c14b**** |
Examples
Success response
JSON format
{
"RequestId": "******11-DB8D-4A9A-875B-275798******",
"JobId": "****d80e4e4044975745c14b****"
}
Error codes
See Error Codes for a complete list.
Release notes
See Release Notes for a complete list.