### Get AI Cover Template Details Source: https://openapi-doc.shanjian.tv/llms.txt API to retrieve the details of a specific AI cover template. ```APIDOC ## Get AI Cover Template Details ### Description API to retrieve the details of a specific AI cover template. ### Endpoint /image-generation/ai-cover-template-details ``` -------------------------------- ### Get Template Details Source: https://openapi-doc.shanjian.tv/llms.txt API to retrieve the details of a specific template. ```APIDOC ## Get Template Details ### Description API to retrieve the details of a specific template. ### Endpoint /synthesis/template-details ``` -------------------------------- ### Digital Human Talking Video (No Packaging) Source: https://openapi-doc.shanjian.tv/llms.txt API for generating digital human talking videos without packaging. See generation method explanation for details. ```APIDOC ## Digital Human Talking Video (No Packaging) ### Description API for generating digital human talking videos without packaging. See generation method explanation for details. ### Endpoint /synthesis/digital-human-talking-video-no-packaging ``` -------------------------------- ### OpenAPI Specification Details Source: https://openapi-doc.shanjian.tv/342282685e0 This snippet details various components within an OpenAPI specification, such as material types, file URLs, sound switches, introduction cards, packaging rules (including header, material, subtitle, keyword switches, and background music settings), and processing rules (including watermark display, resource preprocessing methods, material matching, metadata, and first frame covers). ```APIDOC ## OpenAPI Specification Details ### Description This section details various components within an OpenAPI specification, including material definitions, packaging rules, and processing rules. ### Components - **Material**: Defines the type (image/video) and URL of the material. - `type` (string): Enum (image, video). Description: 图片 (image), 视频 (video). - `fileUrl` (string): URL of the material. - Required: `type`, `fileUrl`. - **Material Sound Switch**: - `materialSoundSwitch` (boolean): Controls the sound for video materials. Default: `false`. - **Introduce Card**: - `introduceCard` (object): Information for the introduction card. - `name` (string): Name. - `description` (string): Description. - **Pack Rules**: - `packRules` (object): Rules for packaging content. - `headerSwitch` (boolean): Title packaging switch. - `materialSwitch` (boolean): Material packaging switch. - `subtitleSwitch` (boolean): Subtitle packaging switch. - `keywordSwitch` (boolean): Keyword packaging switch. - `backgroundMusic` (object): Background music settings. - `audioSwitch` (boolean): Music switch. - `audioUrl` (string): Audio URL. Prioritizes `audioUrl` over built-in music. - `volume` (number): Volume, with one decimal place. Minimum: 0, Maximum: 1. Default: 0.3. - **Process Rules**: - `processRules` (object): Rules for processing content. - `watermarkShow` (boolean): Whether to add "AI generated" watermark. Default: `false`. - `resourcePreprocessMethod` (string): Video preprocessing method. Enum: `sliceMerge` (slice and merge), `roughCut` (rough cut). If not set, original video duration is maintained. - `materialMatchWay` (string): Material matching method. Enum: `fuzzyMatch`, `preciseMatch`. Default: `preciseMatch`. - `metadata` (object): Metadata for watermarking. Supports one set of data, value must be a string. - `firstFrameCover` ($ref): Reference to the first frame cover schema. ``` -------------------------------- ### Create AI Video Source: https://openapi-doc.shanjian.tv/354590181e0 Initiates the creation of an AI-generated video based on specified parameters. This includes defining the visual style, virtual human model, speaker characteristics, scene content, and optional elements like intro cards and background music. The API also supports custom layer modifications and provides a callback URL for status updates. ```APIDOC ## POST /videos/ai ### Description Initiates the creation of an AI-generated video based on specified parameters. This includes defining the visual style, virtual human model, speaker characteristics, scene content, and optional elements like intro cards and background music. The API also supports custom layer modifications and provides a callback URL for status updates. ### Method POST ### Endpoint /videos/ai ### Parameters #### Request Body - **styleId** (string) - Required - The ID of the visual style to apply. - **virtualmanId** (string) - Required - The ID of the virtual human model to use. - **speakerId** (string) - Required - The ID of the speaker for the audio. - **speakerExtra** (object) - Optional - Additional speaker settings. - **speedRatio** (number) - Optional - The speed ratio for the speaker's voice. - **language** (string) - Optional - The language of the speaker's voice (e.g., "zh-CN"). - **title** (string) - Optional - The title of the video. - **scenes** (array) - Required - An array of scenes that constitute the video. - **captions** (object) - Optional - Captions for the scene. - **content** (string) - Required - The text content of the caption. - **marks** (array) - Optional - Marks for timing and modifications within the captions. - **type** (string) - Required - The type of mark (e.g., "break", "replace"). - **index** (number) - Required if type is "break" - The index for the break. - **time** (number) - Required if type is "break" - The time in milliseconds for the break. - **indexRange** (array) - Required if type is "replace" - The range of indices to replace. - **text** (string) - Required if type is "replace" - The replacement text. - **materials** (array) - Optional - Media materials to include in the scene. - **fileUrl** (string) - Required - The URL of the media file. - **soundSwitch** (boolean) - Optional - Whether to enable sound for the material. - **introduceCard** (object) - Optional - An introductory card for the video. - **name** (string) - Required - The name to display on the card. - **description** (string) - Required - The description to display on the card. - **packRules** (object) - Optional - Rules for packaging the video output. - **headerSwitch** (boolean) - Optional - Whether to include a header. - **materialSwitch** (boolean) - Optional - Whether to include materials. - **subtitleSwitch** (boolean) - Optional - Whether to include subtitles. - **keywordSwitch** (boolean) - Optional - Whether to include keywords. - **backgroundMusic** (object) - Optional - Background music settings. - **audioSwitch** (boolean) - Optional - Whether to enable background music. - **audioUrl** (string) - Optional - The URL of the background music file. - **volume** (number) - Optional - The volume of the background music. - **processRules** (object) - Optional - Rules for video processing. - **materialComposition** (string) - Optional - The strategy for composing materials (e.g., "random"). - **watermarkShow** (boolean) - Optional - Whether to display a watermark. - **metadata** (object) - Optional - Metadata for the video. - **AIGC** (string) - Optional - AIGC metadata string. - **renderResolution** (number) - Optional - The output video resolution in pixels (e.g., 1080, 2160). See documentation for details on input material restrictions. - **structLayers** (array) - Optional - Data for layers that need modification. - **markCode** (string) - Required - The code identifying the layer. - **show** (boolean) - Required - Whether to show the layer. - **showMode** (string) - Required - The display mode for the layer. - **showTime** (number) - Required - The display duration for the layer. - **layer** (object) - Required - The layer content. - **transform** (object) - Optional - Transformation properties for the layer. - **position** (array) - Optional - The position of the layer [x, y, z]. - **callbackUrl** (string) - Optional - The URL to receive result notifications. ### Request Example ```json { "styleId": "683425fda128490030d8e28a", "virtualmanId": "68c26d547ffe5a00304f22b9", "speakerId": "68c2712e56ac7800305e7ad5", "speakerExtra": { "speedRatio": 1, "language": "zh-CN" }, "title": "聊AI行业", "scenes": [ { "captions": { "content": "今天我们分享一个AI行业的成功案例", "marks": [ { "type": "break", "index": 3, "time": 2000 }, { "type": "replace", "indexRange": [ 0, 1 ], "text": "昨天" } ] }, "materials": [ { "fileUrl": "https://golden-final.com/a.mp4", "soundSwitch": true }, { "fileUrl": "https://golden-final.com/a.jpg" } ] } ], "introduceCard": { "name": "廖志勇", "description": "AI行业领军任务" }, "packRules": { "headerSwitch": true, "materialSwitch": true, "subtitleSwitch": true, "keywordSwitch": true, "backgroundMusic": { "audioSwitch": true, "audioUrl": "https://golden-final.com/bg.mp3", "volume": 1 } }, "processRules": { "materialComposition": "random", "watermarkShow": true, "metadata": { "AIGC": "{\"Label\":\"1\",\"ContentProducer\":\"AI服务提供者的名称或统一社会信用代码等\",\"ProduceID\":\"XXXXXXXXXXXXXXXXXXX\"}" } }, "renderResolution": 1080, "structLayers": [ { "markCode": "headerLayer", "show": true, "showMode": "customize", "showTime": 2, "layer": { "transform": { "position": [ 0, 0, 0 ] } } } ], "callbackUrl": "https://exotic-reservation.org/hook" } ``` ### Response #### Success Response (200) - **code** (string) - Indicates the status of the request. "Succeed" means success; other values indicate failure. Refer to the error code table for failure codes. - **data** (object) - Contains the task ID upon success. - **taskId** (string) - The ID of the task. - **message** (string) - Error description if the code is not "Succeed". - **requestId** (string) - A unique ID for the request, to be provided for troubleshooting if an error occurs. #### Response Example ```json { "code": "Succeed", "data": { "taskId": "your_task_id_here" }, "message": "", "requestId": "unique_request_id" } ``` ``` -------------------------------- ### AI Cover Template List Source: https://openapi-doc.shanjian.tv/llms.txt API to retrieve a list of AI cover templates. ```APIDOC ## AI Cover Template List ### Description API to retrieve a list of AI cover templates. ### Endpoint /image-generation/ai-cover-templates ``` -------------------------------- ### OpenAPI Specification Structure Source: https://openapi-doc.shanjian.tv/354590181e0 A basic structure for an OpenAPI Specification file, showing sections for securitySchemes, servers, and security. ```yaml securitySchemes: {} servers: - url: https://openapi.shanjian.tv description: 正式环境 security: [] ``` -------------------------------- ### Image to Digital Human Cloning Source: https://openapi-doc.shanjian.tv/llms.txt API for cloning digital humans from images. Requires specific video file formats. ```APIDOC ## Image to Digital Human Cloning ### Description API for cloning digital humans from images. Requires specific video file formats. ### Endpoint /clone/image-to-digital-human ``` -------------------------------- ### Professional Digital Human Cloning Source: https://openapi-doc.shanjian.tv/llms.txt API for cloning professional digital humans. Requires specific video file formats. ```APIDOC ## Professional Digital Human Cloning ### Description API for cloning professional digital humans. Requires specific video file formats. ### Endpoint /clone/professional-digital-human ``` -------------------------------- ### Smart Editing Template List Source: https://openapi-doc.shanjian.tv/llms.txt API to retrieve a list of smart editing templates. ```APIDOC ## Smart Editing Template List ### Description API to retrieve a list of smart editing templates. ### Endpoint /synthesis/smart-editing-templates ``` -------------------------------- ### Express Digital Human Cloning Source: https://openapi-doc.shanjian.tv/llms.txt API for cloning express digital humans. Requires specific video file formats. ```APIDOC ## Express Digital Human Cloning ### Description API for cloning express digital humans. Requires specific video file formats. ### Endpoint /clone/express-digital-human ``` -------------------------------- ### Voice Cloning Source: https://openapi-doc.shanjian.tv/llms.txt API for voice cloning. Supports uploading audio files for voice replication. ```APIDOC ## Voice Cloning ### Description API for voice cloning. Supports uploading audio files for voice replication. ### Endpoint /clone/voice ``` -------------------------------- ### News Style Video Source: https://openapi-doc.shanjian.tv/llms.txt API for generating news style videos. See packaging rules for details. ```APIDOC ## News Style Video ### Description API for generating news style videos. See packaging rules for details. ### Endpoint /synthesis/news-style-video ``` -------------------------------- ### AI Cover Image Generation Source: https://openapi-doc.shanjian.tv/llms.txt API for generating AI cover images. ```APIDOC ## AI Cover Image Generation ### Description API for generating AI cover images. ### Endpoint /image-generation/ai-cover-image ``` -------------------------------- ### Process Video Source: https://openapi-doc.shanjian.tv/360232310e0 Applies a specified style to a video, with options for customizing materials, subtitles, and other processing rules. A callback URL can be provided for status updates. ```APIDOC ## POST /videos/process ### Description Applies a specified style to a video, with options for customizing materials, subtitles, and other processing rules. A callback URL can be provided for status updates. ### Method POST ### Endpoint /videos/process ### Parameters #### Request Body - **styleId** (string) - Required - The ID of the style to apply. - **videoUrl** (string) - Required - The URL of the video to process. - **language** (string) - Optional - The language for the video. - **title** (string) - Optional - The title of the video. - **subtitle** (array) - Optional - A list of subtitle objects, each with startMs, endMs, and text. - **materials** (array) - Optional - A list of material objects, each with fileUrl, soundSwitch, entryPoint, and duration. - **introduceCard** (object) - Optional - Configuration for an introduce card, including name and description. - **packRules** (object) - Optional - Rules for packaging the video, including headerSwitch, materialSwitch, subtitleSwitch, keywordSwitch, and backgroundMusic settings. - **processRules** (object) - Optional - Rules for video processing, including watermarkShow, resourcePreprocessMethod, materialMatchWay, and metadata. - **structLayers** (array) - Optional - A list of structural layer objects, each with markCode, show, showMode, showTime, and layer details. - **callbackUrl** (string) - Optional - The URL to receive status callbacks. ### Request Example ```json { "styleId": "68aebb91b8619ed6f4168f40", "videoUrl": "https://golden-final.com/a.mp4", "title": "聊AI行业", "language": "zh-CN", "materials": [ { "fileUrl": "https://golden-final.com/a.jpg", "soundSwitch": false, "entryPoint": 0, "duration": 2 }, { "fileUrl": "https://golden-final.com/b.mp4", "soundSwitch": true, "entryPoint": 2, "duration": 5 } ], "introduceCard": { "name": "廖志勇", "description": "AI行业领军任务" }, "packRules": { "headerSwitch": true, "materialSwitch": true, "subtitleSwitch": true, "keywordSwitch": true, "backgroundMusic": { "audioSwitch": true, "audioUrl": "https://golden-final.com/bg.mp3", "volume": 1 } }, "processRules": { "watermarkShow": true, "resourcePreprocessMethod": "roughCut", "materialMatchWay": "fuzzyMatch", "metadata": { "AIGC": "{\"Label\":\"1\",\"ContentProducer\":\"AI服务提供者的名称或统一社会信用代码等\",\"ProduceID\":\"XXXXXXXXXXXXXXXXXXX\"}" } }, "subtitle": [ { "startMs": 0, "endMs": 500, "text": "A" }, { "startMs": 500, "endMs": 1000, "text": "I" } ], "structLayers": [ { "markCode": "headerLayer", "show": true, "showMode": "customize", "showTime": 2, "layer": { "transform": { "position": [ 0, 0, 0 ] } } } ], "callbackUrl": "https://exotic-reservation.org/hook" } ``` ### Response #### Success Response (200) - **code** (string) - Indicates the request status. 'Succeed' means success; otherwise, it indicates failure. - **data** (object) - Contains task-related data. - **taskId** (string) - The ID of the processing task. - **message** (string) - Error description if the code is not 'Succeed'. - **requestId** (string) - Unique identifier for the request. #### Response Example ```json { "code": "Succeed", "data": { "taskId": "task_12345abcde" }, "message": "", "requestId": "req_abcdef12345" } ``` ``` -------------------------------- ### Custom Real Person Talking Mixed Editing Video Source: https://openapi-doc.shanjian.tv/llms.txt API for generating custom real person talking mixed editing videos. See packaging rules for details. ```APIDOC ## Custom Real Person Talking Mixed Editing Video ### Description API for generating custom real person talking mixed editing videos. See packaging rules for details. ### Endpoint /synthesis/custom-real-person-mixed-editing-video ``` -------------------------------- ### Text to Speech Source: https://openapi-doc.shanjian.tv/llms.txt API for converting text into speech. ```APIDOC ## Text to Speech ### Description API for converting text into speech. ### Endpoint /synthesis/text-to-speech ``` -------------------------------- ### Audio to Text (ASR) Source: https://openapi-doc.shanjian.tv/llms.txt API for converting audio files to text. Specifies audio file requirements. ```APIDOC ## Audio to Text (ASR) ### Description API for converting audio files to text. Specifies audio file requirements. ### Endpoint /asr/audio-to-text ``` -------------------------------- ### Custom Digital Human Talking Mixed Editing Video Source: https://openapi-doc.shanjian.tv/llms.txt API for generating custom digital human talking mixed editing videos. See generation method explanation for details. ```APIDOC ## Custom Digital Human Talking Mixed Editing Video ### Description API for generating custom digital human talking mixed editing videos. See generation method explanation for details. ### Endpoint /synthesis/custom-digital-human-mixed-editing-video ``` -------------------------------- ### Query Task Details Source: https://openapi-doc.shanjian.tv/llms.txt API to query the details of a specific task. ```APIDOC ## Query Task Details ### Description API to query the details of a specific task. ### Endpoint /task/query-details ``` -------------------------------- ### Real Person Talking Mixed Editing Video Source: https://openapi-doc.shanjian.tv/llms.txt API for generating real person talking mixed editing videos. See packaging rules for details. ```APIDOC ## Real Person Talking Mixed Editing Video ### Description API for generating real person talking mixed editing videos. See packaging rules for details. ### Endpoint /synthesis/real-person-mixed-editing-video ``` -------------------------------- ### Custom Material Mixed Editing Video Source: https://openapi-doc.shanjian.tv/llms.txt API for generating custom material mixed editing videos. See generation method explanation for details. ```APIDOC ## Custom Material Mixed Editing Video ### Description API for generating custom material mixed editing videos. See generation method explanation for details. ### Endpoint /synthesis/custom-material-mixed-editing-video ``` -------------------------------- ### Public Digital Human List Source: https://openapi-doc.shanjian.tv/llms.txt API to retrieve a list of public digital humans. ```APIDOC ## Public Digital Human List ### Description API to retrieve a list of public digital humans. ### Endpoint /public/digital-human-list ``` -------------------------------- ### Video Processing Source: https://openapi-doc.shanjian.tv/342282685e0 This endpoint processes a video based on the provided style ID, video URL, and other customizable parameters. It allows for detailed configuration of materials, subtitles, processing rules, and callback notifications. ```APIDOC ## POST /video/process ### Description Processes a video with specified style and content, allowing for customization of various elements like materials, subtitles, and processing rules. ### Method POST ### Endpoint /video/process ### Parameters #### Request Body - **styleId** (string) - Required - The ID of the style to apply to the video. - **videoUrl** (string) - Required - The URL of the video to process. - **language** (string) - Optional - The language code for the video (e.g., 'zh-CN'). - **title** (string) - Optional - The title of the video. - **subtitle** (array) - Optional - An array of subtitle objects, each with startMs, endMs, and text. - **materials** (array) - Optional - An array of materials (images or videos) to be used in the video. - **type** (string) - Required - Type of material (e.g., 'image', 'video'). - **fileUrl** (string) - Required - URL of the material file. - **materialSoundSwitch** (boolean) - Optional - Switch to control sound for materials. - **introduceCard** (object) - Optional - Information for an introduction card. - **name** (string) - Required - Name to display on the card. - **description** (string) - Required - Description for the card. - **packRules** (object) - Optional - Rules for packaging the video. - **headerSwitch** (boolean) - Optional - Switch for including a header. - **materialSwitch** (boolean) - Optional - Switch for including materials. - **subtitleSwitch** (boolean) - Optional - Switch for including subtitles. - **keywordSwitch** (boolean) - Optional - Switch for including keywords. - **backgroundMusic** (object) - Optional - Background music settings. - **audioSwitch** (boolean) - Optional - Switch for background music. - **audioUrl** (string) - Optional - URL of the background music file. - **volume** (number) - Optional - Volume level for the background music. - **processRules** (object) - Optional - Rules for video processing. - **watermarkShow** (boolean) - Optional - Whether to show a watermark. - **resourcePreprocessMethod** (string) - Optional - Method for preprocessing resources (e.g., 'roughCut'). - **materialMatchWay** (string) - Optional - Method for matching materials (e.g., 'fuzzyMatch'). - **metadata** (object) - Optional - Metadata for the video. - **AIGC** (string) - Optional - AIGC metadata string. - **renderResolution** (number) - Optional - Output video resolution in pixels (e.g., 1080, 2160). Defaults to 1080. - **structLayers** (array) - Optional - Array of struct layers for editing. - **markCode** (string) - Required - Mark code for the layer (e.g., 'headerLayer'). - **show** (boolean) - Required - Whether to show the layer. - **showMode** (string) - Required - Display mode for the layer. - **showTime** (number) - Required - Display duration for the layer. - **layer** (object) - Required - Layer content details. - **transform** (object) - Required - Transformation properties for the layer. - **position** (array) - Required - Position coordinates [x, y, z]. - **callbackUrl** (string) - Optional - URL to receive the processing result callback. ### Request Example { "styleId": "68aebb91b8619ed6f4168f40", "videoUrl": "https://golden-final.com/a.mp4", "title": "聊AI行业", "language": "zh-CN", "materials": [ { "type": "image", "fileUrl": "https://golden-final.com/a.jpg" }, { "type": "video", "fileUrl": "https://golden-final.com/b.jpg" } ], "materialSoundSwitch": false, "introduceCard": { "name": "廖志勇", "description": "AI行业领军任务" }, "packRules": { "headerSwitch": true, "materialSwitch": true, "subtitleSwitch": true, "keywordSwitch": true, "backgroundMusic": { "audioSwitch": true, "audioUrl": "https://golden-final.com/bg.mp3", "volume": 1 } }, "processRules": { "watermarkShow": true, "resourcePreprocessMethod": "roughCut", "materialMatchWay": "fuzzyMatch", "metadata": { "AIGC": "{\"Label\":\"1\",\"ContentProducer\":\"AI服务提供者的名称或统一社会信用代码等\",\"ProduceID\":\"XXXXXXXXXXXXXXXXXXX\"}" } }, "subtitle": [ { "startMs": 0, "endMs": 500, "text": "A" }, { "startMs": 500, "endMs": 1000, "text": "I" } ], "structLayers": [ { "markCode": "headerLayer", "show": true, "showMode": "customize", "showTime": 2, "layer": { "transform": { "position": [ 0, 0, 0 ] } } } ], "callbackUrl": "https://exotic-reservation.org/hook" } ### Response #### Success Response (200) - **code** (string) - Indicates the status of the request. 'Succeed' for success, otherwise an error code. - **data** (object) - Contains the result of the video processing operation. ``` -------------------------------- ### Digital Human Talking Mixed Editing Video Source: https://openapi-doc.shanjian.tv/llms.txt API for generating digital human talking mixed editing videos. Choose one of the video generation methods. ```APIDOC ## Digital Human Talking Mixed Editing Video ### Description API for generating digital human talking mixed editing videos. Choose one of the video generation methods. ### Endpoint /synthesis/digital-human-mixed-editing-video ``` -------------------------------- ### Digital Human/Voice Deletion Source: https://openapi-doc.shanjian.tv/llms.txt API to delete digital humans and cloned voices. IDs provided are for digital humans or voice IDs. Deletion is irreversible, so operate with caution. ```APIDOC ## Digital Human/Voice Deletion ### Description API to delete digital humans and cloned voices. IDs provided are for digital humans or voice IDs. Deletion is irreversible, so operate with caution. ### Endpoint /delete/digital-human-or-voice ``` -------------------------------- ### Material Mixed Editing Video Source: https://openapi-doc.shanjian.tv/llms.txt API for generating material mixed editing videos. Choose one of the video generation methods. ```APIDOC ## Material Mixed Editing Video ### Description API for generating material mixed editing videos. Choose one of the video generation methods. ### Endpoint /synthesis/material-mixed-editing-video ``` -------------------------------- ### Public Voice List Source: https://openapi-doc.shanjian.tv/llms.txt API to retrieve a list of public voices. ```APIDOC ## Public Voice List ### Description API to retrieve a list of public voices. ### Endpoint /public/voice-list ``` === COMPLETE CONTENT === This response contains all available snippets from this library. No additional content exists. Do not make further requests.