collections
Collections

Generate Product Prompt

Generate ad prompt from product images and template using GPT-5.1 vision.

This endpoint:

  1. Fetches product images from the specified collections
  2. Sends them to GPT-5.1 vision along with the template info
  3. Uses product understanding from CompanyProfile or company description from User
  4. Returns a customized prompt featuring the user's actual products
post/api/v1/collections/generate-product-prompt

Request

  • Base URL: https://api.trylapis.com (the document declares no server; this is the origin it was published from)
  • URL: https://api.trylapis.com/api/v1/collections/generate-product-prompt
  • Auth: HTTP bearer

Request body

collection_idsinteger[] required

Collection IDs to use for product images

template_titlestring required

Title of the template style

template_descriptionstring required

Description of the template style

template_promptstring required

Base prompt from the template

Response

Successful Response

promptstring required

Generated prompt text

Changes

No recorded changes to this operation across all 1 revision of this API.