AsyncCreateClipsTask

Updated at:

Creates a video clip.

Debug

You can run this API directly in OpenAPI Explorer, saving you from computing signatures. After the call succeeds, OpenAPI Explorer can automatically generate SDK code examples.

Authorization information

The following table describes the authorization information of this API. You can use it in the Action element of RAM policy statements to grant RAM users or RAM roles the permission to call this API. Details are as follows:

  • Operation: the specific permission point.

  • Access level: the access level of each operation. Valid values: Write, Read, and List.

  • Resource type: the resource types that support authorization in the operation. Details are as follows:

    • Required resource types are marked with an asterisk (*) before them.
    • For operations that do not support resource-level authorization, All Resources is used.
  • Condition key: the condition keys defined by the cloud service itself.

  • Related operation: other permissions required to successfully perform the operation. The caller must have the permissions of related operations at the same time for the operation to succeed.

Action

Access level

Resource type

Condition key

Dependent action

aimiaobi:AsyncCreateClipsTask

create

*All Resource

*

NoneNone

Request syntax

POST  HTTP/1.1

Request parameters

Parameter

Type

Required

Description

Example

TaskId

string

Yes

The unique ID of the task.

17a299a9-f223-4707-b0dd-4c22519bddf5

VoiceStyle

string

No

The voiceover type.

Sweet female voice Chinese Taiwan female voice Tongue male voice News male voice Passionate commentary Standard female voice Suspense commentary Commercial male voice Gentle female voice Information female voice News female voice Young female voice Magnetic male voice

MusicUrl

string

No

The URL of the background music.

http://music.mp4

ColorWords

array<object>

No

An array of fancy captions.

object

No

The structure of a fancy caption.

Content

string

No

The content of the fancy caption.

Fancy caption content

TimelineIn

integer

No

The time, in seconds, when the fancy caption appears.

0

TimelineOut

integer

No

The time, in seconds, when the fancy caption disappears.

5

X

number

No

The x-coordinate of the fancy caption's position.

0.2

Y

number

No

The y-coordinate of the fancy caption's position.

0.5

FontSize

integer

No

The font size of the fancy caption.

Default 120

EffectColorStyle

string

No

The style of the fancy caption.

CS0002-000007 Reference:https://help.aliyun.com/zh/ims/developer-reference/flower-effect-example?spm=a2c4g.11186623.0.0.6ee43d29lo1EWu#88bc5f6046mg2

WorkspaceId

string

Yes

llm-ipe7d81yq4sl5jmk

VoiceVolume

integer

No

The voiceover volume.

0-10, default 5

MusicVolume

integer

No

The music volume.

0-10, default 5

SubtitleFontSize

integer

No

The font size of the caption.

Default 120

Height

integer

No

The height of the video.

1920

Width

integer

No

The width of the video.

1080

CloseVoice

boolean

No

Disables the voiceover.

false

CloseMusic

boolean

No

Disables the background music.

true

CloseSubtitle

boolean

No

Disables the captions.

CustomVoiceUrl

string

No

The URL of the audio for the custom sound channel.

http://xxx/xxx.mp4

CustomVoiceVolume

integer

No

The volume of the custom sound channel.

0

Stickers

array<object>

No

An array of sticker structures.

object

No

An array element for the sticker.

Url

string

No

The public URL of the GIF file.

http://xxx/xxx.gif

TimelineIn

integer

No

Start time of the sticker, in seconds.

5

Duration

integer

No

The duration, in seconds, for which the sticker is displayed.

10

X

number

No

The x-coordinate of the sticker's position.

200

Y

number

No

The y-coordinate of the sticker's position.

200

Width

integer

No

The width of the sticker.

100

Height

integer

No

The height of the sticker.

100

DyncFrames

integer

No

The number of dynamic frames in the GIF file.

8

CustomVoiceStyle

string

No

The timbre of cosyvoice.

longxian_normal

CosyVoiceAppKey

string

No

The appkey of cosyvoice.

ddgsase

CosyVoiceToken

string

No

The token of cosyvoice.

xxsfazs

MusicStyle

string

No

The recommended music type.

Romantic, Gourmet, Chinese style, Brisk, Dynamic, Soothing, Funny, Fashion

OpeningCreditsUrl

string

No

The URL of the opening credits video.

http://xxx/xxx.mp4

ClosingCreditsUrl

string

No

The URL of the closing credits video.

http://xxx/xxx.mp4

HighDefSourceVideos

array<object>

No

An array of high-definition video structures.

object

No

The structure of a high-definition video.

VideoId

string

No

The ID of the video.

00d59b6de13971f0bcd84531949c0102

VideoName

string

No

The name of the video.

video001.mp4

VideoUrl

string

No

The URL of the video.

http://fotor-cn-cutout.oss-cn-shanghai.aliyuncs.com/cutout_tmp/01ba219486f043b4b339e7080e5cf11d.mp4

Alignment

string

No

Supported settings: TopLeft: upper-left corner of the video TopCenter: upper side of the vertical center line of the video TopRight: upper-right corner of the video CenterLeft: left side of the horizontal center line of the video CenterCenter: center of the video CenterRight: right side of the horizontal center line of the video BottomLeft: lower-left corner of the video BottomCenter: lower side of the vertical center line of the video BottomRight: lower-right corner of the video. To accurately position the caption in different alignment modes, we recommend the following alignment settings: Left: left alignment. X and Y specify the coordinates of the upper-left vertex of the caption relative to the upper-left corner of the video. Center: center alignment. X and Y specify the coordinates of the intersection of the caption's central axis and upper boundary relative to the upper-left corner of the video. Right: right alignment. X and Y specify the coordinates of the upper-right vertex of the caption relative to the upper-left corner of the video.

AdaptMode

string

No

AutoWrap: automatic line wrap AutoScale: automatic scaling AutoWrapAtSpaces: automatic line wrap only at spaces (applicable to automatic line wrapping for pure English captions)

TextWidth

string

No

The text box width is set to this value for automatic line wrapping or scaling. If not specified, automatic line wrapping or scaling is based on the video width. A value greater than 0 and less than or equal to 1 indicates a width relative to the output video, and a value greater than 1 indicates an absolute pixel value.

Response elements

Element

Type

Description

Example

object

Schema of Response

RequestId

string

The ID of the request.

1813ceee-7fe5-41b4-87e5-982a4d18cca5

Code

string

The status code.

successful

Data

object

The business data.

TaskId

string

The task ID.

3f7045e099474ba28ceca1b4eb6d6e21

HttpStatusCode

integer

The HTTP status code.

200

Message

string

The error message.

success

Success

boolean

Indicates whether the request was successful. A value of true indicates success. A value of false indicates failure.

true

Examples

Success response

JSON format

{
  "RequestId": "1813ceee-7fe5-41b4-87e5-982a4d18cca5",
  "Code": "successful",
  "Data": {
    "TaskId": "3f7045e099474ba28ceca1b4eb6d6e21"
  },
  "HttpStatusCode": 200,
  "Message": "success",
  "Success": true
}

Error codes

HTTP status code

Error code

Error message

Description

403NoPermissionYou are not authorized to perform this action.Please check the workspaceId assignment

Visit the Error Center to view more error codes.

Change history

For more information, see Change details.