Skip to main content

API Parameter Structure

This API is designed to generate product copy for listings on e-commerce platforms. The payload allows users to specify language preferences, product details, and the type of content required:

Payload Fields

  • lang: Specifies the language in which the product copy should be generated. It accepts two options:

    • "id": Bahasa Indonesia
    • "en": English
  • definition: A brief description or name of the product that serves as the basis for generating the copy. For example, "Handuk Terry Palmer Luxury Cervus" provides a specific product name that the API uses to generate relevant content.

  • keywords: An array of keywords associated with the product. These keywords help tailor the content to highlight specific features or attributes of the product. Example keywords could be:

    • "handuk mandi" (bath towel)
    • "handuk elegan" (elegant towel)
    • "handuk kekinian" (modern towel)
  • type: Determines the type of product copy to generate. This field can accept the following values:

    • "title": Generates only the product title.
    • "description": Generates only the product description.
    • "features": Generates a list of features for the product.
    • "all": Generates a title, description, and features list for the product.

Example Payload

Here is an example of how to structure the payload when using this API:

{
"lang": "id",
"definition": "Handuk Terry Palmer Luxury Cervus",
"keywords": ["handuk mandi", "handuk elegan", "handuk kekinian"],
"type": "all"
}