POST /api/personalize-prompt
Builds and returns the meta-prompt text for a brand and viewer profile. Use this endpoint to get the prompt for copy/paste into your own Gemini session or another LLM.This endpoint does not call Gemini. To have Splyce call Gemini and return the identified product directly, use POST /api/identify-product.
Request body
The brand to advertise. The LLM infers the best-fitting specific product from the viewer context.
Viewer context. Accepts a JSON object or a freeform string describing the viewer (demographics, interests, region, etc.).
Prompt size. Must be
"full" or "minimal". "full" produces a detailed prompt; "minimal" produces a shorter one.Optional language for the output, e.g.
"English" or "Spanish".Optional tone guidance, legal constraints, or words to avoid. Applied when selecting the specific product.
Response
The full meta-prompt text, ready to paste into an LLM session.
The mode that was used:
"full" or "minimal".Example
Errors
| Status | Cause |
|---|---|
400 | brand_name is missing or empty. |
400 | mode is not "full" or "minimal". |