Skip to main content

Before you start

Sign in to LuluLab and get a luk- API key from My Keys. Store it on your server. All examples call https://customer.lululab.ai and send the raw key in the Authorization header. Get an API key Generation is asynchronous: POST /tasks returns a job id, then GET /tasks/{id} provides status and output. You can call POST /billing/estimates before submitting to estimate credits. This also has two steps. ProductImagePromptV1 creates a plan from product photos and verified facts. Read imagePrompts.cards from the returned output; some results add another output wrapper. Each card contains a prompt, title, and overlay suggestion. Submit an ImageGenV2 job for each card. Use this flow for ecommerce detail images, social product cards, or a sequence of marketing images. Upload a clear product photo and provide the name, verified selling points, target country, and audience. The first step returns a text plan; the second step produces images.

Step 1 fields and values

Step 1: plan the images

Product image planning request
Read output.imagePrompts.cards after planning succeeds. Each card includes prompt, title, and textOverlay. Unwrap an extra output object if present.
Image plan response (key fields)

Step 2 fields

Generate each card with a separate ImageGenV2 task. Set input.prompt to that card’s prompt; other fields are the same as the image generation API.

Step 2: generate each image

Replace PASTE_ONE_CARD_PROMPT_FROM_PLAN with a card prompt. Submit one image job per card.
Product image generation request
Submit a separate generation job for each card and keep every job id. You can use the title and overlay suggestions in your own layout workflow.