---
title: "Submit AI script generation request"
method: POST
path: "/v2/ai_scripts"
tags: ["Asset"]
---

# Submit AI script generation request

`POST /v2/ai_scripts`

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

## Request body

- object
  - `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
  - `product_info` object, required — Product information for script generation
    - `source_type` 'id' | 'details', required — Source type of product information: * id - Use product ID from product creation endpoint * details - Provide product details directly
    - `data` object, required — Product data based on source_type
      - `id` string — Product ID (required when source_type is 'id')
      - `name` string — Product name (required when source_type is 'details')
      - `description` string — Product description and selling points (required when source_type is 'details')
  - `target_audience` string — Target audience for the product (optional)

## Response `200`

Success

- object
  - `code` integer, 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
  - `msg` string, required — Response message
  - `data` object
    - `task_id` string — Task ID to check script generation status

---

[API](https://skmtc.net/jogg/apis/joggai-openapi-v2.md) · [All operations](https://skmtc.net/jogg/apis/joggai-openapi-v2/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/jogg/joggai-openapi-v2/versions/ec8807ce9c12/schema)
