---
title: "POST /api/asset_generator/"
method: POST
path: "/api/asset_generator/"
tags: ["asset_generator"]
---

# POST /api/asset_generator/

`POST /api/asset_generator/`

This endpoint generates a lipsync v2 video.

## Request body

- GenerationRequest
  - `model_name` string, required — Name of the AI generation model.
  - `input_params` unknown, required
  - `webhook_url` string, uri — Webhook URL

## Response `201`

- APIAIToolsFlowAsset
  - `id` string, uuid, required
  - `model_name` string, required — Name of the AI generation model used.
  - `gen_type` string, required — Type of the AI generation model used.
  - `status` 'initializing' | 'generating' | 'done' | 'failed' — * `initializing` - initializing * `generating` - generating * `done` - done * `failed` - failed
  - `failed_reason` string, required — Reason for failure if the generation failed.
  - `assets` string, required — List of generated assets.
  - `aspect_ratio` string, nullable — Aspect ratio of the asset
  - `output_nums` integer — Number of outputs
  - `duration` integer, required
  - `resolution` string, nullable — e.g., 1080x1920
  - `input_params` object, required — Input parameters used for AI generation.
  - `webhook_url` string, uri, nullable — Webhook URL for status updates. Default is null.
  - `credits_used` number, required — Credits used in this API call
  - `created_at` string, date-time, required
  - `updated_at` string, date-time, required

---

[API](https://skmtc.dev/creatify/apis/creatify-ai-api.md) · [All operations](https://skmtc.dev/creatify/apis/creatify-ai-api/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/creatify/creatify-ai-api/revisions/7ca3bf8077ba/schema)
