Documentation

Product AI

AI-powered product description generation with configurable tone, language, and agent

Last updated: Feb 09, 2026

Product AI

Note: Requires authentication. Requires AI features to be enabled in admin Settings → AI Settings.

Generate Product Description

Use AI to generate product descriptions based on product data and optional context.

POST /api/v1/products/{id}/generate-description
Headers: Authorization: Bearer {token} Request Body:
{
  "product_title": "Premium Yoga Mat",
  "category": "Sports & Outdoors",
  "attributes": ["Non-slip", "6mm thickness", "Eco-friendly"],
  "brand": "FitPro",
  "key_features": ["Anti-tear", "Moisture resistant", "Carrying strap included"],
  "target_audience": "Fitness enthusiasts",
  "tone_preference": "professional",
  "language": "en",
  "agent": "Product Description Writer"
}

Request Fields

FieldTypeRequiredDescription
product_titlestringNoOverride product name (max 200 chars)
categorystringNoProduct category context (max 255 chars)
attributesarrayNoProduct attributes for context
imagesarrayNoImage URLs for vision-capable models
brandstringNoBrand name (max 120 chars)
key_featuresarrayNoKey selling points
target_audiencestringNoIntended audience (max 120 chars)
tone_preferencestringNoWriting tone: professional, casual, luxury, etc. (max 50 chars)
languagestringNoOutput language code, e.g., en, hi (max 10 chars)
agentstringNoSpecific AI agent name to use (max 120 chars)

Response: 200 OK

{
  "success": true,
  "message": "Product description generated",
  "data": {
    "short_description": "Professional-grade yoga mat with non-slip surface...",
    "description": "Elevate your yoga practice with the Premium Yoga Mat by FitPro..."
  }
}

Error Response: 422

{
  "success": false,
  "message": "AI generation failed: Provider not configured",
  "error_code": "AI_GENERATION_FAILED"
}