1. Reference
Fotor OpenAPI
  • Getting Started
    • Introduction
    • Access and Authentication
    • For Serverless Clients
    • Token Consumption
  • Reference
    • Get User Token Balance
      GET
    • Query Task Details
      GET
    • AI Upscaler API
      POST
    • AI Skin Retouch API
      POST
    • Image Generation API
      POST
    • Text to Image API
      POST
    • Image to Image (AI Art Effects) API
      POST
    • Background Remover API
      POST
    • AI Headshot API
      POST
    • Photo Colorize API
      POST
    • Photo Restoration API
      POST
    • AI Replace API
      POST
    • AI Expand API
      POST
    • AI Baby Generator API
      POST
    • AI Recolor API
      POST
    • AI Marketing Video API
      POST
  • Webhook
    • Webhook
  • AI Editor SDK
    • Getting Started
    • Get Sdk Temporary Token
      GET
  • Schemas
    • RecolorRequest
    • MiniappsRequest
    • SubmitResponse
    • ErrorResponse
  1. Reference

AI Marketing Video API

POST
/v1/aiart/marketingvideo

Overview#

The AI Marketing Video API (Smart Ad Video Maker on fotor.com) generates a
promotional video for your product. Submit a product image together with a topic
description, and the API returns a marketing-ready video.

Endpoint#

POST /v1/aiart/marketingvideo
All service settings (including the underlying workflow) are preset by Fotor.
The request only needs params (and optional metadata).

Request Parameters#

params carries the video settings:
user_image_url: product image (a publicly accessible URL)
user_prompt: product or topic description (up to 3000 characters)
video_duration: duration in seconds, as a string. Allowed values: "4", "8", "12"
video_resolution: Allowed values: 480p, 720p, 1080p
metadata is optional.

Asynchronous Task#

The submission returns a taskId. Poll GET /v1/aiart/tasks/{taskId} until
status changes from 0 (processing) to 1 (success) or 2 (failed).
On success, resultUrl contains the generated MP4 video.

Pricing#

Pricing depends on the video duration and resolution you request:
Duration \ Resolution480p720p1080p
4s28 credits80 credits120 credits
8s56 credits160 credits240 credits
12s84 credits240 credits360 credits
Each task produces exactly 1 video. Credits are deducted after the task is
successfully submitted.

Request

Authorization
Bearer Token
Provide your bearer token in the
Authorization
header when making requests to protected resources.
Example:
Authorization: Bearer ********************
or
Body Params application/jsonRequired

Example
{
    "params": {
        "user_image_url": "https://example.com/product.jpg",
        "user_prompt": "track pants",
        "video_duration": "4",
        "video_resolution": "720p"
    },
    "metadata": {}
}

Request Code Samples

Shell
JavaScript
Java
Swift
Go
PHP
Python
HTTP
C
C#
Objective-C
Ruby
OCaml
Dart
R
Request Request Example
Shell
JavaScript
Java
Swift
curl --location 'https://api-b.fotor.com/v1/aiart/marketingvideo' \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '{
    "params": {
        "user_image_url": "https://example.com/product.jpg",
        "user_prompt": "track pants",
        "video_duration": "4",
        "video_resolution": "720p"
    },
    "metadata": {}
}'

Responses

🟢200
application/json
Task submitted successfully
Bodyapplication/json

Example
{
    "code": "000",
    "msg": "success",
    "data": {
        "taskId": "string",
        "creditsIncrement": 0
    }
}
🟠400
🟠401
🟠429
🔴500
Modified at 2026-11-23 10:29:06
Previous
AI Recolor API
Next
Webhook
Built with