v1

latestOpenAPI 3.0.1MIT2026-07-2638658.5 KB
Asset

Submit AI script generation request

Generate AI-powered video script based on product information and requirements. The script generation is asynchronous - use the returned task_id to check status.

post/v2/ai_scripts

Request body

language'english' | 'filipino' | 'french' | 'german' | 'hindi' | 'indonesian' | 'italian' | 'japanese' | 'korean' | 'malay' | 'portuguese' | 'russian' | 'spanish' | 'thai' | 'vietnamese' | 'arabic' | 'greek' | 'turkish' | 'slovenian' | 'croatian' | 'romanian' | 'chinese' | 'bengali' | 'urdu' | 'hungarian' | 'traditional-chinese' | 'polish' | 'cantonese' | 'danish' | 'malayalam' | 'tamil' | 'telugu' | 'czech' | 'hebrew' | 'zulu' | 'swedish' | 'lithuanian' | 'dutch' | 'flemish' | 'norwegian' | 'finnish' | 'bulgarian' | 'latvian' | 'ukrainian' | 'mongolian' | 'persian' | 'odia' | 'assamese' | 'kannada' | 'tagalog' | 'amharic' | 'serbian' | 'slovak' | 'swahili' required

Script generation language

video_length_seconds'15' | '30' | '60' required

Desired video length in seconds

script_style'Don't Worry' | 'Storytime' | 'Discovery' | 'Data' | 'Top 3 reasons' | 'Light marketing' required

Script writing style for video content:

  • Don't Worry - Casual and reassuring tone
  • Storytime - Narrative and engaging storytelling approach
  • Discovery - Exploratory and revealing style
  • Data - Fact-based and analytical presentation
  • Top 3 reasons - List-based persuasive format
  • Light marketing - Soft-sell marketing approach
target_audiencestring

Target audience for the product (optional)

Example request

{
  "language": "english",
  "video_length_seconds": "30",
  "script_style": "Storytime",
  "product_info": {
    "source_type": "id",
    "data": {
      "id": "NTQ0MTkzNjg",
      "name": "Owala FreeSip Insulated Stainless Steel Water Bottle",
      "description": "The Owala FreeSip bottle is perfect for active lifestyles..."
    }
  },
  "target_audience": "Fitness enthusiasts and outdoor adventurers"
}

Response

Success

codeinteger required

Business status code:

  • 0 - Success
  • 10104 - Record not found
  • 10105 - Invalid API key
  • 18020 - Insufficient credit
  • 18025 - No permission to call APIs
  • 40000 - Parameter error
  • 50000 - System error
msgstring required

Response message

Example response

{
  "msg": "Success",
  "data": {
    "task_id": "task_123456789"
  }
}
All 38 operations