Pular para o conteúdo principal
POST
/
api
/
ai
/
generate
Generate content
curl --request POST \
  --url https://app.alana.shopping/api/ai/generate \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "action": "text",
  "productContext": {
    "id": "<string>",
    "name": "<string>",
    "brand": "<string>",
    "description": "<string>",
    "price": 123,
    "brandId": "<string>",
    "category": "<string>"
  },
  "prompt": "<string>",
  "model": "balanced",
  "surfaceKey": "<string>"
}
'
{
  "success": true,
  "action": "<string>",
  "data": {}
}

Autorizações

Authorization
string
header
obrigatório

Bearer token authentication via Auth0. Users authenticate through Auth0 Universal Login. Include the access token in the Authorization header: Authorization: Bearer <token>

Corpo

application/json
action
enum<string>
obrigatório

Canvas action to execute

Opções disponíveis:
text,
media,
context,
persona,
taxonomy,
semantic,
relationships,
offer,
reputation,
technical,
compliance,
logistics,
comparative,
ai-readiness,
optimization-score,
visual_attributes,
reshoot_product,
change_backdrop,
relight_product,
image_upscale,
product_video,
batch_video,
garment_swap,
look_composer,
look_variations,
look_video,
look_description,
audio_description,
sound_effect
productContext
object
obrigatório
prompt
string

Optional user prompt to guide generation

model
enum<string>
padrão:balanced

LLM quality tier to use for generation

Opções disponíveis:
economic,
balanced,
high
surfaceKey
string

Optional distribution surface key (e.g. google_shopping, vtex_pdp). When provided, surface constraints are applied to the generated output.

Resposta

Content generated successfully

success
boolean
action
string

The canvas action that was executed

data
object

Generated content result — shape varies by action

Last modified on February 16, 2026