Cancels influencer media generation task
PATCH/api/influencer/imgen/:task_id/cancel
Cancels influencer media generation task
Request
Path Parameters
Id of a task
Responses
- 200
- default
Successful operation
- application/json
- Schema
- Example (from schema)
Schema
- Array [
- ]
- Array [
- ]
The unique identifier of the influencer image generation task.
The unique identifier of the influencer.
Possible values: [image, video]
Type of generation task
Possible values: [init, in_progress, succeed, failed]
Influencer media generation task status
images object[]required
An array of images associated with the influencer generation task.
The URL of the media.
videos object[]required
An array of videos associated with the influencer generation task.
The URL of the media.
The URL of the archive with generated images.
Possible values: [explicit, no_activity, no_place, no_wearing, no_time, no_atmosphere, no_emotion, timeout]
An array of errors associated with the influencer image generation task.
Possible values: >= 1
The number of images to generate.
The prompt for the image generation.
A sign if background is removed.
A URL to video scene of a video generation
An id of a video scene template
The creation time of the influencer image generation task.
{
"id": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
"influencer_id": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
"type": "image",
"status": "init",
"images": [
{
"url": "string"
}
],
"videos": [
{
"url": "string"
}
],
"archive": "string",
"errors": [
"explicit"
],
"images_count": 0,
"prompt": "string",
"background_removed": true,
"video_scene_url": "string",
"video_scene_id": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
"created_at_utc": "2024-09-13T10:30:55.769Z"
}
Unexpected error
- application/json
- Schema
- Example (from schema)
Schema
The error code
A human-readable error message
{
"code": 0,
"message": "string"
}