Generate template prompts/rules from an image

POST
/templates/generate-prompt

Authorization

x-api-key<token>

API Key authentication via header

In: header

Request Body

multipart/form-dataRequired
imagefile

Image file to analyze

Format: "binary"
referenceIdstring
Format: "uuid"
categoryRequiredstring
modeRequiredstring
curl -X POST "https://niravai.com/api/v1/templates/generate-prompt" \
  -H "x-api-key: <token>" \
  -F image="string" \
  -F referenceId="8502eb05-558d-4480-8511-c1011710b340" \
  -F category="E-commerce Studio" \
  -F mode="Wearing Product"

Generated prompt details

{
  "mode": "string",
  "positivePrompt": "string",
  "negativePrompt": "string",
  "lightingStyle": "string",
  "cameraAngle": "string",
  "poses": "string"
}