TrendSwap Video Generation API
Create, monitor, list, and manage AI template video and motion transfer tasks
Create, monitor, list, and manage AI template video and motion transfer tasks
Every API here is available over the APIs.io API and to AI agents over MCP.
One button, every client — Claude, Cursor, VS Code and the rest.
https://apis.io/mcp
find_apisBrowse and filter every API in the catalog.get_api_artifactsOne API's artifacts, grouped by type.get_openapiThe primary OpenAPI for this API.find_similar_apisAPIs that look like this one.apis_io_searchSTART HERE — APIs, providers and tags for one query, each with its total.resolveTurn a domain, URL or GitHub org into the provider it belongs to.find_cohortsEvery scored population of providers in the catalog.curl "https://apis.io/api/v1/apis/trendswap-app:trendswap-app-video-generation-api"
curl "https://apis.io/api/v1/apis?limit=25"
Calls without X-API-Key need no key. Calls with it need a paid plan — get a key.
Free tier, no form to fill in. Signing in shares your email address with us — we store it to create your key and to recognise you if you sign in with another provider. By signing up you are subscribing to the APIs.io and API Evangelist newsletters — you can unsubscribe from any issue. See our Privacy Policy and Terms.
A second provider on the same verified email joins the account you already have.
openapi: 3.2.0
info:
title: TrendSwap Video Generation API
description: 'TrendSwap is a viral social AI video studio and motion transfer platform supporting 4 global languages (English, Spanish, Japanese, Chinese) that transforms authorized portraits into trending video clips with 100% identity preservation.
This API provides programmatic access to viral video templates, AI face swap and motion transfer video generation, portrait media management, credit balances, and the official Model Context Protocol (MCP) streamable endpoint for Zapier, Cursor, Claude Desktop, and autonomous agents.'
version: 1.0.0
contact:
name: TrendSwap Developer Support
email: support@trendswap.app
url: https://trendswap.app
license:
name: Proprietary
url: https://trendswap.app/terms-of-service
servers:
- url: https://trendswap.app
description: Production Server
security:
- ApiKeyAuth: []
- XApiKeyAuth: []
tags:
- name: Video Generation
description: Create, monitor, list, and manage AI template video and motion transfer tasks
paths:
/api/generation/jobs:
post:
tags:
- Video Generation
summary: Create Video Generation Job
description: Initiates an asynchronous AI template video (motion transfer) job using a portrait photo and a viral template. Requires an active API Key with sufficient credits.
operationId: createGenerationJob
requestBody:
required: true
content:
application/json:
schema:
$ref: '#/components/schemas/CreateJobRequest'
responses:
'200':
description: Job created successfully
content:
application/json:
schema:
type: object
properties:
code:
type: integer
example: 0
data:
type: object
properties:
job:
$ref: '#/components/schemas/JobResponse'
'400':
description: Validation error (missing template, invalid portrait ID, or resolution)
content:
application/json:
schema:
$ref: '#/components/schemas/ErrorResponse'
'401':
description: Unauthorized - missing or invalid API Key
content:
application/json:
schema:
$ref: '#/components/schemas/ErrorResponse'
'402':
description: Insufficient credits
content:
application/json:
schema:
$ref: '#/components/schemas/ErrorResponse'
'503':
description: GPU cluster temporarily busy - retry with exponential backoff
content:
application/json:
schema:
$ref: '#/components/schemas/ErrorResponse'
get:
tags:
- Video Generation
summary: List User Generation Jobs
description: Returns a paginated list of recent video generation jobs submitted by the authenticated account.
operationId: listGenerationJobs
responses:
'200':
description: List of generation jobs
content:
application/json:
schema:
type: object
properties:
code:
type: integer
example: 0
data:
type: object
properties:
jobs:
type: array
items:
$ref: '#/components/schemas/JobResponse'
'401':
description: Unauthorized
content:
application/json:
schema:
$ref: '#/components/schemas/ErrorResponse'
/api/generation/jobs/{id}:
get:
tags:
- Video Generation
summary: Get Job Status & Video Result
description: Retrieves the real-time execution status and progress of a video generation job. Once status is `completed`, `video_url` contains the downloadable 9:16 or 16:9 MP4 file.
operationId: getGenerationJob
parameters:
- name: id
in: path
required: true
description: Job ID returned by POST /api/generation/jobs (e.g. job_01h92k8s92)
schema:
type: string
example: job_01h92k8s92
responses:
'200':
description: Job status details
content:
application/json:
schema:
type: object
properties:
code:
type: integer
example: 0
data:
type: object
properties:
job:
$ref: '#/components/schemas/JobResponse'
'401':
description: Unauthorized
content:
application/json:
schema:
$ref: '#/components/schemas/ErrorResponse'
'404':
description: Video job not found
content:
application/json:
schema:
$ref: '#/components/schemas/ErrorResponse'
delete:
tags:
- Video Generation
summary: Delete Generation Job
description: Deletes a video generation job record and associated temporary assets.
operationId: deleteGenerationJob
parameters:
- name: id
in: path
required: true
description: Job ID to delete
schema:
type: string
example: job_01h92k8s92
responses:
'200':
description: Job successfully deleted
content:
application/json:
schema:
type: object
properties:
code:
type: integer
example: 0
data:
type: object
properties:
deleted:
type: boolean
example: true
'401':
description: Unauthorized
content:
application/json:
schema:
$ref: '#/components/schemas/ErrorResponse'
'404':
description: Job not found
content:
application/json:
schema:
$ref: '#/components/schemas/ErrorResponse'
components:
schemas:
JobResponse:
type: object
properties:
id:
type: string
example: job_01h92k8s92
status:
type: string
enum:
- pending
- processing
- completed
- failed
example: completed
progress:
type: integer
minimum: 0
maximum: 100
example: 100
video_url:
type:
- string
- 'null'
format: uri
example: https://cdn.trendswap.app/videos/job_01h92k8s92.mp4
resolution:
type: string
example: 480p
format:
type: string
example: vertical
template:
type: string
example: burning-bridges
portrait_id:
type: string
example: port_8x92nd82la
error_message:
type:
- string
- 'null'
example: null
created_at:
type: string
format: date-time
example: '2026-10-25T12:00:00Z'
updated_at:
type: string
format: date-time
example: '2026-10-25T12:01:15Z'
CreateJobRequest:
type: object
required:
- template
- portrait_id
- idempotency_key
properties:
template:
type: string
description: Template ID (e.g. burning-bridges, bulin-47, topo-gigio, flying-tesla-roadster-ai, bby-wow-guy-ai)
example: burning-bridges
portrait_id:
type: string
description: ID of an uploaded portrait photo obtained from POST /api/portraits
example: port_8x92nd82la
secondary_portrait_id:
type: string
description: Optional second portrait ID for duo / couple templates
example: port_9y28ka91lo
resolution:
type: string
enum:
- 480p
- 720p
- 1080p
default: 480p
description: Output video resolution (480p is fast & recommended for Zapier automations)
format:
type: string
enum:
- vertical
- horizontal
default: vertical
description: Video aspect orientation (vertical 9:16 or horizontal 16:9)
idempotency_key:
type: string
minLength: 8
maxLength: 128
description: Unique client-generated idempotency key to prevent duplicate charges
example: zap_req_89281928301
ErrorResponse:
type: object
properties:
code:
type: integer
example: 1
message:
type: string
example: Invalid or expired API Key
securitySchemes:
ApiKeyAuth:
type: http
scheme: bearer
bearerFormat: API Key
description: 'TrendSwap API Key in format: Bearer sk_... (obtain from https://trendswap.app/settings/apikeys)'
XApiKeyAuth:
type: apiKey
in: header
name: X-API-Key
description: TrendSwap API Key passed in the X-API-Key header