Generates marketing copy based on the provided keywords, text length, and number of copy variations. Due to the complexities of the Chinese language, the length of the output text may differ from the requested length. After submitting the job, call the GetSmartHandleJob operation with the returned job ID to query the job status and retrieve the results.
Operation description
Before you call this operation, you must purchase the enterprise subscription service to obtain the required permissions.
This operation is billed based on the number of tokens in the generated content. The number of tokens is positively correlated with the number of characters in the generated text. For more information, see smart video creation. No charges are incurred for failed jobs.
This is an asynchronous API. After you submit a job, the operation returns a job ID. The job is then queued for background processing. The service delivers results via a callback. You can also call GetSmartHandleJob to actively poll for the job 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 job title. - The maximum length is 128 bytes. - UTF-8 encoding is required. |
测试标题 |
| Description |
string |
No |
The job description, with a maximum length of 1,024 bytes (UTF-8 encoded). |
测试描述 |
| Type |
string |
No |
The job type. Valid values:
Valid values:
|
MarketingCopy |
| GenerateConfig |
string |
No |
The generation configuration, in JSON format. If
If
|
{"keywords":"新开店蛋糕,动物奶油","textLength":100,"targetCount":3} 或 {"originText": "街边新开了一家蛋糕店,售卖奶油蛋糕、水果蛋糕、面包、松饼等。蛋糕店对面开了一家咖啡馆,客人络绎不绝。"} |
| UserData |
string |
No |
The custom settings in JSON format. The maximum length is 512 bytes. You can use this parameter to specify a custom callback address. |
{"NotifyAddress":"http://xx.xx.xxx"}或{"NotifyAddress":"https://xx.xx.xxx"}或{"NotifyAddress":"ice-callback-demo"} |
Response elements
|
Element |
Type |
Description |
Example |
|
object |
The response object. |
||
| RequestId |
string |
The request ID. |
******11-DB8D-4A9A-875B-275798****** |
| JobId |
string |
The smart job ID. |
****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.