Skip to main content

Submit influencer image generation task

POST 

/api/influencer/:id/imgen

Submit influencer image generation task

Request

Path Parameters

    id uuidrequired

Body

required
    images_count integerrequired

    Possible values: >= 1

    The number of images to generate.

    prompt stringrequired

    The prompt for the image generation.

    remove_background booleanrequired

    Condition to remove background from output image.

Responses

Successful operation

Schema
    id uuidrequired

    The unique identifier of the influencer image generation task.

    influencer_id uuidrequired

    The unique identifier of the influencer.

    type InfluencerMediaGenerationTaskTyperequired

    Possible values: [image, video]

    Type of generation task

    status InfluencerMediaGenerationTaskStatusrequired

    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.

  • Array [
  • url urlrequired

    The URL of the media.

  • ]
  • videos object[]required

    An array of videos associated with the influencer generation task.

  • Array [
  • url urlrequired

    The URL of the media.

  • ]
  • archive urlrequired

    The URL of the archive with generated images.

    errors InfluencerImageGenerationTaskError[]required

    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.

    images_count integerrequired

    Possible values: >= 1

    The number of images to generate.

    prompt stringrequired

    The prompt for the image generation.

    background_removed booleanrequired

    A sign if background is removed.

    video_scene_url stringrequired

    A URL to video scene of a video generation

    video_scene_id uuidrequired

    An id of a video scene template

    created_at_utc date-timerequired

    The creation time of the influencer image generation task.

Loading...