render
curl --request POST \
--url https://api-services.podcastor.ai/open/podcast/v1/render \
--header 'Content-Type: application/json' \
--header 'X-Api-Key: <api-key>' \
--data '
{
"tasks": [
{
"project_id": "<string>",
"index": 123,
"workspace": "<string>",
"workspace_obj": {
"aspect_ratio": 123,
"condition": "<string>",
"ext": "<string>",
"flags": {
"emotions": true,
"podcast": true,
"ppt2video": true,
"uhd": true
},
"h": 123,
"has_edit_media": true,
"keying_enable": 123,
"music_id": 123,
"name": "<string>",
"person_id": 123,
"person_source": 123,
"preview_cover_time": 123,
"preview_cover_url": "<string>",
"render_subtitle": true,
"scenes": [
{
"audio_script": {
"duration": 123,
"id": 123,
"name": "<string>",
"type": 123,
"url": "<string>"
},
"bg_color": "<string>",
"duration": 123,
"emotion_description": "<string>",
"key": "<string>",
"new_duration": 123,
"placeholder_script": {
"duration": 123
},
"script": "<string>",
"script_config": {
"emotion": "<string>",
"model_id": "<string>",
"pitch": 123,
"similarity": 123,
"speaker_boost": true,
"stability": 123,
"style_exaggeration": 123,
"tts_speed": 123,
"volume": 123
},
"script_type": "<string>",
"speak_person": {
"id": 123,
"person_source": 123
},
"speaker_order": 123,
"subtitle_info": [
{
"end_time": 123,
"start_time": 123,
"text": "<string>"
}
],
"tracks": [
{
"index": 123,
"key": "<string>",
"layers": [
{
"alpha": 123,
"api_template_meta": {
"replace_key": "<string>"
},
"color": "<string>",
"crop": {
"h": 123,
"w": 123,
"x": 123,
"y": 123
},
"fit_mode": "<string>",
"flip": "<string>",
"gauss": 123,
"h": 123,
"key": "<string>",
"mode": "<string>",
"moving_camera": {
"type": "<string>"
},
"path": "<string>",
"person_cover": "<string>",
"person_preview_url": "<string>",
"preview_path": "<string>",
"prop": {
"animationInfo": {
"cycle": {
"duration": 123,
"effectType": "<string>"
},
"enter": {
"duration": 123,
"effectType": "<string>"
},
"leave": {
"duration": 123,
"effectType": "<string>"
}
},
"audioPath": "<string>",
"bg_transparent": true,
"clip": {
"end": 123,
"start": 123
},
"emotion": {
"cover": "<string>",
"id": 123,
"name": "<string>",
"preview_transparent_video": "<string>",
"preview_video": "<string>"
},
"meta": {
"cover": "<string>",
"id": 123,
"name": "<string>",
"origin_height": 123,
"origin_width": 123,
"person_source": 123,
"playback_type": "<string>",
"preview_transparent_video": "<string>",
"preview_video": "<string>",
"show_type_preset": {
"all": {
"shape": {
"color": "<string>",
"h": 123,
"r": 123,
"type": "<string>",
"w": 123,
"x": 123,
"y": 123
},
"size": {
"h": 123,
"w": 123
}
},
"circle": {
"shape": {
"color": "<string>",
"h": 123,
"r": 123,
"type": "<string>",
"w": 123,
"x": 123,
"y": 123
},
"size": {
"h": 123,
"w": 123
}
}
},
"sub_type": "<string>",
"tts_url": "<string>",
"type": "<string>"
},
"play_mode": "<string>",
"renderScale": 123,
"shapeInfo": {
"color": "<string>",
"html": "<string>",
"strokeColor": "<string>",
"strokeType": "<string>",
"strokeWidth": 123,
"type": "<string>"
},
"show_type": "<string>",
"templateInfo": {},
"textConfig": {
"align": "<string>",
"background": {},
"color": "<string>",
"fontFamily": {},
"fontSize": 123,
"fontStyle": {},
"padding": {},
"shadow": {},
"stroke": {},
"textDecoration": "<string>",
"verticalAlign": "<string>"
},
"textInfo": {
"backgroundColor": "<string>",
"color": "<string>",
"content": "<string>",
"fontFamily": "<string>",
"fontFamilyID": "<string>",
"fontFileName": "<string>",
"fontSize": 123,
"fontStyle": "<string>",
"fontWeight": "<string>",
"paddingBottom": 123,
"paddingLeft": 123,
"paddingRight": 123,
"paddingTop": 123,
"radius": 123,
"strokeColor": "<string>",
"strokeWidth": 123,
"textAlign": "<string>",
"textDecoration": "<string>",
"textOrientation": "<string>",
"textShadowBlur": 123,
"textShadowColor": "<string>",
"textShadowH": 123,
"textShadowV": 123,
"writingMode": "<string>"
},
"waveformConfig": {},
"word_seq": [
{
"break": "<string>",
"end": 123,
"hide": true,
"key": "<string>",
"start": 123,
"text": "<string>"
}
]
},
"r": 123,
"radius": "<string>",
"shape": {
"background_gauss": 123,
"color": "<string>",
"content_position": {
"h": 123,
"r": 123,
"w": 123,
"x": 123,
"y": 123
},
"disable_shape": true,
"object_fit": "<string>",
"radius": 123,
"type": "<string>"
},
"subtitle": {
"font_family": {
"name": "<string>",
"url": "<string>"
},
"html": "<string>",
"line_size": 123,
"mss": 123,
"prop": {},
"text": "<string>",
"tts_info_index": 123,
"word_seq": [
{
"break": "<string>",
"end": 123,
"hide": true,
"key": "<string>",
"start": 123,
"text": "<string>"
}
]
},
"template_meta": {
"is_goods_media": true,
"is_logo": true,
"no_need_replace": true
},
"timeline": {
"cross": {
"in": [
"<string>"
],
"in_time": 123,
"out": [
"<string>"
],
"out_time": 123
},
"end": 123,
"key_frames": [
{
"func": "<string>",
"properties": {
"alpha": 123,
"h": 123,
"r": 123,
"scale": 123,
"w": 123,
"x": 123,
"y": 123
},
"timestamp": 123
}
],
"start": 123
},
"top_level_key": "<string>",
"tts_audio_url": "<string>",
"type": "<string>",
"volume": 123,
"w": 123,
"x": 123,
"y": 123
}
],
"type": "<string>"
}
],
"transition": {
"type": "<string>"
},
"tts_args": {
"locale": "<string>",
"style": "<string>"
},
"tts_axis": [
{
"duration": 123,
"endTime": 123,
"startTime": 123,
"text": "<string>",
"wordLen": 123
}
],
"tts_payment_id": "<string>",
"tts_voice_id": "<string>"
}
],
"subtitle_version": 123,
"t_id": 123,
"total_duration": 123,
"tracks": [
{
"index": 123,
"key": "<string>",
"layers": [
{
"alpha": 123,
"api_template_meta": {
"replace_key": "<string>"
},
"color": "<string>",
"crop": {
"h": 123,
"w": 123,
"x": 123,
"y": 123
},
"fit_mode": "<string>",
"flip": "<string>",
"gauss": 123,
"h": 123,
"key": "<string>",
"mode": "<string>",
"moving_camera": {
"type": "<string>"
},
"path": "<string>",
"person_cover": "<string>",
"person_preview_url": "<string>",
"preview_path": "<string>",
"prop": {
"animationInfo": {
"cycle": {
"duration": 123,
"effectType": "<string>"
},
"enter": {
"duration": 123,
"effectType": "<string>"
},
"leave": {
"duration": 123,
"effectType": "<string>"
}
},
"audioPath": "<string>",
"bg_transparent": true,
"clip": {
"end": 123,
"start": 123
},
"emotion": {
"cover": "<string>",
"id": 123,
"name": "<string>",
"preview_transparent_video": "<string>",
"preview_video": "<string>"
},
"meta": {
"cover": "<string>",
"id": 123,
"name": "<string>",
"origin_height": 123,
"origin_width": 123,
"person_source": 123,
"playback_type": "<string>",
"preview_transparent_video": "<string>",
"preview_video": "<string>",
"show_type_preset": {
"all": {
"shape": {
"color": "<string>",
"h": 123,
"r": 123,
"type": "<string>",
"w": 123,
"x": 123,
"y": 123
},
"size": {
"h": 123,
"w": 123
}
},
"circle": {
"shape": {
"color": "<string>",
"h": 123,
"r": 123,
"type": "<string>",
"w": 123,
"x": 123,
"y": 123
},
"size": {
"h": 123,
"w": 123
}
}
},
"sub_type": "<string>",
"tts_url": "<string>",
"type": "<string>"
},
"play_mode": "<string>",
"renderScale": 123,
"shapeInfo": {
"color": "<string>",
"html": "<string>",
"strokeColor": "<string>",
"strokeType": "<string>",
"strokeWidth": 123,
"type": "<string>"
},
"show_type": "<string>",
"templateInfo": {},
"textConfig": {
"align": "<string>",
"background": {},
"color": "<string>",
"fontFamily": {},
"fontSize": 123,
"fontStyle": {},
"padding": {},
"shadow": {},
"stroke": {},
"textDecoration": "<string>",
"verticalAlign": "<string>"
},
"textInfo": {
"backgroundColor": "<string>",
"color": "<string>",
"content": "<string>",
"fontFamily": "<string>",
"fontFamilyID": "<string>",
"fontFileName": "<string>",
"fontSize": 123,
"fontStyle": "<string>",
"fontWeight": "<string>",
"paddingBottom": 123,
"paddingLeft": 123,
"paddingRight": 123,
"paddingTop": 123,
"radius": 123,
"strokeColor": "<string>",
"strokeWidth": 123,
"textAlign": "<string>",
"textDecoration": "<string>",
"textOrientation": "<string>",
"textShadowBlur": 123,
"textShadowColor": "<string>",
"textShadowH": 123,
"textShadowV": 123,
"writingMode": "<string>"
},
"waveformConfig": {},
"word_seq": [
{
"break": "<string>",
"end": 123,
"hide": true,
"key": "<string>",
"start": 123,
"text": "<string>"
}
]
},
"r": 123,
"radius": "<string>",
"shape": {
"background_gauss": 123,
"color": "<string>",
"content_position": {
"h": 123,
"r": 123,
"w": 123,
"x": 123,
"y": 123
},
"disable_shape": true,
"object_fit": "<string>",
"radius": 123,
"type": "<string>"
},
"subtitle": {
"font_family": {
"name": "<string>",
"url": "<string>"
},
"html": "<string>",
"line_size": 123,
"mss": 123,
"prop": {},
"text": "<string>",
"tts_info_index": 123,
"word_seq": [
{
"break": "<string>",
"end": 123,
"hide": true,
"key": "<string>",
"start": 123,
"text": "<string>"
}
]
},
"template_meta": {
"is_goods_media": true,
"is_logo": true,
"no_need_replace": true
},
"timeline": {
"cross": {
"in": [
"<string>"
],
"in_time": 123,
"out": [
"<string>"
],
"out_time": 123
},
"end": 123,
"key_frames": [
{
"func": "<string>",
"properties": {
"alpha": 123,
"h": 123,
"r": 123,
"scale": 123,
"w": 123,
"x": 123,
"y": 123
},
"timestamp": 123
}
],
"start": 123
},
"top_level_key": "<string>",
"tts_audio_url": "<string>",
"type": "<string>",
"volume": 123,
"w": 123,
"x": 123,
"y": 123
}
],
"type": "<string>"
}
],
"tts_args": {
"locale": "<string>",
"style": "<string>"
},
"tts_voice_id": "<string>",
"used_bg_transparent": true,
"version": "<string>",
"w": 123
}
}
],
"afterTTS": true,
"createFrom": 123,
"is_draft_render": true
}
'import requests
url = "https://api-services.podcastor.ai/open/podcast/v1/render"
payload = {
"tasks": [
{
"project_id": "<string>",
"index": 123,
"workspace": "<string>",
"workspace_obj": {
"aspect_ratio": 123,
"condition": "<string>",
"ext": "<string>",
"flags": {
"emotions": True,
"podcast": True,
"ppt2video": True,
"uhd": True
},
"h": 123,
"has_edit_media": True,
"keying_enable": 123,
"music_id": 123,
"name": "<string>",
"person_id": 123,
"person_source": 123,
"preview_cover_time": 123,
"preview_cover_url": "<string>",
"render_subtitle": True,
"scenes": [
{
"audio_script": {
"duration": 123,
"id": 123,
"name": "<string>",
"type": 123,
"url": "<string>"
},
"bg_color": "<string>",
"duration": 123,
"emotion_description": "<string>",
"key": "<string>",
"new_duration": 123,
"placeholder_script": { "duration": 123 },
"script": "<string>",
"script_config": {
"emotion": "<string>",
"model_id": "<string>",
"pitch": 123,
"similarity": 123,
"speaker_boost": True,
"stability": 123,
"style_exaggeration": 123,
"tts_speed": 123,
"volume": 123
},
"script_type": "<string>",
"speak_person": {
"id": 123,
"person_source": 123
},
"speaker_order": 123,
"subtitle_info": [
{
"end_time": 123,
"start_time": 123,
"text": "<string>"
}
],
"tracks": [
{
"index": 123,
"key": "<string>",
"layers": [
{
"alpha": 123,
"api_template_meta": { "replace_key": "<string>" },
"color": "<string>",
"crop": {
"h": 123,
"w": 123,
"x": 123,
"y": 123
},
"fit_mode": "<string>",
"flip": "<string>",
"gauss": 123,
"h": 123,
"key": "<string>",
"mode": "<string>",
"moving_camera": { "type": "<string>" },
"path": "<string>",
"person_cover": "<string>",
"person_preview_url": "<string>",
"preview_path": "<string>",
"prop": {
"animationInfo": {
"cycle": {
"duration": 123,
"effectType": "<string>"
},
"enter": {
"duration": 123,
"effectType": "<string>"
},
"leave": {
"duration": 123,
"effectType": "<string>"
}
},
"audioPath": "<string>",
"bg_transparent": True,
"clip": {
"end": 123,
"start": 123
},
"emotion": {
"cover": "<string>",
"id": 123,
"name": "<string>",
"preview_transparent_video": "<string>",
"preview_video": "<string>"
},
"meta": {
"cover": "<string>",
"id": 123,
"name": "<string>",
"origin_height": 123,
"origin_width": 123,
"person_source": 123,
"playback_type": "<string>",
"preview_transparent_video": "<string>",
"preview_video": "<string>",
"show_type_preset": {
"all": {
"shape": {
"color": "<string>",
"h": 123,
"r": 123,
"type": "<string>",
"w": 123,
"x": 123,
"y": 123
},
"size": {
"h": 123,
"w": 123
}
},
"circle": {
"shape": {
"color": "<string>",
"h": 123,
"r": 123,
"type": "<string>",
"w": 123,
"x": 123,
"y": 123
},
"size": {
"h": 123,
"w": 123
}
}
},
"sub_type": "<string>",
"tts_url": "<string>",
"type": "<string>"
},
"play_mode": "<string>",
"renderScale": 123,
"shapeInfo": {
"color": "<string>",
"html": "<string>",
"strokeColor": "<string>",
"strokeType": "<string>",
"strokeWidth": 123,
"type": "<string>"
},
"show_type": "<string>",
"templateInfo": {},
"textConfig": {
"align": "<string>",
"background": {},
"color": "<string>",
"fontFamily": {},
"fontSize": 123,
"fontStyle": {},
"padding": {},
"shadow": {},
"stroke": {},
"textDecoration": "<string>",
"verticalAlign": "<string>"
},
"textInfo": {
"backgroundColor": "<string>",
"color": "<string>",
"content": "<string>",
"fontFamily": "<string>",
"fontFamilyID": "<string>",
"fontFileName": "<string>",
"fontSize": 123,
"fontStyle": "<string>",
"fontWeight": "<string>",
"paddingBottom": 123,
"paddingLeft": 123,
"paddingRight": 123,
"paddingTop": 123,
"radius": 123,
"strokeColor": "<string>",
"strokeWidth": 123,
"textAlign": "<string>",
"textDecoration": "<string>",
"textOrientation": "<string>",
"textShadowBlur": 123,
"textShadowColor": "<string>",
"textShadowH": 123,
"textShadowV": 123,
"writingMode": "<string>"
},
"waveformConfig": {},
"word_seq": [
{
"break": "<string>",
"end": 123,
"hide": True,
"key": "<string>",
"start": 123,
"text": "<string>"
}
]
},
"r": 123,
"radius": "<string>",
"shape": {
"background_gauss": 123,
"color": "<string>",
"content_position": {
"h": 123,
"r": 123,
"w": 123,
"x": 123,
"y": 123
},
"disable_shape": True,
"object_fit": "<string>",
"radius": 123,
"type": "<string>"
},
"subtitle": {
"font_family": {
"name": "<string>",
"url": "<string>"
},
"html": "<string>",
"line_size": 123,
"mss": 123,
"prop": {},
"text": "<string>",
"tts_info_index": 123,
"word_seq": [
{
"break": "<string>",
"end": 123,
"hide": True,
"key": "<string>",
"start": 123,
"text": "<string>"
}
]
},
"template_meta": {
"is_goods_media": True,
"is_logo": True,
"no_need_replace": True
},
"timeline": {
"cross": {
"in": ["<string>"],
"in_time": 123,
"out": ["<string>"],
"out_time": 123
},
"end": 123,
"key_frames": [
{
"func": "<string>",
"properties": {
"alpha": 123,
"h": 123,
"r": 123,
"scale": 123,
"w": 123,
"x": 123,
"y": 123
},
"timestamp": 123
}
],
"start": 123
},
"top_level_key": "<string>",
"tts_audio_url": "<string>",
"type": "<string>",
"volume": 123,
"w": 123,
"x": 123,
"y": 123
}
],
"type": "<string>"
}
],
"transition": { "type": "<string>" },
"tts_args": {
"locale": "<string>",
"style": "<string>"
},
"tts_axis": [
{
"duration": 123,
"endTime": 123,
"startTime": 123,
"text": "<string>",
"wordLen": 123
}
],
"tts_payment_id": "<string>",
"tts_voice_id": "<string>"
}
],
"subtitle_version": 123,
"t_id": 123,
"total_duration": 123,
"tracks": [
{
"index": 123,
"key": "<string>",
"layers": [
{
"alpha": 123,
"api_template_meta": { "replace_key": "<string>" },
"color": "<string>",
"crop": {
"h": 123,
"w": 123,
"x": 123,
"y": 123
},
"fit_mode": "<string>",
"flip": "<string>",
"gauss": 123,
"h": 123,
"key": "<string>",
"mode": "<string>",
"moving_camera": { "type": "<string>" },
"path": "<string>",
"person_cover": "<string>",
"person_preview_url": "<string>",
"preview_path": "<string>",
"prop": {
"animationInfo": {
"cycle": {
"duration": 123,
"effectType": "<string>"
},
"enter": {
"duration": 123,
"effectType": "<string>"
},
"leave": {
"duration": 123,
"effectType": "<string>"
}
},
"audioPath": "<string>",
"bg_transparent": True,
"clip": {
"end": 123,
"start": 123
},
"emotion": {
"cover": "<string>",
"id": 123,
"name": "<string>",
"preview_transparent_video": "<string>",
"preview_video": "<string>"
},
"meta": {
"cover": "<string>",
"id": 123,
"name": "<string>",
"origin_height": 123,
"origin_width": 123,
"person_source": 123,
"playback_type": "<string>",
"preview_transparent_video": "<string>",
"preview_video": "<string>",
"show_type_preset": {
"all": {
"shape": {
"color": "<string>",
"h": 123,
"r": 123,
"type": "<string>",
"w": 123,
"x": 123,
"y": 123
},
"size": {
"h": 123,
"w": 123
}
},
"circle": {
"shape": {
"color": "<string>",
"h": 123,
"r": 123,
"type": "<string>",
"w": 123,
"x": 123,
"y": 123
},
"size": {
"h": 123,
"w": 123
}
}
},
"sub_type": "<string>",
"tts_url": "<string>",
"type": "<string>"
},
"play_mode": "<string>",
"renderScale": 123,
"shapeInfo": {
"color": "<string>",
"html": "<string>",
"strokeColor": "<string>",
"strokeType": "<string>",
"strokeWidth": 123,
"type": "<string>"
},
"show_type": "<string>",
"templateInfo": {},
"textConfig": {
"align": "<string>",
"background": {},
"color": "<string>",
"fontFamily": {},
"fontSize": 123,
"fontStyle": {},
"padding": {},
"shadow": {},
"stroke": {},
"textDecoration": "<string>",
"verticalAlign": "<string>"
},
"textInfo": {
"backgroundColor": "<string>",
"color": "<string>",
"content": "<string>",
"fontFamily": "<string>",
"fontFamilyID": "<string>",
"fontFileName": "<string>",
"fontSize": 123,
"fontStyle": "<string>",
"fontWeight": "<string>",
"paddingBottom": 123,
"paddingLeft": 123,
"paddingRight": 123,
"paddingTop": 123,
"radius": 123,
"strokeColor": "<string>",
"strokeWidth": 123,
"textAlign": "<string>",
"textDecoration": "<string>",
"textOrientation": "<string>",
"textShadowBlur": 123,
"textShadowColor": "<string>",
"textShadowH": 123,
"textShadowV": 123,
"writingMode": "<string>"
},
"waveformConfig": {},
"word_seq": [
{
"break": "<string>",
"end": 123,
"hide": True,
"key": "<string>",
"start": 123,
"text": "<string>"
}
]
},
"r": 123,
"radius": "<string>",
"shape": {
"background_gauss": 123,
"color": "<string>",
"content_position": {
"h": 123,
"r": 123,
"w": 123,
"x": 123,
"y": 123
},
"disable_shape": True,
"object_fit": "<string>",
"radius": 123,
"type": "<string>"
},
"subtitle": {
"font_family": {
"name": "<string>",
"url": "<string>"
},
"html": "<string>",
"line_size": 123,
"mss": 123,
"prop": {},
"text": "<string>",
"tts_info_index": 123,
"word_seq": [
{
"break": "<string>",
"end": 123,
"hide": True,
"key": "<string>",
"start": 123,
"text": "<string>"
}
]
},
"template_meta": {
"is_goods_media": True,
"is_logo": True,
"no_need_replace": True
},
"timeline": {
"cross": {
"in": ["<string>"],
"in_time": 123,
"out": ["<string>"],
"out_time": 123
},
"end": 123,
"key_frames": [
{
"func": "<string>",
"properties": {
"alpha": 123,
"h": 123,
"r": 123,
"scale": 123,
"w": 123,
"x": 123,
"y": 123
},
"timestamp": 123
}
],
"start": 123
},
"top_level_key": "<string>",
"tts_audio_url": "<string>",
"type": "<string>",
"volume": 123,
"w": 123,
"x": 123,
"y": 123
}
],
"type": "<string>"
}
],
"tts_args": {
"locale": "<string>",
"style": "<string>"
},
"tts_voice_id": "<string>",
"used_bg_transparent": True,
"version": "<string>",
"w": 123
}
}
],
"afterTTS": True,
"createFrom": 123,
"is_draft_render": True
}
headers = {
"X-Api-Key": "<api-key>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {'X-Api-Key': '<api-key>', 'Content-Type': 'application/json'},
body: JSON.stringify({
tasks: [
{
project_id: '<string>',
index: 123,
workspace: '<string>',
workspace_obj: {
aspect_ratio: 123,
condition: '<string>',
ext: '<string>',
flags: {emotions: true, podcast: true, ppt2video: true, uhd: true},
h: 123,
has_edit_media: true,
keying_enable: 123,
music_id: 123,
name: '<string>',
person_id: 123,
person_source: 123,
preview_cover_time: 123,
preview_cover_url: '<string>',
render_subtitle: true,
scenes: [
{
audio_script: {duration: 123, id: 123, name: '<string>', type: 123, url: '<string>'},
bg_color: '<string>',
duration: 123,
emotion_description: '<string>',
key: '<string>',
new_duration: 123,
placeholder_script: {duration: 123},
script: '<string>',
script_config: {
emotion: '<string>',
model_id: '<string>',
pitch: 123,
similarity: 123,
speaker_boost: true,
stability: 123,
style_exaggeration: 123,
tts_speed: 123,
volume: 123
},
script_type: '<string>',
speak_person: {id: 123, person_source: 123},
speaker_order: 123,
subtitle_info: [{end_time: 123, start_time: 123, text: '<string>'}],
tracks: [
{
index: 123,
key: '<string>',
layers: [
{
alpha: 123,
api_template_meta: {replace_key: '<string>'},
color: '<string>',
crop: {h: 123, w: 123, x: 123, y: 123},
fit_mode: '<string>',
flip: '<string>',
gauss: 123,
h: 123,
key: '<string>',
mode: '<string>',
moving_camera: {type: '<string>'},
path: '<string>',
person_cover: '<string>',
person_preview_url: '<string>',
preview_path: '<string>',
prop: {
animationInfo: {
cycle: {duration: 123, effectType: '<string>'},
enter: {duration: 123, effectType: '<string>'},
leave: {duration: 123, effectType: '<string>'}
},
audioPath: '<string>',
bg_transparent: true,
clip: {end: 123, start: 123},
emotion: {
cover: '<string>',
id: 123,
name: '<string>',
preview_transparent_video: '<string>',
preview_video: '<string>'
},
meta: {
cover: '<string>',
id: 123,
name: '<string>',
origin_height: 123,
origin_width: 123,
person_source: 123,
playback_type: '<string>',
preview_transparent_video: '<string>',
preview_video: '<string>',
show_type_preset: {
all: {
shape: {color: '<string>', h: 123, r: 123, type: '<string>', w: 123, x: 123, y: 123},
size: {h: 123, w: 123}
},
circle: {
shape: {color: '<string>', h: 123, r: 123, type: '<string>', w: 123, x: 123, y: 123},
size: {h: 123, w: 123}
}
},
sub_type: '<string>',
tts_url: '<string>',
type: '<string>'
},
play_mode: '<string>',
renderScale: 123,
shapeInfo: {
color: '<string>',
html: '<string>',
strokeColor: '<string>',
strokeType: '<string>',
strokeWidth: 123,
type: '<string>'
},
show_type: '<string>',
templateInfo: {},
textConfig: {
align: '<string>',
background: {},
color: '<string>',
fontFamily: {},
fontSize: 123,
fontStyle: {},
padding: {},
shadow: {},
stroke: {},
textDecoration: '<string>',
verticalAlign: '<string>'
},
textInfo: {
backgroundColor: '<string>',
color: '<string>',
content: '<string>',
fontFamily: '<string>',
fontFamilyID: '<string>',
fontFileName: '<string>',
fontSize: 123,
fontStyle: '<string>',
fontWeight: '<string>',
paddingBottom: 123,
paddingLeft: 123,
paddingRight: 123,
paddingTop: 123,
radius: 123,
strokeColor: '<string>',
strokeWidth: 123,
textAlign: '<string>',
textDecoration: '<string>',
textOrientation: '<string>',
textShadowBlur: 123,
textShadowColor: '<string>',
textShadowH: 123,
textShadowV: 123,
writingMode: '<string>'
},
waveformConfig: {},
word_seq: [
{
break: '<string>',
end: 123,
hide: true,
key: '<string>',
start: 123,
text: '<string>'
}
]
},
r: 123,
radius: '<string>',
shape: {
background_gauss: 123,
color: '<string>',
content_position: {h: 123, r: 123, w: 123, x: 123, y: 123},
disable_shape: true,
object_fit: '<string>',
radius: 123,
type: '<string>'
},
subtitle: {
font_family: {name: '<string>', url: '<string>'},
html: '<string>',
line_size: 123,
mss: 123,
prop: {},
text: '<string>',
tts_info_index: 123,
word_seq: [
{
break: '<string>',
end: 123,
hide: true,
key: '<string>',
start: 123,
text: '<string>'
}
]
},
template_meta: {is_goods_media: true, is_logo: true, no_need_replace: true},
timeline: {
cross: {in: ['<string>'], in_time: 123, out: ['<string>'], out_time: 123},
end: 123,
key_frames: [
{
func: '<string>',
properties: {alpha: 123, h: 123, r: 123, scale: 123, w: 123, x: 123, y: 123},
timestamp: 123
}
],
start: 123
},
top_level_key: '<string>',
tts_audio_url: '<string>',
type: '<string>',
volume: 123,
w: 123,
x: 123,
y: 123
}
],
type: '<string>'
}
],
transition: {type: '<string>'},
tts_args: {locale: '<string>', style: '<string>'},
tts_axis: [{duration: 123, endTime: 123, startTime: 123, text: '<string>', wordLen: 123}],
tts_payment_id: '<string>',
tts_voice_id: '<string>'
}
],
subtitle_version: 123,
t_id: 123,
total_duration: 123,
tracks: [
{
index: 123,
key: '<string>',
layers: [
{
alpha: 123,
api_template_meta: {replace_key: '<string>'},
color: '<string>',
crop: {h: 123, w: 123, x: 123, y: 123},
fit_mode: '<string>',
flip: '<string>',
gauss: 123,
h: 123,
key: '<string>',
mode: '<string>',
moving_camera: {type: '<string>'},
path: '<string>',
person_cover: '<string>',
person_preview_url: '<string>',
preview_path: '<string>',
prop: {
animationInfo: {
cycle: {duration: 123, effectType: '<string>'},
enter: {duration: 123, effectType: '<string>'},
leave: {duration: 123, effectType: '<string>'}
},
audioPath: '<string>',
bg_transparent: true,
clip: {end: 123, start: 123},
emotion: {
cover: '<string>',
id: 123,
name: '<string>',
preview_transparent_video: '<string>',
preview_video: '<string>'
},
meta: {
cover: '<string>',
id: 123,
name: '<string>',
origin_height: 123,
origin_width: 123,
person_source: 123,
playback_type: '<string>',
preview_transparent_video: '<string>',
preview_video: '<string>',
show_type_preset: {
all: {
shape: {color: '<string>', h: 123, r: 123, type: '<string>', w: 123, x: 123, y: 123},
size: {h: 123, w: 123}
},
circle: {
shape: {color: '<string>', h: 123, r: 123, type: '<string>', w: 123, x: 123, y: 123},
size: {h: 123, w: 123}
}
},
sub_type: '<string>',
tts_url: '<string>',
type: '<string>'
},
play_mode: '<string>',
renderScale: 123,
shapeInfo: {
color: '<string>',
html: '<string>',
strokeColor: '<string>',
strokeType: '<string>',
strokeWidth: 123,
type: '<string>'
},
show_type: '<string>',
templateInfo: {},
textConfig: {
align: '<string>',
background: {},
color: '<string>',
fontFamily: {},
fontSize: 123,
fontStyle: {},
padding: {},
shadow: {},
stroke: {},
textDecoration: '<string>',
verticalAlign: '<string>'
},
textInfo: {
backgroundColor: '<string>',
color: '<string>',
content: '<string>',
fontFamily: '<string>',
fontFamilyID: '<string>',
fontFileName: '<string>',
fontSize: 123,
fontStyle: '<string>',
fontWeight: '<string>',
paddingBottom: 123,
paddingLeft: 123,
paddingRight: 123,
paddingTop: 123,
radius: 123,
strokeColor: '<string>',
strokeWidth: 123,
textAlign: '<string>',
textDecoration: '<string>',
textOrientation: '<string>',
textShadowBlur: 123,
textShadowColor: '<string>',
textShadowH: 123,
textShadowV: 123,
writingMode: '<string>'
},
waveformConfig: {},
word_seq: [
{
break: '<string>',
end: 123,
hide: true,
key: '<string>',
start: 123,
text: '<string>'
}
]
},
r: 123,
radius: '<string>',
shape: {
background_gauss: 123,
color: '<string>',
content_position: {h: 123, r: 123, w: 123, x: 123, y: 123},
disable_shape: true,
object_fit: '<string>',
radius: 123,
type: '<string>'
},
subtitle: {
font_family: {name: '<string>', url: '<string>'},
html: '<string>',
line_size: 123,
mss: 123,
prop: {},
text: '<string>',
tts_info_index: 123,
word_seq: [
{
break: '<string>',
end: 123,
hide: true,
key: '<string>',
start: 123,
text: '<string>'
}
]
},
template_meta: {is_goods_media: true, is_logo: true, no_need_replace: true},
timeline: {
cross: {in: ['<string>'], in_time: 123, out: ['<string>'], out_time: 123},
end: 123,
key_frames: [
{
func: '<string>',
properties: {alpha: 123, h: 123, r: 123, scale: 123, w: 123, x: 123, y: 123},
timestamp: 123
}
],
start: 123
},
top_level_key: '<string>',
tts_audio_url: '<string>',
type: '<string>',
volume: 123,
w: 123,
x: 123,
y: 123
}
],
type: '<string>'
}
],
tts_args: {locale: '<string>', style: '<string>'},
tts_voice_id: '<string>',
used_bg_transparent: true,
version: '<string>',
w: 123
}
}
],
afterTTS: true,
createFrom: 123,
is_draft_render: true
})
};
fetch('https://api-services.podcastor.ai/open/podcast/v1/render', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api-services.podcastor.ai/open/podcast/v1/render",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => json_encode([
'tasks' => [
[
'project_id' => '<string>',
'index' => 123,
'workspace' => '<string>',
'workspace_obj' => [
'aspect_ratio' => 123,
'condition' => '<string>',
'ext' => '<string>',
'flags' => [
'emotions' => true,
'podcast' => true,
'ppt2video' => true,
'uhd' => true
],
'h' => 123,
'has_edit_media' => true,
'keying_enable' => 123,
'music_id' => 123,
'name' => '<string>',
'person_id' => 123,
'person_source' => 123,
'preview_cover_time' => 123,
'preview_cover_url' => '<string>',
'render_subtitle' => true,
'scenes' => [
[
'audio_script' => [
'duration' => 123,
'id' => 123,
'name' => '<string>',
'type' => 123,
'url' => '<string>'
],
'bg_color' => '<string>',
'duration' => 123,
'emotion_description' => '<string>',
'key' => '<string>',
'new_duration' => 123,
'placeholder_script' => [
'duration' => 123
],
'script' => '<string>',
'script_config' => [
'emotion' => '<string>',
'model_id' => '<string>',
'pitch' => 123,
'similarity' => 123,
'speaker_boost' => true,
'stability' => 123,
'style_exaggeration' => 123,
'tts_speed' => 123,
'volume' => 123
],
'script_type' => '<string>',
'speak_person' => [
'id' => 123,
'person_source' => 123
],
'speaker_order' => 123,
'subtitle_info' => [
[
'end_time' => 123,
'start_time' => 123,
'text' => '<string>'
]
],
'tracks' => [
[
'index' => 123,
'key' => '<string>',
'layers' => [
[
'alpha' => 123,
'api_template_meta' => [
'replace_key' => '<string>'
],
'color' => '<string>',
'crop' => [
'h' => 123,
'w' => 123,
'x' => 123,
'y' => 123
],
'fit_mode' => '<string>',
'flip' => '<string>',
'gauss' => 123,
'h' => 123,
'key' => '<string>',
'mode' => '<string>',
'moving_camera' => [
'type' => '<string>'
],
'path' => '<string>',
'person_cover' => '<string>',
'person_preview_url' => '<string>',
'preview_path' => '<string>',
'prop' => [
'animationInfo' => [
'cycle' => [
'duration' => 123,
'effectType' => '<string>'
],
'enter' => [
'duration' => 123,
'effectType' => '<string>'
],
'leave' => [
'duration' => 123,
'effectType' => '<string>'
]
],
'audioPath' => '<string>',
'bg_transparent' => true,
'clip' => [
'end' => 123,
'start' => 123
],
'emotion' => [
'cover' => '<string>',
'id' => 123,
'name' => '<string>',
'preview_transparent_video' => '<string>',
'preview_video' => '<string>'
],
'meta' => [
'cover' => '<string>',
'id' => 123,
'name' => '<string>',
'origin_height' => 123,
'origin_width' => 123,
'person_source' => 123,
'playback_type' => '<string>',
'preview_transparent_video' => '<string>',
'preview_video' => '<string>',
'show_type_preset' => [
'all' => [
'shape' => [
'color' => '<string>',
'h' => 123,
'r' => 123,
'type' => '<string>',
'w' => 123,
'x' => 123,
'y' => 123
],
'size' => [
'h' => 123,
'w' => 123
]
],
'circle' => [
'shape' => [
'color' => '<string>',
'h' => 123,
'r' => 123,
'type' => '<string>',
'w' => 123,
'x' => 123,
'y' => 123
],
'size' => [
'h' => 123,
'w' => 123
]
]
],
'sub_type' => '<string>',
'tts_url' => '<string>',
'type' => '<string>'
],
'play_mode' => '<string>',
'renderScale' => 123,
'shapeInfo' => [
'color' => '<string>',
'html' => '<string>',
'strokeColor' => '<string>',
'strokeType' => '<string>',
'strokeWidth' => 123,
'type' => '<string>'
],
'show_type' => '<string>',
'templateInfo' => [
],
'textConfig' => [
'align' => '<string>',
'background' => [
],
'color' => '<string>',
'fontFamily' => [
],
'fontSize' => 123,
'fontStyle' => [
],
'padding' => [
],
'shadow' => [
],
'stroke' => [
],
'textDecoration' => '<string>',
'verticalAlign' => '<string>'
],
'textInfo' => [
'backgroundColor' => '<string>',
'color' => '<string>',
'content' => '<string>',
'fontFamily' => '<string>',
'fontFamilyID' => '<string>',
'fontFileName' => '<string>',
'fontSize' => 123,
'fontStyle' => '<string>',
'fontWeight' => '<string>',
'paddingBottom' => 123,
'paddingLeft' => 123,
'paddingRight' => 123,
'paddingTop' => 123,
'radius' => 123,
'strokeColor' => '<string>',
'strokeWidth' => 123,
'textAlign' => '<string>',
'textDecoration' => '<string>',
'textOrientation' => '<string>',
'textShadowBlur' => 123,
'textShadowColor' => '<string>',
'textShadowH' => 123,
'textShadowV' => 123,
'writingMode' => '<string>'
],
'waveformConfig' => [
],
'word_seq' => [
[
'break' => '<string>',
'end' => 123,
'hide' => true,
'key' => '<string>',
'start' => 123,
'text' => '<string>'
]
]
],
'r' => 123,
'radius' => '<string>',
'shape' => [
'background_gauss' => 123,
'color' => '<string>',
'content_position' => [
'h' => 123,
'r' => 123,
'w' => 123,
'x' => 123,
'y' => 123
],
'disable_shape' => true,
'object_fit' => '<string>',
'radius' => 123,
'type' => '<string>'
],
'subtitle' => [
'font_family' => [
'name' => '<string>',
'url' => '<string>'
],
'html' => '<string>',
'line_size' => 123,
'mss' => 123,
'prop' => [
],
'text' => '<string>',
'tts_info_index' => 123,
'word_seq' => [
[
'break' => '<string>',
'end' => 123,
'hide' => true,
'key' => '<string>',
'start' => 123,
'text' => '<string>'
]
]
],
'template_meta' => [
'is_goods_media' => true,
'is_logo' => true,
'no_need_replace' => true
],
'timeline' => [
'cross' => [
'in' => [
'<string>'
],
'in_time' => 123,
'out' => [
'<string>'
],
'out_time' => 123
],
'end' => 123,
'key_frames' => [
[
'func' => '<string>',
'properties' => [
'alpha' => 123,
'h' => 123,
'r' => 123,
'scale' => 123,
'w' => 123,
'x' => 123,
'y' => 123
],
'timestamp' => 123
]
],
'start' => 123
],
'top_level_key' => '<string>',
'tts_audio_url' => '<string>',
'type' => '<string>',
'volume' => 123,
'w' => 123,
'x' => 123,
'y' => 123
]
],
'type' => '<string>'
]
],
'transition' => [
'type' => '<string>'
],
'tts_args' => [
'locale' => '<string>',
'style' => '<string>'
],
'tts_axis' => [
[
'duration' => 123,
'endTime' => 123,
'startTime' => 123,
'text' => '<string>',
'wordLen' => 123
]
],
'tts_payment_id' => '<string>',
'tts_voice_id' => '<string>'
]
],
'subtitle_version' => 123,
't_id' => 123,
'total_duration' => 123,
'tracks' => [
[
'index' => 123,
'key' => '<string>',
'layers' => [
[
'alpha' => 123,
'api_template_meta' => [
'replace_key' => '<string>'
],
'color' => '<string>',
'crop' => [
'h' => 123,
'w' => 123,
'x' => 123,
'y' => 123
],
'fit_mode' => '<string>',
'flip' => '<string>',
'gauss' => 123,
'h' => 123,
'key' => '<string>',
'mode' => '<string>',
'moving_camera' => [
'type' => '<string>'
],
'path' => '<string>',
'person_cover' => '<string>',
'person_preview_url' => '<string>',
'preview_path' => '<string>',
'prop' => [
'animationInfo' => [
'cycle' => [
'duration' => 123,
'effectType' => '<string>'
],
'enter' => [
'duration' => 123,
'effectType' => '<string>'
],
'leave' => [
'duration' => 123,
'effectType' => '<string>'
]
],
'audioPath' => '<string>',
'bg_transparent' => true,
'clip' => [
'end' => 123,
'start' => 123
],
'emotion' => [
'cover' => '<string>',
'id' => 123,
'name' => '<string>',
'preview_transparent_video' => '<string>',
'preview_video' => '<string>'
],
'meta' => [
'cover' => '<string>',
'id' => 123,
'name' => '<string>',
'origin_height' => 123,
'origin_width' => 123,
'person_source' => 123,
'playback_type' => '<string>',
'preview_transparent_video' => '<string>',
'preview_video' => '<string>',
'show_type_preset' => [
'all' => [
'shape' => [
'color' => '<string>',
'h' => 123,
'r' => 123,
'type' => '<string>',
'w' => 123,
'x' => 123,
'y' => 123
],
'size' => [
'h' => 123,
'w' => 123
]
],
'circle' => [
'shape' => [
'color' => '<string>',
'h' => 123,
'r' => 123,
'type' => '<string>',
'w' => 123,
'x' => 123,
'y' => 123
],
'size' => [
'h' => 123,
'w' => 123
]
]
],
'sub_type' => '<string>',
'tts_url' => '<string>',
'type' => '<string>'
],
'play_mode' => '<string>',
'renderScale' => 123,
'shapeInfo' => [
'color' => '<string>',
'html' => '<string>',
'strokeColor' => '<string>',
'strokeType' => '<string>',
'strokeWidth' => 123,
'type' => '<string>'
],
'show_type' => '<string>',
'templateInfo' => [
],
'textConfig' => [
'align' => '<string>',
'background' => [
],
'color' => '<string>',
'fontFamily' => [
],
'fontSize' => 123,
'fontStyle' => [
],
'padding' => [
],
'shadow' => [
],
'stroke' => [
],
'textDecoration' => '<string>',
'verticalAlign' => '<string>'
],
'textInfo' => [
'backgroundColor' => '<string>',
'color' => '<string>',
'content' => '<string>',
'fontFamily' => '<string>',
'fontFamilyID' => '<string>',
'fontFileName' => '<string>',
'fontSize' => 123,
'fontStyle' => '<string>',
'fontWeight' => '<string>',
'paddingBottom' => 123,
'paddingLeft' => 123,
'paddingRight' => 123,
'paddingTop' => 123,
'radius' => 123,
'strokeColor' => '<string>',
'strokeWidth' => 123,
'textAlign' => '<string>',
'textDecoration' => '<string>',
'textOrientation' => '<string>',
'textShadowBlur' => 123,
'textShadowColor' => '<string>',
'textShadowH' => 123,
'textShadowV' => 123,
'writingMode' => '<string>'
],
'waveformConfig' => [
],
'word_seq' => [
[
'break' => '<string>',
'end' => 123,
'hide' => true,
'key' => '<string>',
'start' => 123,
'text' => '<string>'
]
]
],
'r' => 123,
'radius' => '<string>',
'shape' => [
'background_gauss' => 123,
'color' => '<string>',
'content_position' => [
'h' => 123,
'r' => 123,
'w' => 123,
'x' => 123,
'y' => 123
],
'disable_shape' => true,
'object_fit' => '<string>',
'radius' => 123,
'type' => '<string>'
],
'subtitle' => [
'font_family' => [
'name' => '<string>',
'url' => '<string>'
],
'html' => '<string>',
'line_size' => 123,
'mss' => 123,
'prop' => [
],
'text' => '<string>',
'tts_info_index' => 123,
'word_seq' => [
[
'break' => '<string>',
'end' => 123,
'hide' => true,
'key' => '<string>',
'start' => 123,
'text' => '<string>'
]
]
],
'template_meta' => [
'is_goods_media' => true,
'is_logo' => true,
'no_need_replace' => true
],
'timeline' => [
'cross' => [
'in' => [
'<string>'
],
'in_time' => 123,
'out' => [
'<string>'
],
'out_time' => 123
],
'end' => 123,
'key_frames' => [
[
'func' => '<string>',
'properties' => [
'alpha' => 123,
'h' => 123,
'r' => 123,
'scale' => 123,
'w' => 123,
'x' => 123,
'y' => 123
],
'timestamp' => 123
]
],
'start' => 123
],
'top_level_key' => '<string>',
'tts_audio_url' => '<string>',
'type' => '<string>',
'volume' => 123,
'w' => 123,
'x' => 123,
'y' => 123
]
],
'type' => '<string>'
]
],
'tts_args' => [
'locale' => '<string>',
'style' => '<string>'
],
'tts_voice_id' => '<string>',
'used_bg_transparent' => true,
'version' => '<string>',
'w' => 123
]
]
],
'afterTTS' => true,
'createFrom' => 123,
'is_draft_render' => true
]),
CURLOPT_HTTPHEADER => [
"Content-Type: application/json",
"X-Api-Key: <api-key>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://api-services.podcastor.ai/open/podcast/v1/render"
payload := strings.NewReader("{\n \"tasks\": [\n {\n \"project_id\": \"<string>\",\n \"index\": 123,\n \"workspace\": \"<string>\",\n \"workspace_obj\": {\n \"aspect_ratio\": 123,\n \"condition\": \"<string>\",\n \"ext\": \"<string>\",\n \"flags\": {\n \"emotions\": true,\n \"podcast\": true,\n \"ppt2video\": true,\n \"uhd\": true\n },\n \"h\": 123,\n \"has_edit_media\": true,\n \"keying_enable\": 123,\n \"music_id\": 123,\n \"name\": \"<string>\",\n \"person_id\": 123,\n \"person_source\": 123,\n \"preview_cover_time\": 123,\n \"preview_cover_url\": \"<string>\",\n \"render_subtitle\": true,\n \"scenes\": [\n {\n \"audio_script\": {\n \"duration\": 123,\n \"id\": 123,\n \"name\": \"<string>\",\n \"type\": 123,\n \"url\": \"<string>\"\n },\n \"bg_color\": \"<string>\",\n \"duration\": 123,\n \"emotion_description\": \"<string>\",\n \"key\": \"<string>\",\n \"new_duration\": 123,\n \"placeholder_script\": {\n \"duration\": 123\n },\n \"script\": \"<string>\",\n \"script_config\": {\n \"emotion\": \"<string>\",\n \"model_id\": \"<string>\",\n \"pitch\": 123,\n \"similarity\": 123,\n \"speaker_boost\": true,\n \"stability\": 123,\n \"style_exaggeration\": 123,\n \"tts_speed\": 123,\n \"volume\": 123\n },\n \"script_type\": \"<string>\",\n \"speak_person\": {\n \"id\": 123,\n \"person_source\": 123\n },\n \"speaker_order\": 123,\n \"subtitle_info\": [\n {\n \"end_time\": 123,\n \"start_time\": 123,\n \"text\": \"<string>\"\n }\n ],\n \"tracks\": [\n {\n \"index\": 123,\n \"key\": \"<string>\",\n \"layers\": [\n {\n \"alpha\": 123,\n \"api_template_meta\": {\n \"replace_key\": \"<string>\"\n },\n \"color\": \"<string>\",\n \"crop\": {\n \"h\": 123,\n \"w\": 123,\n \"x\": 123,\n \"y\": 123\n },\n \"fit_mode\": \"<string>\",\n \"flip\": \"<string>\",\n \"gauss\": 123,\n \"h\": 123,\n \"key\": \"<string>\",\n \"mode\": \"<string>\",\n \"moving_camera\": {\n \"type\": \"<string>\"\n },\n \"path\": \"<string>\",\n \"person_cover\": \"<string>\",\n \"person_preview_url\": \"<string>\",\n \"preview_path\": \"<string>\",\n \"prop\": {\n \"animationInfo\": {\n \"cycle\": {\n \"duration\": 123,\n \"effectType\": \"<string>\"\n },\n \"enter\": {\n \"duration\": 123,\n \"effectType\": \"<string>\"\n },\n \"leave\": {\n \"duration\": 123,\n \"effectType\": \"<string>\"\n }\n },\n \"audioPath\": \"<string>\",\n \"bg_transparent\": true,\n \"clip\": {\n \"end\": 123,\n \"start\": 123\n },\n \"emotion\": {\n \"cover\": \"<string>\",\n \"id\": 123,\n \"name\": \"<string>\",\n \"preview_transparent_video\": \"<string>\",\n \"preview_video\": \"<string>\"\n },\n \"meta\": {\n \"cover\": \"<string>\",\n \"id\": 123,\n \"name\": \"<string>\",\n \"origin_height\": 123,\n \"origin_width\": 123,\n \"person_source\": 123,\n \"playback_type\": \"<string>\",\n \"preview_transparent_video\": \"<string>\",\n \"preview_video\": \"<string>\",\n \"show_type_preset\": {\n \"all\": {\n \"shape\": {\n \"color\": \"<string>\",\n \"h\": 123,\n \"r\": 123,\n \"type\": \"<string>\",\n \"w\": 123,\n \"x\": 123,\n \"y\": 123\n },\n \"size\": {\n \"h\": 123,\n \"w\": 123\n }\n },\n \"circle\": {\n \"shape\": {\n \"color\": \"<string>\",\n \"h\": 123,\n \"r\": 123,\n \"type\": \"<string>\",\n \"w\": 123,\n \"x\": 123,\n \"y\": 123\n },\n \"size\": {\n \"h\": 123,\n \"w\": 123\n }\n }\n },\n \"sub_type\": \"<string>\",\n \"tts_url\": \"<string>\",\n \"type\": \"<string>\"\n },\n \"play_mode\": \"<string>\",\n \"renderScale\": 123,\n \"shapeInfo\": {\n \"color\": \"<string>\",\n \"html\": \"<string>\",\n \"strokeColor\": \"<string>\",\n \"strokeType\": \"<string>\",\n \"strokeWidth\": 123,\n \"type\": \"<string>\"\n },\n \"show_type\": \"<string>\",\n \"templateInfo\": {},\n \"textConfig\": {\n \"align\": \"<string>\",\n \"background\": {},\n \"color\": \"<string>\",\n \"fontFamily\": {},\n \"fontSize\": 123,\n \"fontStyle\": {},\n \"padding\": {},\n \"shadow\": {},\n \"stroke\": {},\n \"textDecoration\": \"<string>\",\n \"verticalAlign\": \"<string>\"\n },\n \"textInfo\": {\n \"backgroundColor\": \"<string>\",\n \"color\": \"<string>\",\n \"content\": \"<string>\",\n \"fontFamily\": \"<string>\",\n \"fontFamilyID\": \"<string>\",\n \"fontFileName\": \"<string>\",\n \"fontSize\": 123,\n \"fontStyle\": \"<string>\",\n \"fontWeight\": \"<string>\",\n \"paddingBottom\": 123,\n \"paddingLeft\": 123,\n \"paddingRight\": 123,\n \"paddingTop\": 123,\n \"radius\": 123,\n \"strokeColor\": \"<string>\",\n \"strokeWidth\": 123,\n \"textAlign\": \"<string>\",\n \"textDecoration\": \"<string>\",\n \"textOrientation\": \"<string>\",\n \"textShadowBlur\": 123,\n \"textShadowColor\": \"<string>\",\n \"textShadowH\": 123,\n \"textShadowV\": 123,\n \"writingMode\": \"<string>\"\n },\n \"waveformConfig\": {},\n \"word_seq\": [\n {\n \"break\": \"<string>\",\n \"end\": 123,\n \"hide\": true,\n \"key\": \"<string>\",\n \"start\": 123,\n \"text\": \"<string>\"\n }\n ]\n },\n \"r\": 123,\n \"radius\": \"<string>\",\n \"shape\": {\n \"background_gauss\": 123,\n \"color\": \"<string>\",\n \"content_position\": {\n \"h\": 123,\n \"r\": 123,\n \"w\": 123,\n \"x\": 123,\n \"y\": 123\n },\n \"disable_shape\": true,\n \"object_fit\": \"<string>\",\n \"radius\": 123,\n \"type\": \"<string>\"\n },\n \"subtitle\": {\n \"font_family\": {\n \"name\": \"<string>\",\n \"url\": \"<string>\"\n },\n \"html\": \"<string>\",\n \"line_size\": 123,\n \"mss\": 123,\n \"prop\": {},\n \"text\": \"<string>\",\n \"tts_info_index\": 123,\n \"word_seq\": [\n {\n \"break\": \"<string>\",\n \"end\": 123,\n \"hide\": true,\n \"key\": \"<string>\",\n \"start\": 123,\n \"text\": \"<string>\"\n }\n ]\n },\n \"template_meta\": {\n \"is_goods_media\": true,\n \"is_logo\": true,\n \"no_need_replace\": true\n },\n \"timeline\": {\n \"cross\": {\n \"in\": [\n \"<string>\"\n ],\n \"in_time\": 123,\n \"out\": [\n \"<string>\"\n ],\n \"out_time\": 123\n },\n \"end\": 123,\n \"key_frames\": [\n {\n \"func\": \"<string>\",\n \"properties\": {\n \"alpha\": 123,\n \"h\": 123,\n \"r\": 123,\n \"scale\": 123,\n \"w\": 123,\n \"x\": 123,\n \"y\": 123\n },\n \"timestamp\": 123\n }\n ],\n \"start\": 123\n },\n \"top_level_key\": \"<string>\",\n \"tts_audio_url\": \"<string>\",\n \"type\": \"<string>\",\n \"volume\": 123,\n \"w\": 123,\n \"x\": 123,\n \"y\": 123\n }\n ],\n \"type\": \"<string>\"\n }\n ],\n \"transition\": {\n \"type\": \"<string>\"\n },\n \"tts_args\": {\n \"locale\": \"<string>\",\n \"style\": \"<string>\"\n },\n \"tts_axis\": [\n {\n \"duration\": 123,\n \"endTime\": 123,\n \"startTime\": 123,\n \"text\": \"<string>\",\n \"wordLen\": 123\n }\n ],\n \"tts_payment_id\": \"<string>\",\n \"tts_voice_id\": \"<string>\"\n }\n ],\n \"subtitle_version\": 123,\n \"t_id\": 123,\n \"total_duration\": 123,\n \"tracks\": [\n {\n \"index\": 123,\n \"key\": \"<string>\",\n \"layers\": [\n {\n \"alpha\": 123,\n \"api_template_meta\": {\n \"replace_key\": \"<string>\"\n },\n \"color\": \"<string>\",\n \"crop\": {\n \"h\": 123,\n \"w\": 123,\n \"x\": 123,\n \"y\": 123\n },\n \"fit_mode\": \"<string>\",\n \"flip\": \"<string>\",\n \"gauss\": 123,\n \"h\": 123,\n \"key\": \"<string>\",\n \"mode\": \"<string>\",\n \"moving_camera\": {\n \"type\": \"<string>\"\n },\n \"path\": \"<string>\",\n \"person_cover\": \"<string>\",\n \"person_preview_url\": \"<string>\",\n \"preview_path\": \"<string>\",\n \"prop\": {\n \"animationInfo\": {\n \"cycle\": {\n \"duration\": 123,\n \"effectType\": \"<string>\"\n },\n \"enter\": {\n \"duration\": 123,\n \"effectType\": \"<string>\"\n },\n \"leave\": {\n \"duration\": 123,\n \"effectType\": \"<string>\"\n }\n },\n \"audioPath\": \"<string>\",\n \"bg_transparent\": true,\n \"clip\": {\n \"end\": 123,\n \"start\": 123\n },\n \"emotion\": {\n \"cover\": \"<string>\",\n \"id\": 123,\n \"name\": \"<string>\",\n \"preview_transparent_video\": \"<string>\",\n \"preview_video\": \"<string>\"\n },\n \"meta\": {\n \"cover\": \"<string>\",\n \"id\": 123,\n \"name\": \"<string>\",\n \"origin_height\": 123,\n \"origin_width\": 123,\n \"person_source\": 123,\n \"playback_type\": \"<string>\",\n \"preview_transparent_video\": \"<string>\",\n \"preview_video\": \"<string>\",\n \"show_type_preset\": {\n \"all\": {\n \"shape\": {\n \"color\": \"<string>\",\n \"h\": 123,\n \"r\": 123,\n \"type\": \"<string>\",\n \"w\": 123,\n \"x\": 123,\n \"y\": 123\n },\n \"size\": {\n \"h\": 123,\n \"w\": 123\n }\n },\n \"circle\": {\n \"shape\": {\n \"color\": \"<string>\",\n \"h\": 123,\n \"r\": 123,\n \"type\": \"<string>\",\n \"w\": 123,\n \"x\": 123,\n \"y\": 123\n },\n \"size\": {\n \"h\": 123,\n \"w\": 123\n }\n }\n },\n \"sub_type\": \"<string>\",\n \"tts_url\": \"<string>\",\n \"type\": \"<string>\"\n },\n \"play_mode\": \"<string>\",\n \"renderScale\": 123,\n \"shapeInfo\": {\n \"color\": \"<string>\",\n \"html\": \"<string>\",\n \"strokeColor\": \"<string>\",\n \"strokeType\": \"<string>\",\n \"strokeWidth\": 123,\n \"type\": \"<string>\"\n },\n \"show_type\": \"<string>\",\n \"templateInfo\": {},\n \"textConfig\": {\n \"align\": \"<string>\",\n \"background\": {},\n \"color\": \"<string>\",\n \"fontFamily\": {},\n \"fontSize\": 123,\n \"fontStyle\": {},\n \"padding\": {},\n \"shadow\": {},\n \"stroke\": {},\n \"textDecoration\": \"<string>\",\n \"verticalAlign\": \"<string>\"\n },\n \"textInfo\": {\n \"backgroundColor\": \"<string>\",\n \"color\": \"<string>\",\n \"content\": \"<string>\",\n \"fontFamily\": \"<string>\",\n \"fontFamilyID\": \"<string>\",\n \"fontFileName\": \"<string>\",\n \"fontSize\": 123,\n \"fontStyle\": \"<string>\",\n \"fontWeight\": \"<string>\",\n \"paddingBottom\": 123,\n \"paddingLeft\": 123,\n \"paddingRight\": 123,\n \"paddingTop\": 123,\n \"radius\": 123,\n \"strokeColor\": \"<string>\",\n \"strokeWidth\": 123,\n \"textAlign\": \"<string>\",\n \"textDecoration\": \"<string>\",\n \"textOrientation\": \"<string>\",\n \"textShadowBlur\": 123,\n \"textShadowColor\": \"<string>\",\n \"textShadowH\": 123,\n \"textShadowV\": 123,\n \"writingMode\": \"<string>\"\n },\n \"waveformConfig\": {},\n \"word_seq\": [\n {\n \"break\": \"<string>\",\n \"end\": 123,\n \"hide\": true,\n \"key\": \"<string>\",\n \"start\": 123,\n \"text\": \"<string>\"\n }\n ]\n },\n \"r\": 123,\n \"radius\": \"<string>\",\n \"shape\": {\n \"background_gauss\": 123,\n \"color\": \"<string>\",\n \"content_position\": {\n \"h\": 123,\n \"r\": 123,\n \"w\": 123,\n \"x\": 123,\n \"y\": 123\n },\n \"disable_shape\": true,\n \"object_fit\": \"<string>\",\n \"radius\": 123,\n \"type\": \"<string>\"\n },\n \"subtitle\": {\n \"font_family\": {\n \"name\": \"<string>\",\n \"url\": \"<string>\"\n },\n \"html\": \"<string>\",\n \"line_size\": 123,\n \"mss\": 123,\n \"prop\": {},\n \"text\": \"<string>\",\n \"tts_info_index\": 123,\n \"word_seq\": [\n {\n \"break\": \"<string>\",\n \"end\": 123,\n \"hide\": true,\n \"key\": \"<string>\",\n \"start\": 123,\n \"text\": \"<string>\"\n }\n ]\n },\n \"template_meta\": {\n \"is_goods_media\": true,\n \"is_logo\": true,\n \"no_need_replace\": true\n },\n \"timeline\": {\n \"cross\": {\n \"in\": [\n \"<string>\"\n ],\n \"in_time\": 123,\n \"out\": [\n \"<string>\"\n ],\n \"out_time\": 123\n },\n \"end\": 123,\n \"key_frames\": [\n {\n \"func\": \"<string>\",\n \"properties\": {\n \"alpha\": 123,\n \"h\": 123,\n \"r\": 123,\n \"scale\": 123,\n \"w\": 123,\n \"x\": 123,\n \"y\": 123\n },\n \"timestamp\": 123\n }\n ],\n \"start\": 123\n },\n \"top_level_key\": \"<string>\",\n \"tts_audio_url\": \"<string>\",\n \"type\": \"<string>\",\n \"volume\": 123,\n \"w\": 123,\n \"x\": 123,\n \"y\": 123\n }\n ],\n \"type\": \"<string>\"\n }\n ],\n \"tts_args\": {\n \"locale\": \"<string>\",\n \"style\": \"<string>\"\n },\n \"tts_voice_id\": \"<string>\",\n \"used_bg_transparent\": true,\n \"version\": \"<string>\",\n \"w\": 123\n }\n }\n ],\n \"afterTTS\": true,\n \"createFrom\": 123,\n \"is_draft_render\": true\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("X-Api-Key", "<api-key>")
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.post("https://api-services.podcastor.ai/open/podcast/v1/render")
.header("X-Api-Key", "<api-key>")
.header("Content-Type", "application/json")
.body("{\n \"tasks\": [\n {\n \"project_id\": \"<string>\",\n \"index\": 123,\n \"workspace\": \"<string>\",\n \"workspace_obj\": {\n \"aspect_ratio\": 123,\n \"condition\": \"<string>\",\n \"ext\": \"<string>\",\n \"flags\": {\n \"emotions\": true,\n \"podcast\": true,\n \"ppt2video\": true,\n \"uhd\": true\n },\n \"h\": 123,\n \"has_edit_media\": true,\n \"keying_enable\": 123,\n \"music_id\": 123,\n \"name\": \"<string>\",\n \"person_id\": 123,\n \"person_source\": 123,\n \"preview_cover_time\": 123,\n \"preview_cover_url\": \"<string>\",\n \"render_subtitle\": true,\n \"scenes\": [\n {\n \"audio_script\": {\n \"duration\": 123,\n \"id\": 123,\n \"name\": \"<string>\",\n \"type\": 123,\n \"url\": \"<string>\"\n },\n \"bg_color\": \"<string>\",\n \"duration\": 123,\n \"emotion_description\": \"<string>\",\n \"key\": \"<string>\",\n \"new_duration\": 123,\n \"placeholder_script\": {\n \"duration\": 123\n },\n \"script\": \"<string>\",\n \"script_config\": {\n \"emotion\": \"<string>\",\n \"model_id\": \"<string>\",\n \"pitch\": 123,\n \"similarity\": 123,\n \"speaker_boost\": true,\n \"stability\": 123,\n \"style_exaggeration\": 123,\n \"tts_speed\": 123,\n \"volume\": 123\n },\n \"script_type\": \"<string>\",\n \"speak_person\": {\n \"id\": 123,\n \"person_source\": 123\n },\n \"speaker_order\": 123,\n \"subtitle_info\": [\n {\n \"end_time\": 123,\n \"start_time\": 123,\n \"text\": \"<string>\"\n }\n ],\n \"tracks\": [\n {\n \"index\": 123,\n \"key\": \"<string>\",\n \"layers\": [\n {\n \"alpha\": 123,\n \"api_template_meta\": {\n \"replace_key\": \"<string>\"\n },\n \"color\": \"<string>\",\n \"crop\": {\n \"h\": 123,\n \"w\": 123,\n \"x\": 123,\n \"y\": 123\n },\n \"fit_mode\": \"<string>\",\n \"flip\": \"<string>\",\n \"gauss\": 123,\n \"h\": 123,\n \"key\": \"<string>\",\n \"mode\": \"<string>\",\n \"moving_camera\": {\n \"type\": \"<string>\"\n },\n \"path\": \"<string>\",\n \"person_cover\": \"<string>\",\n \"person_preview_url\": \"<string>\",\n \"preview_path\": \"<string>\",\n \"prop\": {\n \"animationInfo\": {\n \"cycle\": {\n \"duration\": 123,\n \"effectType\": \"<string>\"\n },\n \"enter\": {\n \"duration\": 123,\n \"effectType\": \"<string>\"\n },\n \"leave\": {\n \"duration\": 123,\n \"effectType\": \"<string>\"\n }\n },\n \"audioPath\": \"<string>\",\n \"bg_transparent\": true,\n \"clip\": {\n \"end\": 123,\n \"start\": 123\n },\n \"emotion\": {\n \"cover\": \"<string>\",\n \"id\": 123,\n \"name\": \"<string>\",\n \"preview_transparent_video\": \"<string>\",\n \"preview_video\": \"<string>\"\n },\n \"meta\": {\n \"cover\": \"<string>\",\n \"id\": 123,\n \"name\": \"<string>\",\n \"origin_height\": 123,\n \"origin_width\": 123,\n \"person_source\": 123,\n \"playback_type\": \"<string>\",\n \"preview_transparent_video\": \"<string>\",\n \"preview_video\": \"<string>\",\n \"show_type_preset\": {\n \"all\": {\n \"shape\": {\n \"color\": \"<string>\",\n \"h\": 123,\n \"r\": 123,\n \"type\": \"<string>\",\n \"w\": 123,\n \"x\": 123,\n \"y\": 123\n },\n \"size\": {\n \"h\": 123,\n \"w\": 123\n }\n },\n \"circle\": {\n \"shape\": {\n \"color\": \"<string>\",\n \"h\": 123,\n \"r\": 123,\n \"type\": \"<string>\",\n \"w\": 123,\n \"x\": 123,\n \"y\": 123\n },\n \"size\": {\n \"h\": 123,\n \"w\": 123\n }\n }\n },\n \"sub_type\": \"<string>\",\n \"tts_url\": \"<string>\",\n \"type\": \"<string>\"\n },\n \"play_mode\": \"<string>\",\n \"renderScale\": 123,\n \"shapeInfo\": {\n \"color\": \"<string>\",\n \"html\": \"<string>\",\n \"strokeColor\": \"<string>\",\n \"strokeType\": \"<string>\",\n \"strokeWidth\": 123,\n \"type\": \"<string>\"\n },\n \"show_type\": \"<string>\",\n \"templateInfo\": {},\n \"textConfig\": {\n \"align\": \"<string>\",\n \"background\": {},\n \"color\": \"<string>\",\n \"fontFamily\": {},\n \"fontSize\": 123,\n \"fontStyle\": {},\n \"padding\": {},\n \"shadow\": {},\n \"stroke\": {},\n \"textDecoration\": \"<string>\",\n \"verticalAlign\": \"<string>\"\n },\n \"textInfo\": {\n \"backgroundColor\": \"<string>\",\n \"color\": \"<string>\",\n \"content\": \"<string>\",\n \"fontFamily\": \"<string>\",\n \"fontFamilyID\": \"<string>\",\n \"fontFileName\": \"<string>\",\n \"fontSize\": 123,\n \"fontStyle\": \"<string>\",\n \"fontWeight\": \"<string>\",\n \"paddingBottom\": 123,\n \"paddingLeft\": 123,\n \"paddingRight\": 123,\n \"paddingTop\": 123,\n \"radius\": 123,\n \"strokeColor\": \"<string>\",\n \"strokeWidth\": 123,\n \"textAlign\": \"<string>\",\n \"textDecoration\": \"<string>\",\n \"textOrientation\": \"<string>\",\n \"textShadowBlur\": 123,\n \"textShadowColor\": \"<string>\",\n \"textShadowH\": 123,\n \"textShadowV\": 123,\n \"writingMode\": \"<string>\"\n },\n \"waveformConfig\": {},\n \"word_seq\": [\n {\n \"break\": \"<string>\",\n \"end\": 123,\n \"hide\": true,\n \"key\": \"<string>\",\n \"start\": 123,\n \"text\": \"<string>\"\n }\n ]\n },\n \"r\": 123,\n \"radius\": \"<string>\",\n \"shape\": {\n \"background_gauss\": 123,\n \"color\": \"<string>\",\n \"content_position\": {\n \"h\": 123,\n \"r\": 123,\n \"w\": 123,\n \"x\": 123,\n \"y\": 123\n },\n \"disable_shape\": true,\n \"object_fit\": \"<string>\",\n \"radius\": 123,\n \"type\": \"<string>\"\n },\n \"subtitle\": {\n \"font_family\": {\n \"name\": \"<string>\",\n \"url\": \"<string>\"\n },\n \"html\": \"<string>\",\n \"line_size\": 123,\n \"mss\": 123,\n \"prop\": {},\n \"text\": \"<string>\",\n \"tts_info_index\": 123,\n \"word_seq\": [\n {\n \"break\": \"<string>\",\n \"end\": 123,\n \"hide\": true,\n \"key\": \"<string>\",\n \"start\": 123,\n \"text\": \"<string>\"\n }\n ]\n },\n \"template_meta\": {\n \"is_goods_media\": true,\n \"is_logo\": true,\n \"no_need_replace\": true\n },\n \"timeline\": {\n \"cross\": {\n \"in\": [\n \"<string>\"\n ],\n \"in_time\": 123,\n \"out\": [\n \"<string>\"\n ],\n \"out_time\": 123\n },\n \"end\": 123,\n \"key_frames\": [\n {\n \"func\": \"<string>\",\n \"properties\": {\n \"alpha\": 123,\n \"h\": 123,\n \"r\": 123,\n \"scale\": 123,\n \"w\": 123,\n \"x\": 123,\n \"y\": 123\n },\n \"timestamp\": 123\n }\n ],\n \"start\": 123\n },\n \"top_level_key\": \"<string>\",\n \"tts_audio_url\": \"<string>\",\n \"type\": \"<string>\",\n \"volume\": 123,\n \"w\": 123,\n \"x\": 123,\n \"y\": 123\n }\n ],\n \"type\": \"<string>\"\n }\n ],\n \"transition\": {\n \"type\": \"<string>\"\n },\n \"tts_args\": {\n \"locale\": \"<string>\",\n \"style\": \"<string>\"\n },\n \"tts_axis\": [\n {\n \"duration\": 123,\n \"endTime\": 123,\n \"startTime\": 123,\n \"text\": \"<string>\",\n \"wordLen\": 123\n }\n ],\n \"tts_payment_id\": \"<string>\",\n \"tts_voice_id\": \"<string>\"\n }\n ],\n \"subtitle_version\": 123,\n \"t_id\": 123,\n \"total_duration\": 123,\n \"tracks\": [\n {\n \"index\": 123,\n \"key\": \"<string>\",\n \"layers\": [\n {\n \"alpha\": 123,\n \"api_template_meta\": {\n \"replace_key\": \"<string>\"\n },\n \"color\": \"<string>\",\n \"crop\": {\n \"h\": 123,\n \"w\": 123,\n \"x\": 123,\n \"y\": 123\n },\n \"fit_mode\": \"<string>\",\n \"flip\": \"<string>\",\n \"gauss\": 123,\n \"h\": 123,\n \"key\": \"<string>\",\n \"mode\": \"<string>\",\n \"moving_camera\": {\n \"type\": \"<string>\"\n },\n \"path\": \"<string>\",\n \"person_cover\": \"<string>\",\n \"person_preview_url\": \"<string>\",\n \"preview_path\": \"<string>\",\n \"prop\": {\n \"animationInfo\": {\n \"cycle\": {\n \"duration\": 123,\n \"effectType\": \"<string>\"\n },\n \"enter\": {\n \"duration\": 123,\n \"effectType\": \"<string>\"\n },\n \"leave\": {\n \"duration\": 123,\n \"effectType\": \"<string>\"\n }\n },\n \"audioPath\": \"<string>\",\n \"bg_transparent\": true,\n \"clip\": {\n \"end\": 123,\n \"start\": 123\n },\n \"emotion\": {\n \"cover\": \"<string>\",\n \"id\": 123,\n \"name\": \"<string>\",\n \"preview_transparent_video\": \"<string>\",\n \"preview_video\": \"<string>\"\n },\n \"meta\": {\n \"cover\": \"<string>\",\n \"id\": 123,\n \"name\": \"<string>\",\n \"origin_height\": 123,\n \"origin_width\": 123,\n \"person_source\": 123,\n \"playback_type\": \"<string>\",\n \"preview_transparent_video\": \"<string>\",\n \"preview_video\": \"<string>\",\n \"show_type_preset\": {\n \"all\": {\n \"shape\": {\n \"color\": \"<string>\",\n \"h\": 123,\n \"r\": 123,\n \"type\": \"<string>\",\n \"w\": 123,\n \"x\": 123,\n \"y\": 123\n },\n \"size\": {\n \"h\": 123,\n \"w\": 123\n }\n },\n \"circle\": {\n \"shape\": {\n \"color\": \"<string>\",\n \"h\": 123,\n \"r\": 123,\n \"type\": \"<string>\",\n \"w\": 123,\n \"x\": 123,\n \"y\": 123\n },\n \"size\": {\n \"h\": 123,\n \"w\": 123\n }\n }\n },\n \"sub_type\": \"<string>\",\n \"tts_url\": \"<string>\",\n \"type\": \"<string>\"\n },\n \"play_mode\": \"<string>\",\n \"renderScale\": 123,\n \"shapeInfo\": {\n \"color\": \"<string>\",\n \"html\": \"<string>\",\n \"strokeColor\": \"<string>\",\n \"strokeType\": \"<string>\",\n \"strokeWidth\": 123,\n \"type\": \"<string>\"\n },\n \"show_type\": \"<string>\",\n \"templateInfo\": {},\n \"textConfig\": {\n \"align\": \"<string>\",\n \"background\": {},\n \"color\": \"<string>\",\n \"fontFamily\": {},\n \"fontSize\": 123,\n \"fontStyle\": {},\n \"padding\": {},\n \"shadow\": {},\n \"stroke\": {},\n \"textDecoration\": \"<string>\",\n \"verticalAlign\": \"<string>\"\n },\n \"textInfo\": {\n \"backgroundColor\": \"<string>\",\n \"color\": \"<string>\",\n \"content\": \"<string>\",\n \"fontFamily\": \"<string>\",\n \"fontFamilyID\": \"<string>\",\n \"fontFileName\": \"<string>\",\n \"fontSize\": 123,\n \"fontStyle\": \"<string>\",\n \"fontWeight\": \"<string>\",\n \"paddingBottom\": 123,\n \"paddingLeft\": 123,\n \"paddingRight\": 123,\n \"paddingTop\": 123,\n \"radius\": 123,\n \"strokeColor\": \"<string>\",\n \"strokeWidth\": 123,\n \"textAlign\": \"<string>\",\n \"textDecoration\": \"<string>\",\n \"textOrientation\": \"<string>\",\n \"textShadowBlur\": 123,\n \"textShadowColor\": \"<string>\",\n \"textShadowH\": 123,\n \"textShadowV\": 123,\n \"writingMode\": \"<string>\"\n },\n \"waveformConfig\": {},\n \"word_seq\": [\n {\n \"break\": \"<string>\",\n \"end\": 123,\n \"hide\": true,\n \"key\": \"<string>\",\n \"start\": 123,\n \"text\": \"<string>\"\n }\n ]\n },\n \"r\": 123,\n \"radius\": \"<string>\",\n \"shape\": {\n \"background_gauss\": 123,\n \"color\": \"<string>\",\n \"content_position\": {\n \"h\": 123,\n \"r\": 123,\n \"w\": 123,\n \"x\": 123,\n \"y\": 123\n },\n \"disable_shape\": true,\n \"object_fit\": \"<string>\",\n \"radius\": 123,\n \"type\": \"<string>\"\n },\n \"subtitle\": {\n \"font_family\": {\n \"name\": \"<string>\",\n \"url\": \"<string>\"\n },\n \"html\": \"<string>\",\n \"line_size\": 123,\n \"mss\": 123,\n \"prop\": {},\n \"text\": \"<string>\",\n \"tts_info_index\": 123,\n \"word_seq\": [\n {\n \"break\": \"<string>\",\n \"end\": 123,\n \"hide\": true,\n \"key\": \"<string>\",\n \"start\": 123,\n \"text\": \"<string>\"\n }\n ]\n },\n \"template_meta\": {\n \"is_goods_media\": true,\n \"is_logo\": true,\n \"no_need_replace\": true\n },\n \"timeline\": {\n \"cross\": {\n \"in\": [\n \"<string>\"\n ],\n \"in_time\": 123,\n \"out\": [\n \"<string>\"\n ],\n \"out_time\": 123\n },\n \"end\": 123,\n \"key_frames\": [\n {\n \"func\": \"<string>\",\n \"properties\": {\n \"alpha\": 123,\n \"h\": 123,\n \"r\": 123,\n \"scale\": 123,\n \"w\": 123,\n \"x\": 123,\n \"y\": 123\n },\n \"timestamp\": 123\n }\n ],\n \"start\": 123\n },\n \"top_level_key\": \"<string>\",\n \"tts_audio_url\": \"<string>\",\n \"type\": \"<string>\",\n \"volume\": 123,\n \"w\": 123,\n \"x\": 123,\n \"y\": 123\n }\n ],\n \"type\": \"<string>\"\n }\n ],\n \"tts_args\": {\n \"locale\": \"<string>\",\n \"style\": \"<string>\"\n },\n \"tts_voice_id\": \"<string>\",\n \"used_bg_transparent\": true,\n \"version\": \"<string>\",\n \"w\": 123\n }\n }\n ],\n \"afterTTS\": true,\n \"createFrom\": 123,\n \"is_draft_render\": true\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api-services.podcastor.ai/open/podcast/v1/render")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["X-Api-Key"] = '<api-key>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"tasks\": [\n {\n \"project_id\": \"<string>\",\n \"index\": 123,\n \"workspace\": \"<string>\",\n \"workspace_obj\": {\n \"aspect_ratio\": 123,\n \"condition\": \"<string>\",\n \"ext\": \"<string>\",\n \"flags\": {\n \"emotions\": true,\n \"podcast\": true,\n \"ppt2video\": true,\n \"uhd\": true\n },\n \"h\": 123,\n \"has_edit_media\": true,\n \"keying_enable\": 123,\n \"music_id\": 123,\n \"name\": \"<string>\",\n \"person_id\": 123,\n \"person_source\": 123,\n \"preview_cover_time\": 123,\n \"preview_cover_url\": \"<string>\",\n \"render_subtitle\": true,\n \"scenes\": [\n {\n \"audio_script\": {\n \"duration\": 123,\n \"id\": 123,\n \"name\": \"<string>\",\n \"type\": 123,\n \"url\": \"<string>\"\n },\n \"bg_color\": \"<string>\",\n \"duration\": 123,\n \"emotion_description\": \"<string>\",\n \"key\": \"<string>\",\n \"new_duration\": 123,\n \"placeholder_script\": {\n \"duration\": 123\n },\n \"script\": \"<string>\",\n \"script_config\": {\n \"emotion\": \"<string>\",\n \"model_id\": \"<string>\",\n \"pitch\": 123,\n \"similarity\": 123,\n \"speaker_boost\": true,\n \"stability\": 123,\n \"style_exaggeration\": 123,\n \"tts_speed\": 123,\n \"volume\": 123\n },\n \"script_type\": \"<string>\",\n \"speak_person\": {\n \"id\": 123,\n \"person_source\": 123\n },\n \"speaker_order\": 123,\n \"subtitle_info\": [\n {\n \"end_time\": 123,\n \"start_time\": 123,\n \"text\": \"<string>\"\n }\n ],\n \"tracks\": [\n {\n \"index\": 123,\n \"key\": \"<string>\",\n \"layers\": [\n {\n \"alpha\": 123,\n \"api_template_meta\": {\n \"replace_key\": \"<string>\"\n },\n \"color\": \"<string>\",\n \"crop\": {\n \"h\": 123,\n \"w\": 123,\n \"x\": 123,\n \"y\": 123\n },\n \"fit_mode\": \"<string>\",\n \"flip\": \"<string>\",\n \"gauss\": 123,\n \"h\": 123,\n \"key\": \"<string>\",\n \"mode\": \"<string>\",\n \"moving_camera\": {\n \"type\": \"<string>\"\n },\n \"path\": \"<string>\",\n \"person_cover\": \"<string>\",\n \"person_preview_url\": \"<string>\",\n \"preview_path\": \"<string>\",\n \"prop\": {\n \"animationInfo\": {\n \"cycle\": {\n \"duration\": 123,\n \"effectType\": \"<string>\"\n },\n \"enter\": {\n \"duration\": 123,\n \"effectType\": \"<string>\"\n },\n \"leave\": {\n \"duration\": 123,\n \"effectType\": \"<string>\"\n }\n },\n \"audioPath\": \"<string>\",\n \"bg_transparent\": true,\n \"clip\": {\n \"end\": 123,\n \"start\": 123\n },\n \"emotion\": {\n \"cover\": \"<string>\",\n \"id\": 123,\n \"name\": \"<string>\",\n \"preview_transparent_video\": \"<string>\",\n \"preview_video\": \"<string>\"\n },\n \"meta\": {\n \"cover\": \"<string>\",\n \"id\": 123,\n \"name\": \"<string>\",\n \"origin_height\": 123,\n \"origin_width\": 123,\n \"person_source\": 123,\n \"playback_type\": \"<string>\",\n \"preview_transparent_video\": \"<string>\",\n \"preview_video\": \"<string>\",\n \"show_type_preset\": {\n \"all\": {\n \"shape\": {\n \"color\": \"<string>\",\n \"h\": 123,\n \"r\": 123,\n \"type\": \"<string>\",\n \"w\": 123,\n \"x\": 123,\n \"y\": 123\n },\n \"size\": {\n \"h\": 123,\n \"w\": 123\n }\n },\n \"circle\": {\n \"shape\": {\n \"color\": \"<string>\",\n \"h\": 123,\n \"r\": 123,\n \"type\": \"<string>\",\n \"w\": 123,\n \"x\": 123,\n \"y\": 123\n },\n \"size\": {\n \"h\": 123,\n \"w\": 123\n }\n }\n },\n \"sub_type\": \"<string>\",\n \"tts_url\": \"<string>\",\n \"type\": \"<string>\"\n },\n \"play_mode\": \"<string>\",\n \"renderScale\": 123,\n \"shapeInfo\": {\n \"color\": \"<string>\",\n \"html\": \"<string>\",\n \"strokeColor\": \"<string>\",\n \"strokeType\": \"<string>\",\n \"strokeWidth\": 123,\n \"type\": \"<string>\"\n },\n \"show_type\": \"<string>\",\n \"templateInfo\": {},\n \"textConfig\": {\n \"align\": \"<string>\",\n \"background\": {},\n \"color\": \"<string>\",\n \"fontFamily\": {},\n \"fontSize\": 123,\n \"fontStyle\": {},\n \"padding\": {},\n \"shadow\": {},\n \"stroke\": {},\n \"textDecoration\": \"<string>\",\n \"verticalAlign\": \"<string>\"\n },\n \"textInfo\": {\n \"backgroundColor\": \"<string>\",\n \"color\": \"<string>\",\n \"content\": \"<string>\",\n \"fontFamily\": \"<string>\",\n \"fontFamilyID\": \"<string>\",\n \"fontFileName\": \"<string>\",\n \"fontSize\": 123,\n \"fontStyle\": \"<string>\",\n \"fontWeight\": \"<string>\",\n \"paddingBottom\": 123,\n \"paddingLeft\": 123,\n \"paddingRight\": 123,\n \"paddingTop\": 123,\n \"radius\": 123,\n \"strokeColor\": \"<string>\",\n \"strokeWidth\": 123,\n \"textAlign\": \"<string>\",\n \"textDecoration\": \"<string>\",\n \"textOrientation\": \"<string>\",\n \"textShadowBlur\": 123,\n \"textShadowColor\": \"<string>\",\n \"textShadowH\": 123,\n \"textShadowV\": 123,\n \"writingMode\": \"<string>\"\n },\n \"waveformConfig\": {},\n \"word_seq\": [\n {\n \"break\": \"<string>\",\n \"end\": 123,\n \"hide\": true,\n \"key\": \"<string>\",\n \"start\": 123,\n \"text\": \"<string>\"\n }\n ]\n },\n \"r\": 123,\n \"radius\": \"<string>\",\n \"shape\": {\n \"background_gauss\": 123,\n \"color\": \"<string>\",\n \"content_position\": {\n \"h\": 123,\n \"r\": 123,\n \"w\": 123,\n \"x\": 123,\n \"y\": 123\n },\n \"disable_shape\": true,\n \"object_fit\": \"<string>\",\n \"radius\": 123,\n \"type\": \"<string>\"\n },\n \"subtitle\": {\n \"font_family\": {\n \"name\": \"<string>\",\n \"url\": \"<string>\"\n },\n \"html\": \"<string>\",\n \"line_size\": 123,\n \"mss\": 123,\n \"prop\": {},\n \"text\": \"<string>\",\n \"tts_info_index\": 123,\n \"word_seq\": [\n {\n \"break\": \"<string>\",\n \"end\": 123,\n \"hide\": true,\n \"key\": \"<string>\",\n \"start\": 123,\n \"text\": \"<string>\"\n }\n ]\n },\n \"template_meta\": {\n \"is_goods_media\": true,\n \"is_logo\": true,\n \"no_need_replace\": true\n },\n \"timeline\": {\n \"cross\": {\n \"in\": [\n \"<string>\"\n ],\n \"in_time\": 123,\n \"out\": [\n \"<string>\"\n ],\n \"out_time\": 123\n },\n \"end\": 123,\n \"key_frames\": [\n {\n \"func\": \"<string>\",\n \"properties\": {\n \"alpha\": 123,\n \"h\": 123,\n \"r\": 123,\n \"scale\": 123,\n \"w\": 123,\n \"x\": 123,\n \"y\": 123\n },\n \"timestamp\": 123\n }\n ],\n \"start\": 123\n },\n \"top_level_key\": \"<string>\",\n \"tts_audio_url\": \"<string>\",\n \"type\": \"<string>\",\n \"volume\": 123,\n \"w\": 123,\n \"x\": 123,\n \"y\": 123\n }\n ],\n \"type\": \"<string>\"\n }\n ],\n \"transition\": {\n \"type\": \"<string>\"\n },\n \"tts_args\": {\n \"locale\": \"<string>\",\n \"style\": \"<string>\"\n },\n \"tts_axis\": [\n {\n \"duration\": 123,\n \"endTime\": 123,\n \"startTime\": 123,\n \"text\": \"<string>\",\n \"wordLen\": 123\n }\n ],\n \"tts_payment_id\": \"<string>\",\n \"tts_voice_id\": \"<string>\"\n }\n ],\n \"subtitle_version\": 123,\n \"t_id\": 123,\n \"total_duration\": 123,\n \"tracks\": [\n {\n \"index\": 123,\n \"key\": \"<string>\",\n \"layers\": [\n {\n \"alpha\": 123,\n \"api_template_meta\": {\n \"replace_key\": \"<string>\"\n },\n \"color\": \"<string>\",\n \"crop\": {\n \"h\": 123,\n \"w\": 123,\n \"x\": 123,\n \"y\": 123\n },\n \"fit_mode\": \"<string>\",\n \"flip\": \"<string>\",\n \"gauss\": 123,\n \"h\": 123,\n \"key\": \"<string>\",\n \"mode\": \"<string>\",\n \"moving_camera\": {\n \"type\": \"<string>\"\n },\n \"path\": \"<string>\",\n \"person_cover\": \"<string>\",\n \"person_preview_url\": \"<string>\",\n \"preview_path\": \"<string>\",\n \"prop\": {\n \"animationInfo\": {\n \"cycle\": {\n \"duration\": 123,\n \"effectType\": \"<string>\"\n },\n \"enter\": {\n \"duration\": 123,\n \"effectType\": \"<string>\"\n },\n \"leave\": {\n \"duration\": 123,\n \"effectType\": \"<string>\"\n }\n },\n \"audioPath\": \"<string>\",\n \"bg_transparent\": true,\n \"clip\": {\n \"end\": 123,\n \"start\": 123\n },\n \"emotion\": {\n \"cover\": \"<string>\",\n \"id\": 123,\n \"name\": \"<string>\",\n \"preview_transparent_video\": \"<string>\",\n \"preview_video\": \"<string>\"\n },\n \"meta\": {\n \"cover\": \"<string>\",\n \"id\": 123,\n \"name\": \"<string>\",\n \"origin_height\": 123,\n \"origin_width\": 123,\n \"person_source\": 123,\n \"playback_type\": \"<string>\",\n \"preview_transparent_video\": \"<string>\",\n \"preview_video\": \"<string>\",\n \"show_type_preset\": {\n \"all\": {\n \"shape\": {\n \"color\": \"<string>\",\n \"h\": 123,\n \"r\": 123,\n \"type\": \"<string>\",\n \"w\": 123,\n \"x\": 123,\n \"y\": 123\n },\n \"size\": {\n \"h\": 123,\n \"w\": 123\n }\n },\n \"circle\": {\n \"shape\": {\n \"color\": \"<string>\",\n \"h\": 123,\n \"r\": 123,\n \"type\": \"<string>\",\n \"w\": 123,\n \"x\": 123,\n \"y\": 123\n },\n \"size\": {\n \"h\": 123,\n \"w\": 123\n }\n }\n },\n \"sub_type\": \"<string>\",\n \"tts_url\": \"<string>\",\n \"type\": \"<string>\"\n },\n \"play_mode\": \"<string>\",\n \"renderScale\": 123,\n \"shapeInfo\": {\n \"color\": \"<string>\",\n \"html\": \"<string>\",\n \"strokeColor\": \"<string>\",\n \"strokeType\": \"<string>\",\n \"strokeWidth\": 123,\n \"type\": \"<string>\"\n },\n \"show_type\": \"<string>\",\n \"templateInfo\": {},\n \"textConfig\": {\n \"align\": \"<string>\",\n \"background\": {},\n \"color\": \"<string>\",\n \"fontFamily\": {},\n \"fontSize\": 123,\n \"fontStyle\": {},\n \"padding\": {},\n \"shadow\": {},\n \"stroke\": {},\n \"textDecoration\": \"<string>\",\n \"verticalAlign\": \"<string>\"\n },\n \"textInfo\": {\n \"backgroundColor\": \"<string>\",\n \"color\": \"<string>\",\n \"content\": \"<string>\",\n \"fontFamily\": \"<string>\",\n \"fontFamilyID\": \"<string>\",\n \"fontFileName\": \"<string>\",\n \"fontSize\": 123,\n \"fontStyle\": \"<string>\",\n \"fontWeight\": \"<string>\",\n \"paddingBottom\": 123,\n \"paddingLeft\": 123,\n \"paddingRight\": 123,\n \"paddingTop\": 123,\n \"radius\": 123,\n \"strokeColor\": \"<string>\",\n \"strokeWidth\": 123,\n \"textAlign\": \"<string>\",\n \"textDecoration\": \"<string>\",\n \"textOrientation\": \"<string>\",\n \"textShadowBlur\": 123,\n \"textShadowColor\": \"<string>\",\n \"textShadowH\": 123,\n \"textShadowV\": 123,\n \"writingMode\": \"<string>\"\n },\n \"waveformConfig\": {},\n \"word_seq\": [\n {\n \"break\": \"<string>\",\n \"end\": 123,\n \"hide\": true,\n \"key\": \"<string>\",\n \"start\": 123,\n \"text\": \"<string>\"\n }\n ]\n },\n \"r\": 123,\n \"radius\": \"<string>\",\n \"shape\": {\n \"background_gauss\": 123,\n \"color\": \"<string>\",\n \"content_position\": {\n \"h\": 123,\n \"r\": 123,\n \"w\": 123,\n \"x\": 123,\n \"y\": 123\n },\n \"disable_shape\": true,\n \"object_fit\": \"<string>\",\n \"radius\": 123,\n \"type\": \"<string>\"\n },\n \"subtitle\": {\n \"font_family\": {\n \"name\": \"<string>\",\n \"url\": \"<string>\"\n },\n \"html\": \"<string>\",\n \"line_size\": 123,\n \"mss\": 123,\n \"prop\": {},\n \"text\": \"<string>\",\n \"tts_info_index\": 123,\n \"word_seq\": [\n {\n \"break\": \"<string>\",\n \"end\": 123,\n \"hide\": true,\n \"key\": \"<string>\",\n \"start\": 123,\n \"text\": \"<string>\"\n }\n ]\n },\n \"template_meta\": {\n \"is_goods_media\": true,\n \"is_logo\": true,\n \"no_need_replace\": true\n },\n \"timeline\": {\n \"cross\": {\n \"in\": [\n \"<string>\"\n ],\n \"in_time\": 123,\n \"out\": [\n \"<string>\"\n ],\n \"out_time\": 123\n },\n \"end\": 123,\n \"key_frames\": [\n {\n \"func\": \"<string>\",\n \"properties\": {\n \"alpha\": 123,\n \"h\": 123,\n \"r\": 123,\n \"scale\": 123,\n \"w\": 123,\n \"x\": 123,\n \"y\": 123\n },\n \"timestamp\": 123\n }\n ],\n \"start\": 123\n },\n \"top_level_key\": \"<string>\",\n \"tts_audio_url\": \"<string>\",\n \"type\": \"<string>\",\n \"volume\": 123,\n \"w\": 123,\n \"x\": 123,\n \"y\": 123\n }\n ],\n \"type\": \"<string>\"\n }\n ],\n \"tts_args\": {\n \"locale\": \"<string>\",\n \"style\": \"<string>\"\n },\n \"tts_voice_id\": \"<string>\",\n \"used_bg_transparent\": true,\n \"version\": \"<string>\",\n \"w\": 123\n }\n }\n ],\n \"afterTTS\": true,\n \"createFrom\": 123,\n \"is_draft_render\": true\n}"
response = http.request(request)
puts response.read_body{
"cause": "<string>",
"code": 123,
"data": "<unknown>",
"details": "<unknown>",
"msg": "<string>",
"rid": "<string>"
}Workspace and rendering
Render
Render prepared Podcast workspaces using the Web render pipeline. Poll get_project for completion and video URL.
POST
/
open
/
podcast
/
v1
/
render
render
curl --request POST \
--url https://api-services.podcastor.ai/open/podcast/v1/render \
--header 'Content-Type: application/json' \
--header 'X-Api-Key: <api-key>' \
--data '
{
"tasks": [
{
"project_id": "<string>",
"index": 123,
"workspace": "<string>",
"workspace_obj": {
"aspect_ratio": 123,
"condition": "<string>",
"ext": "<string>",
"flags": {
"emotions": true,
"podcast": true,
"ppt2video": true,
"uhd": true
},
"h": 123,
"has_edit_media": true,
"keying_enable": 123,
"music_id": 123,
"name": "<string>",
"person_id": 123,
"person_source": 123,
"preview_cover_time": 123,
"preview_cover_url": "<string>",
"render_subtitle": true,
"scenes": [
{
"audio_script": {
"duration": 123,
"id": 123,
"name": "<string>",
"type": 123,
"url": "<string>"
},
"bg_color": "<string>",
"duration": 123,
"emotion_description": "<string>",
"key": "<string>",
"new_duration": 123,
"placeholder_script": {
"duration": 123
},
"script": "<string>",
"script_config": {
"emotion": "<string>",
"model_id": "<string>",
"pitch": 123,
"similarity": 123,
"speaker_boost": true,
"stability": 123,
"style_exaggeration": 123,
"tts_speed": 123,
"volume": 123
},
"script_type": "<string>",
"speak_person": {
"id": 123,
"person_source": 123
},
"speaker_order": 123,
"subtitle_info": [
{
"end_time": 123,
"start_time": 123,
"text": "<string>"
}
],
"tracks": [
{
"index": 123,
"key": "<string>",
"layers": [
{
"alpha": 123,
"api_template_meta": {
"replace_key": "<string>"
},
"color": "<string>",
"crop": {
"h": 123,
"w": 123,
"x": 123,
"y": 123
},
"fit_mode": "<string>",
"flip": "<string>",
"gauss": 123,
"h": 123,
"key": "<string>",
"mode": "<string>",
"moving_camera": {
"type": "<string>"
},
"path": "<string>",
"person_cover": "<string>",
"person_preview_url": "<string>",
"preview_path": "<string>",
"prop": {
"animationInfo": {
"cycle": {
"duration": 123,
"effectType": "<string>"
},
"enter": {
"duration": 123,
"effectType": "<string>"
},
"leave": {
"duration": 123,
"effectType": "<string>"
}
},
"audioPath": "<string>",
"bg_transparent": true,
"clip": {
"end": 123,
"start": 123
},
"emotion": {
"cover": "<string>",
"id": 123,
"name": "<string>",
"preview_transparent_video": "<string>",
"preview_video": "<string>"
},
"meta": {
"cover": "<string>",
"id": 123,
"name": "<string>",
"origin_height": 123,
"origin_width": 123,
"person_source": 123,
"playback_type": "<string>",
"preview_transparent_video": "<string>",
"preview_video": "<string>",
"show_type_preset": {
"all": {
"shape": {
"color": "<string>",
"h": 123,
"r": 123,
"type": "<string>",
"w": 123,
"x": 123,
"y": 123
},
"size": {
"h": 123,
"w": 123
}
},
"circle": {
"shape": {
"color": "<string>",
"h": 123,
"r": 123,
"type": "<string>",
"w": 123,
"x": 123,
"y": 123
},
"size": {
"h": 123,
"w": 123
}
}
},
"sub_type": "<string>",
"tts_url": "<string>",
"type": "<string>"
},
"play_mode": "<string>",
"renderScale": 123,
"shapeInfo": {
"color": "<string>",
"html": "<string>",
"strokeColor": "<string>",
"strokeType": "<string>",
"strokeWidth": 123,
"type": "<string>"
},
"show_type": "<string>",
"templateInfo": {},
"textConfig": {
"align": "<string>",
"background": {},
"color": "<string>",
"fontFamily": {},
"fontSize": 123,
"fontStyle": {},
"padding": {},
"shadow": {},
"stroke": {},
"textDecoration": "<string>",
"verticalAlign": "<string>"
},
"textInfo": {
"backgroundColor": "<string>",
"color": "<string>",
"content": "<string>",
"fontFamily": "<string>",
"fontFamilyID": "<string>",
"fontFileName": "<string>",
"fontSize": 123,
"fontStyle": "<string>",
"fontWeight": "<string>",
"paddingBottom": 123,
"paddingLeft": 123,
"paddingRight": 123,
"paddingTop": 123,
"radius": 123,
"strokeColor": "<string>",
"strokeWidth": 123,
"textAlign": "<string>",
"textDecoration": "<string>",
"textOrientation": "<string>",
"textShadowBlur": 123,
"textShadowColor": "<string>",
"textShadowH": 123,
"textShadowV": 123,
"writingMode": "<string>"
},
"waveformConfig": {},
"word_seq": [
{
"break": "<string>",
"end": 123,
"hide": true,
"key": "<string>",
"start": 123,
"text": "<string>"
}
]
},
"r": 123,
"radius": "<string>",
"shape": {
"background_gauss": 123,
"color": "<string>",
"content_position": {
"h": 123,
"r": 123,
"w": 123,
"x": 123,
"y": 123
},
"disable_shape": true,
"object_fit": "<string>",
"radius": 123,
"type": "<string>"
},
"subtitle": {
"font_family": {
"name": "<string>",
"url": "<string>"
},
"html": "<string>",
"line_size": 123,
"mss": 123,
"prop": {},
"text": "<string>",
"tts_info_index": 123,
"word_seq": [
{
"break": "<string>",
"end": 123,
"hide": true,
"key": "<string>",
"start": 123,
"text": "<string>"
}
]
},
"template_meta": {
"is_goods_media": true,
"is_logo": true,
"no_need_replace": true
},
"timeline": {
"cross": {
"in": [
"<string>"
],
"in_time": 123,
"out": [
"<string>"
],
"out_time": 123
},
"end": 123,
"key_frames": [
{
"func": "<string>",
"properties": {
"alpha": 123,
"h": 123,
"r": 123,
"scale": 123,
"w": 123,
"x": 123,
"y": 123
},
"timestamp": 123
}
],
"start": 123
},
"top_level_key": "<string>",
"tts_audio_url": "<string>",
"type": "<string>",
"volume": 123,
"w": 123,
"x": 123,
"y": 123
}
],
"type": "<string>"
}
],
"transition": {
"type": "<string>"
},
"tts_args": {
"locale": "<string>",
"style": "<string>"
},
"tts_axis": [
{
"duration": 123,
"endTime": 123,
"startTime": 123,
"text": "<string>",
"wordLen": 123
}
],
"tts_payment_id": "<string>",
"tts_voice_id": "<string>"
}
],
"subtitle_version": 123,
"t_id": 123,
"total_duration": 123,
"tracks": [
{
"index": 123,
"key": "<string>",
"layers": [
{
"alpha": 123,
"api_template_meta": {
"replace_key": "<string>"
},
"color": "<string>",
"crop": {
"h": 123,
"w": 123,
"x": 123,
"y": 123
},
"fit_mode": "<string>",
"flip": "<string>",
"gauss": 123,
"h": 123,
"key": "<string>",
"mode": "<string>",
"moving_camera": {
"type": "<string>"
},
"path": "<string>",
"person_cover": "<string>",
"person_preview_url": "<string>",
"preview_path": "<string>",
"prop": {
"animationInfo": {
"cycle": {
"duration": 123,
"effectType": "<string>"
},
"enter": {
"duration": 123,
"effectType": "<string>"
},
"leave": {
"duration": 123,
"effectType": "<string>"
}
},
"audioPath": "<string>",
"bg_transparent": true,
"clip": {
"end": 123,
"start": 123
},
"emotion": {
"cover": "<string>",
"id": 123,
"name": "<string>",
"preview_transparent_video": "<string>",
"preview_video": "<string>"
},
"meta": {
"cover": "<string>",
"id": 123,
"name": "<string>",
"origin_height": 123,
"origin_width": 123,
"person_source": 123,
"playback_type": "<string>",
"preview_transparent_video": "<string>",
"preview_video": "<string>",
"show_type_preset": {
"all": {
"shape": {
"color": "<string>",
"h": 123,
"r": 123,
"type": "<string>",
"w": 123,
"x": 123,
"y": 123
},
"size": {
"h": 123,
"w": 123
}
},
"circle": {
"shape": {
"color": "<string>",
"h": 123,
"r": 123,
"type": "<string>",
"w": 123,
"x": 123,
"y": 123
},
"size": {
"h": 123,
"w": 123
}
}
},
"sub_type": "<string>",
"tts_url": "<string>",
"type": "<string>"
},
"play_mode": "<string>",
"renderScale": 123,
"shapeInfo": {
"color": "<string>",
"html": "<string>",
"strokeColor": "<string>",
"strokeType": "<string>",
"strokeWidth": 123,
"type": "<string>"
},
"show_type": "<string>",
"templateInfo": {},
"textConfig": {
"align": "<string>",
"background": {},
"color": "<string>",
"fontFamily": {},
"fontSize": 123,
"fontStyle": {},
"padding": {},
"shadow": {},
"stroke": {},
"textDecoration": "<string>",
"verticalAlign": "<string>"
},
"textInfo": {
"backgroundColor": "<string>",
"color": "<string>",
"content": "<string>",
"fontFamily": "<string>",
"fontFamilyID": "<string>",
"fontFileName": "<string>",
"fontSize": 123,
"fontStyle": "<string>",
"fontWeight": "<string>",
"paddingBottom": 123,
"paddingLeft": 123,
"paddingRight": 123,
"paddingTop": 123,
"radius": 123,
"strokeColor": "<string>",
"strokeWidth": 123,
"textAlign": "<string>",
"textDecoration": "<string>",
"textOrientation": "<string>",
"textShadowBlur": 123,
"textShadowColor": "<string>",
"textShadowH": 123,
"textShadowV": 123,
"writingMode": "<string>"
},
"waveformConfig": {},
"word_seq": [
{
"break": "<string>",
"end": 123,
"hide": true,
"key": "<string>",
"start": 123,
"text": "<string>"
}
]
},
"r": 123,
"radius": "<string>",
"shape": {
"background_gauss": 123,
"color": "<string>",
"content_position": {
"h": 123,
"r": 123,
"w": 123,
"x": 123,
"y": 123
},
"disable_shape": true,
"object_fit": "<string>",
"radius": 123,
"type": "<string>"
},
"subtitle": {
"font_family": {
"name": "<string>",
"url": "<string>"
},
"html": "<string>",
"line_size": 123,
"mss": 123,
"prop": {},
"text": "<string>",
"tts_info_index": 123,
"word_seq": [
{
"break": "<string>",
"end": 123,
"hide": true,
"key": "<string>",
"start": 123,
"text": "<string>"
}
]
},
"template_meta": {
"is_goods_media": true,
"is_logo": true,
"no_need_replace": true
},
"timeline": {
"cross": {
"in": [
"<string>"
],
"in_time": 123,
"out": [
"<string>"
],
"out_time": 123
},
"end": 123,
"key_frames": [
{
"func": "<string>",
"properties": {
"alpha": 123,
"h": 123,
"r": 123,
"scale": 123,
"w": 123,
"x": 123,
"y": 123
},
"timestamp": 123
}
],
"start": 123
},
"top_level_key": "<string>",
"tts_audio_url": "<string>",
"type": "<string>",
"volume": 123,
"w": 123,
"x": 123,
"y": 123
}
],
"type": "<string>"
}
],
"tts_args": {
"locale": "<string>",
"style": "<string>"
},
"tts_voice_id": "<string>",
"used_bg_transparent": true,
"version": "<string>",
"w": 123
}
}
],
"afterTTS": true,
"createFrom": 123,
"is_draft_render": true
}
'import requests
url = "https://api-services.podcastor.ai/open/podcast/v1/render"
payload = {
"tasks": [
{
"project_id": "<string>",
"index": 123,
"workspace": "<string>",
"workspace_obj": {
"aspect_ratio": 123,
"condition": "<string>",
"ext": "<string>",
"flags": {
"emotions": True,
"podcast": True,
"ppt2video": True,
"uhd": True
},
"h": 123,
"has_edit_media": True,
"keying_enable": 123,
"music_id": 123,
"name": "<string>",
"person_id": 123,
"person_source": 123,
"preview_cover_time": 123,
"preview_cover_url": "<string>",
"render_subtitle": True,
"scenes": [
{
"audio_script": {
"duration": 123,
"id": 123,
"name": "<string>",
"type": 123,
"url": "<string>"
},
"bg_color": "<string>",
"duration": 123,
"emotion_description": "<string>",
"key": "<string>",
"new_duration": 123,
"placeholder_script": { "duration": 123 },
"script": "<string>",
"script_config": {
"emotion": "<string>",
"model_id": "<string>",
"pitch": 123,
"similarity": 123,
"speaker_boost": True,
"stability": 123,
"style_exaggeration": 123,
"tts_speed": 123,
"volume": 123
},
"script_type": "<string>",
"speak_person": {
"id": 123,
"person_source": 123
},
"speaker_order": 123,
"subtitle_info": [
{
"end_time": 123,
"start_time": 123,
"text": "<string>"
}
],
"tracks": [
{
"index": 123,
"key": "<string>",
"layers": [
{
"alpha": 123,
"api_template_meta": { "replace_key": "<string>" },
"color": "<string>",
"crop": {
"h": 123,
"w": 123,
"x": 123,
"y": 123
},
"fit_mode": "<string>",
"flip": "<string>",
"gauss": 123,
"h": 123,
"key": "<string>",
"mode": "<string>",
"moving_camera": { "type": "<string>" },
"path": "<string>",
"person_cover": "<string>",
"person_preview_url": "<string>",
"preview_path": "<string>",
"prop": {
"animationInfo": {
"cycle": {
"duration": 123,
"effectType": "<string>"
},
"enter": {
"duration": 123,
"effectType": "<string>"
},
"leave": {
"duration": 123,
"effectType": "<string>"
}
},
"audioPath": "<string>",
"bg_transparent": True,
"clip": {
"end": 123,
"start": 123
},
"emotion": {
"cover": "<string>",
"id": 123,
"name": "<string>",
"preview_transparent_video": "<string>",
"preview_video": "<string>"
},
"meta": {
"cover": "<string>",
"id": 123,
"name": "<string>",
"origin_height": 123,
"origin_width": 123,
"person_source": 123,
"playback_type": "<string>",
"preview_transparent_video": "<string>",
"preview_video": "<string>",
"show_type_preset": {
"all": {
"shape": {
"color": "<string>",
"h": 123,
"r": 123,
"type": "<string>",
"w": 123,
"x": 123,
"y": 123
},
"size": {
"h": 123,
"w": 123
}
},
"circle": {
"shape": {
"color": "<string>",
"h": 123,
"r": 123,
"type": "<string>",
"w": 123,
"x": 123,
"y": 123
},
"size": {
"h": 123,
"w": 123
}
}
},
"sub_type": "<string>",
"tts_url": "<string>",
"type": "<string>"
},
"play_mode": "<string>",
"renderScale": 123,
"shapeInfo": {
"color": "<string>",
"html": "<string>",
"strokeColor": "<string>",
"strokeType": "<string>",
"strokeWidth": 123,
"type": "<string>"
},
"show_type": "<string>",
"templateInfo": {},
"textConfig": {
"align": "<string>",
"background": {},
"color": "<string>",
"fontFamily": {},
"fontSize": 123,
"fontStyle": {},
"padding": {},
"shadow": {},
"stroke": {},
"textDecoration": "<string>",
"verticalAlign": "<string>"
},
"textInfo": {
"backgroundColor": "<string>",
"color": "<string>",
"content": "<string>",
"fontFamily": "<string>",
"fontFamilyID": "<string>",
"fontFileName": "<string>",
"fontSize": 123,
"fontStyle": "<string>",
"fontWeight": "<string>",
"paddingBottom": 123,
"paddingLeft": 123,
"paddingRight": 123,
"paddingTop": 123,
"radius": 123,
"strokeColor": "<string>",
"strokeWidth": 123,
"textAlign": "<string>",
"textDecoration": "<string>",
"textOrientation": "<string>",
"textShadowBlur": 123,
"textShadowColor": "<string>",
"textShadowH": 123,
"textShadowV": 123,
"writingMode": "<string>"
},
"waveformConfig": {},
"word_seq": [
{
"break": "<string>",
"end": 123,
"hide": True,
"key": "<string>",
"start": 123,
"text": "<string>"
}
]
},
"r": 123,
"radius": "<string>",
"shape": {
"background_gauss": 123,
"color": "<string>",
"content_position": {
"h": 123,
"r": 123,
"w": 123,
"x": 123,
"y": 123
},
"disable_shape": True,
"object_fit": "<string>",
"radius": 123,
"type": "<string>"
},
"subtitle": {
"font_family": {
"name": "<string>",
"url": "<string>"
},
"html": "<string>",
"line_size": 123,
"mss": 123,
"prop": {},
"text": "<string>",
"tts_info_index": 123,
"word_seq": [
{
"break": "<string>",
"end": 123,
"hide": True,
"key": "<string>",
"start": 123,
"text": "<string>"
}
]
},
"template_meta": {
"is_goods_media": True,
"is_logo": True,
"no_need_replace": True
},
"timeline": {
"cross": {
"in": ["<string>"],
"in_time": 123,
"out": ["<string>"],
"out_time": 123
},
"end": 123,
"key_frames": [
{
"func": "<string>",
"properties": {
"alpha": 123,
"h": 123,
"r": 123,
"scale": 123,
"w": 123,
"x": 123,
"y": 123
},
"timestamp": 123
}
],
"start": 123
},
"top_level_key": "<string>",
"tts_audio_url": "<string>",
"type": "<string>",
"volume": 123,
"w": 123,
"x": 123,
"y": 123
}
],
"type": "<string>"
}
],
"transition": { "type": "<string>" },
"tts_args": {
"locale": "<string>",
"style": "<string>"
},
"tts_axis": [
{
"duration": 123,
"endTime": 123,
"startTime": 123,
"text": "<string>",
"wordLen": 123
}
],
"tts_payment_id": "<string>",
"tts_voice_id": "<string>"
}
],
"subtitle_version": 123,
"t_id": 123,
"total_duration": 123,
"tracks": [
{
"index": 123,
"key": "<string>",
"layers": [
{
"alpha": 123,
"api_template_meta": { "replace_key": "<string>" },
"color": "<string>",
"crop": {
"h": 123,
"w": 123,
"x": 123,
"y": 123
},
"fit_mode": "<string>",
"flip": "<string>",
"gauss": 123,
"h": 123,
"key": "<string>",
"mode": "<string>",
"moving_camera": { "type": "<string>" },
"path": "<string>",
"person_cover": "<string>",
"person_preview_url": "<string>",
"preview_path": "<string>",
"prop": {
"animationInfo": {
"cycle": {
"duration": 123,
"effectType": "<string>"
},
"enter": {
"duration": 123,
"effectType": "<string>"
},
"leave": {
"duration": 123,
"effectType": "<string>"
}
},
"audioPath": "<string>",
"bg_transparent": True,
"clip": {
"end": 123,
"start": 123
},
"emotion": {
"cover": "<string>",
"id": 123,
"name": "<string>",
"preview_transparent_video": "<string>",
"preview_video": "<string>"
},
"meta": {
"cover": "<string>",
"id": 123,
"name": "<string>",
"origin_height": 123,
"origin_width": 123,
"person_source": 123,
"playback_type": "<string>",
"preview_transparent_video": "<string>",
"preview_video": "<string>",
"show_type_preset": {
"all": {
"shape": {
"color": "<string>",
"h": 123,
"r": 123,
"type": "<string>",
"w": 123,
"x": 123,
"y": 123
},
"size": {
"h": 123,
"w": 123
}
},
"circle": {
"shape": {
"color": "<string>",
"h": 123,
"r": 123,
"type": "<string>",
"w": 123,
"x": 123,
"y": 123
},
"size": {
"h": 123,
"w": 123
}
}
},
"sub_type": "<string>",
"tts_url": "<string>",
"type": "<string>"
},
"play_mode": "<string>",
"renderScale": 123,
"shapeInfo": {
"color": "<string>",
"html": "<string>",
"strokeColor": "<string>",
"strokeType": "<string>",
"strokeWidth": 123,
"type": "<string>"
},
"show_type": "<string>",
"templateInfo": {},
"textConfig": {
"align": "<string>",
"background": {},
"color": "<string>",
"fontFamily": {},
"fontSize": 123,
"fontStyle": {},
"padding": {},
"shadow": {},
"stroke": {},
"textDecoration": "<string>",
"verticalAlign": "<string>"
},
"textInfo": {
"backgroundColor": "<string>",
"color": "<string>",
"content": "<string>",
"fontFamily": "<string>",
"fontFamilyID": "<string>",
"fontFileName": "<string>",
"fontSize": 123,
"fontStyle": "<string>",
"fontWeight": "<string>",
"paddingBottom": 123,
"paddingLeft": 123,
"paddingRight": 123,
"paddingTop": 123,
"radius": 123,
"strokeColor": "<string>",
"strokeWidth": 123,
"textAlign": "<string>",
"textDecoration": "<string>",
"textOrientation": "<string>",
"textShadowBlur": 123,
"textShadowColor": "<string>",
"textShadowH": 123,
"textShadowV": 123,
"writingMode": "<string>"
},
"waveformConfig": {},
"word_seq": [
{
"break": "<string>",
"end": 123,
"hide": True,
"key": "<string>",
"start": 123,
"text": "<string>"
}
]
},
"r": 123,
"radius": "<string>",
"shape": {
"background_gauss": 123,
"color": "<string>",
"content_position": {
"h": 123,
"r": 123,
"w": 123,
"x": 123,
"y": 123
},
"disable_shape": True,
"object_fit": "<string>",
"radius": 123,
"type": "<string>"
},
"subtitle": {
"font_family": {
"name": "<string>",
"url": "<string>"
},
"html": "<string>",
"line_size": 123,
"mss": 123,
"prop": {},
"text": "<string>",
"tts_info_index": 123,
"word_seq": [
{
"break": "<string>",
"end": 123,
"hide": True,
"key": "<string>",
"start": 123,
"text": "<string>"
}
]
},
"template_meta": {
"is_goods_media": True,
"is_logo": True,
"no_need_replace": True
},
"timeline": {
"cross": {
"in": ["<string>"],
"in_time": 123,
"out": ["<string>"],
"out_time": 123
},
"end": 123,
"key_frames": [
{
"func": "<string>",
"properties": {
"alpha": 123,
"h": 123,
"r": 123,
"scale": 123,
"w": 123,
"x": 123,
"y": 123
},
"timestamp": 123
}
],
"start": 123
},
"top_level_key": "<string>",
"tts_audio_url": "<string>",
"type": "<string>",
"volume": 123,
"w": 123,
"x": 123,
"y": 123
}
],
"type": "<string>"
}
],
"tts_args": {
"locale": "<string>",
"style": "<string>"
},
"tts_voice_id": "<string>",
"used_bg_transparent": True,
"version": "<string>",
"w": 123
}
}
],
"afterTTS": True,
"createFrom": 123,
"is_draft_render": True
}
headers = {
"X-Api-Key": "<api-key>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {'X-Api-Key': '<api-key>', 'Content-Type': 'application/json'},
body: JSON.stringify({
tasks: [
{
project_id: '<string>',
index: 123,
workspace: '<string>',
workspace_obj: {
aspect_ratio: 123,
condition: '<string>',
ext: '<string>',
flags: {emotions: true, podcast: true, ppt2video: true, uhd: true},
h: 123,
has_edit_media: true,
keying_enable: 123,
music_id: 123,
name: '<string>',
person_id: 123,
person_source: 123,
preview_cover_time: 123,
preview_cover_url: '<string>',
render_subtitle: true,
scenes: [
{
audio_script: {duration: 123, id: 123, name: '<string>', type: 123, url: '<string>'},
bg_color: '<string>',
duration: 123,
emotion_description: '<string>',
key: '<string>',
new_duration: 123,
placeholder_script: {duration: 123},
script: '<string>',
script_config: {
emotion: '<string>',
model_id: '<string>',
pitch: 123,
similarity: 123,
speaker_boost: true,
stability: 123,
style_exaggeration: 123,
tts_speed: 123,
volume: 123
},
script_type: '<string>',
speak_person: {id: 123, person_source: 123},
speaker_order: 123,
subtitle_info: [{end_time: 123, start_time: 123, text: '<string>'}],
tracks: [
{
index: 123,
key: '<string>',
layers: [
{
alpha: 123,
api_template_meta: {replace_key: '<string>'},
color: '<string>',
crop: {h: 123, w: 123, x: 123, y: 123},
fit_mode: '<string>',
flip: '<string>',
gauss: 123,
h: 123,
key: '<string>',
mode: '<string>',
moving_camera: {type: '<string>'},
path: '<string>',
person_cover: '<string>',
person_preview_url: '<string>',
preview_path: '<string>',
prop: {
animationInfo: {
cycle: {duration: 123, effectType: '<string>'},
enter: {duration: 123, effectType: '<string>'},
leave: {duration: 123, effectType: '<string>'}
},
audioPath: '<string>',
bg_transparent: true,
clip: {end: 123, start: 123},
emotion: {
cover: '<string>',
id: 123,
name: '<string>',
preview_transparent_video: '<string>',
preview_video: '<string>'
},
meta: {
cover: '<string>',
id: 123,
name: '<string>',
origin_height: 123,
origin_width: 123,
person_source: 123,
playback_type: '<string>',
preview_transparent_video: '<string>',
preview_video: '<string>',
show_type_preset: {
all: {
shape: {color: '<string>', h: 123, r: 123, type: '<string>', w: 123, x: 123, y: 123},
size: {h: 123, w: 123}
},
circle: {
shape: {color: '<string>', h: 123, r: 123, type: '<string>', w: 123, x: 123, y: 123},
size: {h: 123, w: 123}
}
},
sub_type: '<string>',
tts_url: '<string>',
type: '<string>'
},
play_mode: '<string>',
renderScale: 123,
shapeInfo: {
color: '<string>',
html: '<string>',
strokeColor: '<string>',
strokeType: '<string>',
strokeWidth: 123,
type: '<string>'
},
show_type: '<string>',
templateInfo: {},
textConfig: {
align: '<string>',
background: {},
color: '<string>',
fontFamily: {},
fontSize: 123,
fontStyle: {},
padding: {},
shadow: {},
stroke: {},
textDecoration: '<string>',
verticalAlign: '<string>'
},
textInfo: {
backgroundColor: '<string>',
color: '<string>',
content: '<string>',
fontFamily: '<string>',
fontFamilyID: '<string>',
fontFileName: '<string>',
fontSize: 123,
fontStyle: '<string>',
fontWeight: '<string>',
paddingBottom: 123,
paddingLeft: 123,
paddingRight: 123,
paddingTop: 123,
radius: 123,
strokeColor: '<string>',
strokeWidth: 123,
textAlign: '<string>',
textDecoration: '<string>',
textOrientation: '<string>',
textShadowBlur: 123,
textShadowColor: '<string>',
textShadowH: 123,
textShadowV: 123,
writingMode: '<string>'
},
waveformConfig: {},
word_seq: [
{
break: '<string>',
end: 123,
hide: true,
key: '<string>',
start: 123,
text: '<string>'
}
]
},
r: 123,
radius: '<string>',
shape: {
background_gauss: 123,
color: '<string>',
content_position: {h: 123, r: 123, w: 123, x: 123, y: 123},
disable_shape: true,
object_fit: '<string>',
radius: 123,
type: '<string>'
},
subtitle: {
font_family: {name: '<string>', url: '<string>'},
html: '<string>',
line_size: 123,
mss: 123,
prop: {},
text: '<string>',
tts_info_index: 123,
word_seq: [
{
break: '<string>',
end: 123,
hide: true,
key: '<string>',
start: 123,
text: '<string>'
}
]
},
template_meta: {is_goods_media: true, is_logo: true, no_need_replace: true},
timeline: {
cross: {in: ['<string>'], in_time: 123, out: ['<string>'], out_time: 123},
end: 123,
key_frames: [
{
func: '<string>',
properties: {alpha: 123, h: 123, r: 123, scale: 123, w: 123, x: 123, y: 123},
timestamp: 123
}
],
start: 123
},
top_level_key: '<string>',
tts_audio_url: '<string>',
type: '<string>',
volume: 123,
w: 123,
x: 123,
y: 123
}
],
type: '<string>'
}
],
transition: {type: '<string>'},
tts_args: {locale: '<string>', style: '<string>'},
tts_axis: [{duration: 123, endTime: 123, startTime: 123, text: '<string>', wordLen: 123}],
tts_payment_id: '<string>',
tts_voice_id: '<string>'
}
],
subtitle_version: 123,
t_id: 123,
total_duration: 123,
tracks: [
{
index: 123,
key: '<string>',
layers: [
{
alpha: 123,
api_template_meta: {replace_key: '<string>'},
color: '<string>',
crop: {h: 123, w: 123, x: 123, y: 123},
fit_mode: '<string>',
flip: '<string>',
gauss: 123,
h: 123,
key: '<string>',
mode: '<string>',
moving_camera: {type: '<string>'},
path: '<string>',
person_cover: '<string>',
person_preview_url: '<string>',
preview_path: '<string>',
prop: {
animationInfo: {
cycle: {duration: 123, effectType: '<string>'},
enter: {duration: 123, effectType: '<string>'},
leave: {duration: 123, effectType: '<string>'}
},
audioPath: '<string>',
bg_transparent: true,
clip: {end: 123, start: 123},
emotion: {
cover: '<string>',
id: 123,
name: '<string>',
preview_transparent_video: '<string>',
preview_video: '<string>'
},
meta: {
cover: '<string>',
id: 123,
name: '<string>',
origin_height: 123,
origin_width: 123,
person_source: 123,
playback_type: '<string>',
preview_transparent_video: '<string>',
preview_video: '<string>',
show_type_preset: {
all: {
shape: {color: '<string>', h: 123, r: 123, type: '<string>', w: 123, x: 123, y: 123},
size: {h: 123, w: 123}
},
circle: {
shape: {color: '<string>', h: 123, r: 123, type: '<string>', w: 123, x: 123, y: 123},
size: {h: 123, w: 123}
}
},
sub_type: '<string>',
tts_url: '<string>',
type: '<string>'
},
play_mode: '<string>',
renderScale: 123,
shapeInfo: {
color: '<string>',
html: '<string>',
strokeColor: '<string>',
strokeType: '<string>',
strokeWidth: 123,
type: '<string>'
},
show_type: '<string>',
templateInfo: {},
textConfig: {
align: '<string>',
background: {},
color: '<string>',
fontFamily: {},
fontSize: 123,
fontStyle: {},
padding: {},
shadow: {},
stroke: {},
textDecoration: '<string>',
verticalAlign: '<string>'
},
textInfo: {
backgroundColor: '<string>',
color: '<string>',
content: '<string>',
fontFamily: '<string>',
fontFamilyID: '<string>',
fontFileName: '<string>',
fontSize: 123,
fontStyle: '<string>',
fontWeight: '<string>',
paddingBottom: 123,
paddingLeft: 123,
paddingRight: 123,
paddingTop: 123,
radius: 123,
strokeColor: '<string>',
strokeWidth: 123,
textAlign: '<string>',
textDecoration: '<string>',
textOrientation: '<string>',
textShadowBlur: 123,
textShadowColor: '<string>',
textShadowH: 123,
textShadowV: 123,
writingMode: '<string>'
},
waveformConfig: {},
word_seq: [
{
break: '<string>',
end: 123,
hide: true,
key: '<string>',
start: 123,
text: '<string>'
}
]
},
r: 123,
radius: '<string>',
shape: {
background_gauss: 123,
color: '<string>',
content_position: {h: 123, r: 123, w: 123, x: 123, y: 123},
disable_shape: true,
object_fit: '<string>',
radius: 123,
type: '<string>'
},
subtitle: {
font_family: {name: '<string>', url: '<string>'},
html: '<string>',
line_size: 123,
mss: 123,
prop: {},
text: '<string>',
tts_info_index: 123,
word_seq: [
{
break: '<string>',
end: 123,
hide: true,
key: '<string>',
start: 123,
text: '<string>'
}
]
},
template_meta: {is_goods_media: true, is_logo: true, no_need_replace: true},
timeline: {
cross: {in: ['<string>'], in_time: 123, out: ['<string>'], out_time: 123},
end: 123,
key_frames: [
{
func: '<string>',
properties: {alpha: 123, h: 123, r: 123, scale: 123, w: 123, x: 123, y: 123},
timestamp: 123
}
],
start: 123
},
top_level_key: '<string>',
tts_audio_url: '<string>',
type: '<string>',
volume: 123,
w: 123,
x: 123,
y: 123
}
],
type: '<string>'
}
],
tts_args: {locale: '<string>', style: '<string>'},
tts_voice_id: '<string>',
used_bg_transparent: true,
version: '<string>',
w: 123
}
}
],
afterTTS: true,
createFrom: 123,
is_draft_render: true
})
};
fetch('https://api-services.podcastor.ai/open/podcast/v1/render', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api-services.podcastor.ai/open/podcast/v1/render",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => json_encode([
'tasks' => [
[
'project_id' => '<string>',
'index' => 123,
'workspace' => '<string>',
'workspace_obj' => [
'aspect_ratio' => 123,
'condition' => '<string>',
'ext' => '<string>',
'flags' => [
'emotions' => true,
'podcast' => true,
'ppt2video' => true,
'uhd' => true
],
'h' => 123,
'has_edit_media' => true,
'keying_enable' => 123,
'music_id' => 123,
'name' => '<string>',
'person_id' => 123,
'person_source' => 123,
'preview_cover_time' => 123,
'preview_cover_url' => '<string>',
'render_subtitle' => true,
'scenes' => [
[
'audio_script' => [
'duration' => 123,
'id' => 123,
'name' => '<string>',
'type' => 123,
'url' => '<string>'
],
'bg_color' => '<string>',
'duration' => 123,
'emotion_description' => '<string>',
'key' => '<string>',
'new_duration' => 123,
'placeholder_script' => [
'duration' => 123
],
'script' => '<string>',
'script_config' => [
'emotion' => '<string>',
'model_id' => '<string>',
'pitch' => 123,
'similarity' => 123,
'speaker_boost' => true,
'stability' => 123,
'style_exaggeration' => 123,
'tts_speed' => 123,
'volume' => 123
],
'script_type' => '<string>',
'speak_person' => [
'id' => 123,
'person_source' => 123
],
'speaker_order' => 123,
'subtitle_info' => [
[
'end_time' => 123,
'start_time' => 123,
'text' => '<string>'
]
],
'tracks' => [
[
'index' => 123,
'key' => '<string>',
'layers' => [
[
'alpha' => 123,
'api_template_meta' => [
'replace_key' => '<string>'
],
'color' => '<string>',
'crop' => [
'h' => 123,
'w' => 123,
'x' => 123,
'y' => 123
],
'fit_mode' => '<string>',
'flip' => '<string>',
'gauss' => 123,
'h' => 123,
'key' => '<string>',
'mode' => '<string>',
'moving_camera' => [
'type' => '<string>'
],
'path' => '<string>',
'person_cover' => '<string>',
'person_preview_url' => '<string>',
'preview_path' => '<string>',
'prop' => [
'animationInfo' => [
'cycle' => [
'duration' => 123,
'effectType' => '<string>'
],
'enter' => [
'duration' => 123,
'effectType' => '<string>'
],
'leave' => [
'duration' => 123,
'effectType' => '<string>'
]
],
'audioPath' => '<string>',
'bg_transparent' => true,
'clip' => [
'end' => 123,
'start' => 123
],
'emotion' => [
'cover' => '<string>',
'id' => 123,
'name' => '<string>',
'preview_transparent_video' => '<string>',
'preview_video' => '<string>'
],
'meta' => [
'cover' => '<string>',
'id' => 123,
'name' => '<string>',
'origin_height' => 123,
'origin_width' => 123,
'person_source' => 123,
'playback_type' => '<string>',
'preview_transparent_video' => '<string>',
'preview_video' => '<string>',
'show_type_preset' => [
'all' => [
'shape' => [
'color' => '<string>',
'h' => 123,
'r' => 123,
'type' => '<string>',
'w' => 123,
'x' => 123,
'y' => 123
],
'size' => [
'h' => 123,
'w' => 123
]
],
'circle' => [
'shape' => [
'color' => '<string>',
'h' => 123,
'r' => 123,
'type' => '<string>',
'w' => 123,
'x' => 123,
'y' => 123
],
'size' => [
'h' => 123,
'w' => 123
]
]
],
'sub_type' => '<string>',
'tts_url' => '<string>',
'type' => '<string>'
],
'play_mode' => '<string>',
'renderScale' => 123,
'shapeInfo' => [
'color' => '<string>',
'html' => '<string>',
'strokeColor' => '<string>',
'strokeType' => '<string>',
'strokeWidth' => 123,
'type' => '<string>'
],
'show_type' => '<string>',
'templateInfo' => [
],
'textConfig' => [
'align' => '<string>',
'background' => [
],
'color' => '<string>',
'fontFamily' => [
],
'fontSize' => 123,
'fontStyle' => [
],
'padding' => [
],
'shadow' => [
],
'stroke' => [
],
'textDecoration' => '<string>',
'verticalAlign' => '<string>'
],
'textInfo' => [
'backgroundColor' => '<string>',
'color' => '<string>',
'content' => '<string>',
'fontFamily' => '<string>',
'fontFamilyID' => '<string>',
'fontFileName' => '<string>',
'fontSize' => 123,
'fontStyle' => '<string>',
'fontWeight' => '<string>',
'paddingBottom' => 123,
'paddingLeft' => 123,
'paddingRight' => 123,
'paddingTop' => 123,
'radius' => 123,
'strokeColor' => '<string>',
'strokeWidth' => 123,
'textAlign' => '<string>',
'textDecoration' => '<string>',
'textOrientation' => '<string>',
'textShadowBlur' => 123,
'textShadowColor' => '<string>',
'textShadowH' => 123,
'textShadowV' => 123,
'writingMode' => '<string>'
],
'waveformConfig' => [
],
'word_seq' => [
[
'break' => '<string>',
'end' => 123,
'hide' => true,
'key' => '<string>',
'start' => 123,
'text' => '<string>'
]
]
],
'r' => 123,
'radius' => '<string>',
'shape' => [
'background_gauss' => 123,
'color' => '<string>',
'content_position' => [
'h' => 123,
'r' => 123,
'w' => 123,
'x' => 123,
'y' => 123
],
'disable_shape' => true,
'object_fit' => '<string>',
'radius' => 123,
'type' => '<string>'
],
'subtitle' => [
'font_family' => [
'name' => '<string>',
'url' => '<string>'
],
'html' => '<string>',
'line_size' => 123,
'mss' => 123,
'prop' => [
],
'text' => '<string>',
'tts_info_index' => 123,
'word_seq' => [
[
'break' => '<string>',
'end' => 123,
'hide' => true,
'key' => '<string>',
'start' => 123,
'text' => '<string>'
]
]
],
'template_meta' => [
'is_goods_media' => true,
'is_logo' => true,
'no_need_replace' => true
],
'timeline' => [
'cross' => [
'in' => [
'<string>'
],
'in_time' => 123,
'out' => [
'<string>'
],
'out_time' => 123
],
'end' => 123,
'key_frames' => [
[
'func' => '<string>',
'properties' => [
'alpha' => 123,
'h' => 123,
'r' => 123,
'scale' => 123,
'w' => 123,
'x' => 123,
'y' => 123
],
'timestamp' => 123
]
],
'start' => 123
],
'top_level_key' => '<string>',
'tts_audio_url' => '<string>',
'type' => '<string>',
'volume' => 123,
'w' => 123,
'x' => 123,
'y' => 123
]
],
'type' => '<string>'
]
],
'transition' => [
'type' => '<string>'
],
'tts_args' => [
'locale' => '<string>',
'style' => '<string>'
],
'tts_axis' => [
[
'duration' => 123,
'endTime' => 123,
'startTime' => 123,
'text' => '<string>',
'wordLen' => 123
]
],
'tts_payment_id' => '<string>',
'tts_voice_id' => '<string>'
]
],
'subtitle_version' => 123,
't_id' => 123,
'total_duration' => 123,
'tracks' => [
[
'index' => 123,
'key' => '<string>',
'layers' => [
[
'alpha' => 123,
'api_template_meta' => [
'replace_key' => '<string>'
],
'color' => '<string>',
'crop' => [
'h' => 123,
'w' => 123,
'x' => 123,
'y' => 123
],
'fit_mode' => '<string>',
'flip' => '<string>',
'gauss' => 123,
'h' => 123,
'key' => '<string>',
'mode' => '<string>',
'moving_camera' => [
'type' => '<string>'
],
'path' => '<string>',
'person_cover' => '<string>',
'person_preview_url' => '<string>',
'preview_path' => '<string>',
'prop' => [
'animationInfo' => [
'cycle' => [
'duration' => 123,
'effectType' => '<string>'
],
'enter' => [
'duration' => 123,
'effectType' => '<string>'
],
'leave' => [
'duration' => 123,
'effectType' => '<string>'
]
],
'audioPath' => '<string>',
'bg_transparent' => true,
'clip' => [
'end' => 123,
'start' => 123
],
'emotion' => [
'cover' => '<string>',
'id' => 123,
'name' => '<string>',
'preview_transparent_video' => '<string>',
'preview_video' => '<string>'
],
'meta' => [
'cover' => '<string>',
'id' => 123,
'name' => '<string>',
'origin_height' => 123,
'origin_width' => 123,
'person_source' => 123,
'playback_type' => '<string>',
'preview_transparent_video' => '<string>',
'preview_video' => '<string>',
'show_type_preset' => [
'all' => [
'shape' => [
'color' => '<string>',
'h' => 123,
'r' => 123,
'type' => '<string>',
'w' => 123,
'x' => 123,
'y' => 123
],
'size' => [
'h' => 123,
'w' => 123
]
],
'circle' => [
'shape' => [
'color' => '<string>',
'h' => 123,
'r' => 123,
'type' => '<string>',
'w' => 123,
'x' => 123,
'y' => 123
],
'size' => [
'h' => 123,
'w' => 123
]
]
],
'sub_type' => '<string>',
'tts_url' => '<string>',
'type' => '<string>'
],
'play_mode' => '<string>',
'renderScale' => 123,
'shapeInfo' => [
'color' => '<string>',
'html' => '<string>',
'strokeColor' => '<string>',
'strokeType' => '<string>',
'strokeWidth' => 123,
'type' => '<string>'
],
'show_type' => '<string>',
'templateInfo' => [
],
'textConfig' => [
'align' => '<string>',
'background' => [
],
'color' => '<string>',
'fontFamily' => [
],
'fontSize' => 123,
'fontStyle' => [
],
'padding' => [
],
'shadow' => [
],
'stroke' => [
],
'textDecoration' => '<string>',
'verticalAlign' => '<string>'
],
'textInfo' => [
'backgroundColor' => '<string>',
'color' => '<string>',
'content' => '<string>',
'fontFamily' => '<string>',
'fontFamilyID' => '<string>',
'fontFileName' => '<string>',
'fontSize' => 123,
'fontStyle' => '<string>',
'fontWeight' => '<string>',
'paddingBottom' => 123,
'paddingLeft' => 123,
'paddingRight' => 123,
'paddingTop' => 123,
'radius' => 123,
'strokeColor' => '<string>',
'strokeWidth' => 123,
'textAlign' => '<string>',
'textDecoration' => '<string>',
'textOrientation' => '<string>',
'textShadowBlur' => 123,
'textShadowColor' => '<string>',
'textShadowH' => 123,
'textShadowV' => 123,
'writingMode' => '<string>'
],
'waveformConfig' => [
],
'word_seq' => [
[
'break' => '<string>',
'end' => 123,
'hide' => true,
'key' => '<string>',
'start' => 123,
'text' => '<string>'
]
]
],
'r' => 123,
'radius' => '<string>',
'shape' => [
'background_gauss' => 123,
'color' => '<string>',
'content_position' => [
'h' => 123,
'r' => 123,
'w' => 123,
'x' => 123,
'y' => 123
],
'disable_shape' => true,
'object_fit' => '<string>',
'radius' => 123,
'type' => '<string>'
],
'subtitle' => [
'font_family' => [
'name' => '<string>',
'url' => '<string>'
],
'html' => '<string>',
'line_size' => 123,
'mss' => 123,
'prop' => [
],
'text' => '<string>',
'tts_info_index' => 123,
'word_seq' => [
[
'break' => '<string>',
'end' => 123,
'hide' => true,
'key' => '<string>',
'start' => 123,
'text' => '<string>'
]
]
],
'template_meta' => [
'is_goods_media' => true,
'is_logo' => true,
'no_need_replace' => true
],
'timeline' => [
'cross' => [
'in' => [
'<string>'
],
'in_time' => 123,
'out' => [
'<string>'
],
'out_time' => 123
],
'end' => 123,
'key_frames' => [
[
'func' => '<string>',
'properties' => [
'alpha' => 123,
'h' => 123,
'r' => 123,
'scale' => 123,
'w' => 123,
'x' => 123,
'y' => 123
],
'timestamp' => 123
]
],
'start' => 123
],
'top_level_key' => '<string>',
'tts_audio_url' => '<string>',
'type' => '<string>',
'volume' => 123,
'w' => 123,
'x' => 123,
'y' => 123
]
],
'type' => '<string>'
]
],
'tts_args' => [
'locale' => '<string>',
'style' => '<string>'
],
'tts_voice_id' => '<string>',
'used_bg_transparent' => true,
'version' => '<string>',
'w' => 123
]
]
],
'afterTTS' => true,
'createFrom' => 123,
'is_draft_render' => true
]),
CURLOPT_HTTPHEADER => [
"Content-Type: application/json",
"X-Api-Key: <api-key>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://api-services.podcastor.ai/open/podcast/v1/render"
payload := strings.NewReader("{\n \"tasks\": [\n {\n \"project_id\": \"<string>\",\n \"index\": 123,\n \"workspace\": \"<string>\",\n \"workspace_obj\": {\n \"aspect_ratio\": 123,\n \"condition\": \"<string>\",\n \"ext\": \"<string>\",\n \"flags\": {\n \"emotions\": true,\n \"podcast\": true,\n \"ppt2video\": true,\n \"uhd\": true\n },\n \"h\": 123,\n \"has_edit_media\": true,\n \"keying_enable\": 123,\n \"music_id\": 123,\n \"name\": \"<string>\",\n \"person_id\": 123,\n \"person_source\": 123,\n \"preview_cover_time\": 123,\n \"preview_cover_url\": \"<string>\",\n \"render_subtitle\": true,\n \"scenes\": [\n {\n \"audio_script\": {\n \"duration\": 123,\n \"id\": 123,\n \"name\": \"<string>\",\n \"type\": 123,\n \"url\": \"<string>\"\n },\n \"bg_color\": \"<string>\",\n \"duration\": 123,\n \"emotion_description\": \"<string>\",\n \"key\": \"<string>\",\n \"new_duration\": 123,\n \"placeholder_script\": {\n \"duration\": 123\n },\n \"script\": \"<string>\",\n \"script_config\": {\n \"emotion\": \"<string>\",\n \"model_id\": \"<string>\",\n \"pitch\": 123,\n \"similarity\": 123,\n \"speaker_boost\": true,\n \"stability\": 123,\n \"style_exaggeration\": 123,\n \"tts_speed\": 123,\n \"volume\": 123\n },\n \"script_type\": \"<string>\",\n \"speak_person\": {\n \"id\": 123,\n \"person_source\": 123\n },\n \"speaker_order\": 123,\n \"subtitle_info\": [\n {\n \"end_time\": 123,\n \"start_time\": 123,\n \"text\": \"<string>\"\n }\n ],\n \"tracks\": [\n {\n \"index\": 123,\n \"key\": \"<string>\",\n \"layers\": [\n {\n \"alpha\": 123,\n \"api_template_meta\": {\n \"replace_key\": \"<string>\"\n },\n \"color\": \"<string>\",\n \"crop\": {\n \"h\": 123,\n \"w\": 123,\n \"x\": 123,\n \"y\": 123\n },\n \"fit_mode\": \"<string>\",\n \"flip\": \"<string>\",\n \"gauss\": 123,\n \"h\": 123,\n \"key\": \"<string>\",\n \"mode\": \"<string>\",\n \"moving_camera\": {\n \"type\": \"<string>\"\n },\n \"path\": \"<string>\",\n \"person_cover\": \"<string>\",\n \"person_preview_url\": \"<string>\",\n \"preview_path\": \"<string>\",\n \"prop\": {\n \"animationInfo\": {\n \"cycle\": {\n \"duration\": 123,\n \"effectType\": \"<string>\"\n },\n \"enter\": {\n \"duration\": 123,\n \"effectType\": \"<string>\"\n },\n \"leave\": {\n \"duration\": 123,\n \"effectType\": \"<string>\"\n }\n },\n \"audioPath\": \"<string>\",\n \"bg_transparent\": true,\n \"clip\": {\n \"end\": 123,\n \"start\": 123\n },\n \"emotion\": {\n \"cover\": \"<string>\",\n \"id\": 123,\n \"name\": \"<string>\",\n \"preview_transparent_video\": \"<string>\",\n \"preview_video\": \"<string>\"\n },\n \"meta\": {\n \"cover\": \"<string>\",\n \"id\": 123,\n \"name\": \"<string>\",\n \"origin_height\": 123,\n \"origin_width\": 123,\n \"person_source\": 123,\n \"playback_type\": \"<string>\",\n \"preview_transparent_video\": \"<string>\",\n \"preview_video\": \"<string>\",\n \"show_type_preset\": {\n \"all\": {\n \"shape\": {\n \"color\": \"<string>\",\n \"h\": 123,\n \"r\": 123,\n \"type\": \"<string>\",\n \"w\": 123,\n \"x\": 123,\n \"y\": 123\n },\n \"size\": {\n \"h\": 123,\n \"w\": 123\n }\n },\n \"circle\": {\n \"shape\": {\n \"color\": \"<string>\",\n \"h\": 123,\n \"r\": 123,\n \"type\": \"<string>\",\n \"w\": 123,\n \"x\": 123,\n \"y\": 123\n },\n \"size\": {\n \"h\": 123,\n \"w\": 123\n }\n }\n },\n \"sub_type\": \"<string>\",\n \"tts_url\": \"<string>\",\n \"type\": \"<string>\"\n },\n \"play_mode\": \"<string>\",\n \"renderScale\": 123,\n \"shapeInfo\": {\n \"color\": \"<string>\",\n \"html\": \"<string>\",\n \"strokeColor\": \"<string>\",\n \"strokeType\": \"<string>\",\n \"strokeWidth\": 123,\n \"type\": \"<string>\"\n },\n \"show_type\": \"<string>\",\n \"templateInfo\": {},\n \"textConfig\": {\n \"align\": \"<string>\",\n \"background\": {},\n \"color\": \"<string>\",\n \"fontFamily\": {},\n \"fontSize\": 123,\n \"fontStyle\": {},\n \"padding\": {},\n \"shadow\": {},\n \"stroke\": {},\n \"textDecoration\": \"<string>\",\n \"verticalAlign\": \"<string>\"\n },\n \"textInfo\": {\n \"backgroundColor\": \"<string>\",\n \"color\": \"<string>\",\n \"content\": \"<string>\",\n \"fontFamily\": \"<string>\",\n \"fontFamilyID\": \"<string>\",\n \"fontFileName\": \"<string>\",\n \"fontSize\": 123,\n \"fontStyle\": \"<string>\",\n \"fontWeight\": \"<string>\",\n \"paddingBottom\": 123,\n \"paddingLeft\": 123,\n \"paddingRight\": 123,\n \"paddingTop\": 123,\n \"radius\": 123,\n \"strokeColor\": \"<string>\",\n \"strokeWidth\": 123,\n \"textAlign\": \"<string>\",\n \"textDecoration\": \"<string>\",\n \"textOrientation\": \"<string>\",\n \"textShadowBlur\": 123,\n \"textShadowColor\": \"<string>\",\n \"textShadowH\": 123,\n \"textShadowV\": 123,\n \"writingMode\": \"<string>\"\n },\n \"waveformConfig\": {},\n \"word_seq\": [\n {\n \"break\": \"<string>\",\n \"end\": 123,\n \"hide\": true,\n \"key\": \"<string>\",\n \"start\": 123,\n \"text\": \"<string>\"\n }\n ]\n },\n \"r\": 123,\n \"radius\": \"<string>\",\n \"shape\": {\n \"background_gauss\": 123,\n \"color\": \"<string>\",\n \"content_position\": {\n \"h\": 123,\n \"r\": 123,\n \"w\": 123,\n \"x\": 123,\n \"y\": 123\n },\n \"disable_shape\": true,\n \"object_fit\": \"<string>\",\n \"radius\": 123,\n \"type\": \"<string>\"\n },\n \"subtitle\": {\n \"font_family\": {\n \"name\": \"<string>\",\n \"url\": \"<string>\"\n },\n \"html\": \"<string>\",\n \"line_size\": 123,\n \"mss\": 123,\n \"prop\": {},\n \"text\": \"<string>\",\n \"tts_info_index\": 123,\n \"word_seq\": [\n {\n \"break\": \"<string>\",\n \"end\": 123,\n \"hide\": true,\n \"key\": \"<string>\",\n \"start\": 123,\n \"text\": \"<string>\"\n }\n ]\n },\n \"template_meta\": {\n \"is_goods_media\": true,\n \"is_logo\": true,\n \"no_need_replace\": true\n },\n \"timeline\": {\n \"cross\": {\n \"in\": [\n \"<string>\"\n ],\n \"in_time\": 123,\n \"out\": [\n \"<string>\"\n ],\n \"out_time\": 123\n },\n \"end\": 123,\n \"key_frames\": [\n {\n \"func\": \"<string>\",\n \"properties\": {\n \"alpha\": 123,\n \"h\": 123,\n \"r\": 123,\n \"scale\": 123,\n \"w\": 123,\n \"x\": 123,\n \"y\": 123\n },\n \"timestamp\": 123\n }\n ],\n \"start\": 123\n },\n \"top_level_key\": \"<string>\",\n \"tts_audio_url\": \"<string>\",\n \"type\": \"<string>\",\n \"volume\": 123,\n \"w\": 123,\n \"x\": 123,\n \"y\": 123\n }\n ],\n \"type\": \"<string>\"\n }\n ],\n \"transition\": {\n \"type\": \"<string>\"\n },\n \"tts_args\": {\n \"locale\": \"<string>\",\n \"style\": \"<string>\"\n },\n \"tts_axis\": [\n {\n \"duration\": 123,\n \"endTime\": 123,\n \"startTime\": 123,\n \"text\": \"<string>\",\n \"wordLen\": 123\n }\n ],\n \"tts_payment_id\": \"<string>\",\n \"tts_voice_id\": \"<string>\"\n }\n ],\n \"subtitle_version\": 123,\n \"t_id\": 123,\n \"total_duration\": 123,\n \"tracks\": [\n {\n \"index\": 123,\n \"key\": \"<string>\",\n \"layers\": [\n {\n \"alpha\": 123,\n \"api_template_meta\": {\n \"replace_key\": \"<string>\"\n },\n \"color\": \"<string>\",\n \"crop\": {\n \"h\": 123,\n \"w\": 123,\n \"x\": 123,\n \"y\": 123\n },\n \"fit_mode\": \"<string>\",\n \"flip\": \"<string>\",\n \"gauss\": 123,\n \"h\": 123,\n \"key\": \"<string>\",\n \"mode\": \"<string>\",\n \"moving_camera\": {\n \"type\": \"<string>\"\n },\n \"path\": \"<string>\",\n \"person_cover\": \"<string>\",\n \"person_preview_url\": \"<string>\",\n \"preview_path\": \"<string>\",\n \"prop\": {\n \"animationInfo\": {\n \"cycle\": {\n \"duration\": 123,\n \"effectType\": \"<string>\"\n },\n \"enter\": {\n \"duration\": 123,\n \"effectType\": \"<string>\"\n },\n \"leave\": {\n \"duration\": 123,\n \"effectType\": \"<string>\"\n }\n },\n \"audioPath\": \"<string>\",\n \"bg_transparent\": true,\n \"clip\": {\n \"end\": 123,\n \"start\": 123\n },\n \"emotion\": {\n \"cover\": \"<string>\",\n \"id\": 123,\n \"name\": \"<string>\",\n \"preview_transparent_video\": \"<string>\",\n \"preview_video\": \"<string>\"\n },\n \"meta\": {\n \"cover\": \"<string>\",\n \"id\": 123,\n \"name\": \"<string>\",\n \"origin_height\": 123,\n \"origin_width\": 123,\n \"person_source\": 123,\n \"playback_type\": \"<string>\",\n \"preview_transparent_video\": \"<string>\",\n \"preview_video\": \"<string>\",\n \"show_type_preset\": {\n \"all\": {\n \"shape\": {\n \"color\": \"<string>\",\n \"h\": 123,\n \"r\": 123,\n \"type\": \"<string>\",\n \"w\": 123,\n \"x\": 123,\n \"y\": 123\n },\n \"size\": {\n \"h\": 123,\n \"w\": 123\n }\n },\n \"circle\": {\n \"shape\": {\n \"color\": \"<string>\",\n \"h\": 123,\n \"r\": 123,\n \"type\": \"<string>\",\n \"w\": 123,\n \"x\": 123,\n \"y\": 123\n },\n \"size\": {\n \"h\": 123,\n \"w\": 123\n }\n }\n },\n \"sub_type\": \"<string>\",\n \"tts_url\": \"<string>\",\n \"type\": \"<string>\"\n },\n \"play_mode\": \"<string>\",\n \"renderScale\": 123,\n \"shapeInfo\": {\n \"color\": \"<string>\",\n \"html\": \"<string>\",\n \"strokeColor\": \"<string>\",\n \"strokeType\": \"<string>\",\n \"strokeWidth\": 123,\n \"type\": \"<string>\"\n },\n \"show_type\": \"<string>\",\n \"templateInfo\": {},\n \"textConfig\": {\n \"align\": \"<string>\",\n \"background\": {},\n \"color\": \"<string>\",\n \"fontFamily\": {},\n \"fontSize\": 123,\n \"fontStyle\": {},\n \"padding\": {},\n \"shadow\": {},\n \"stroke\": {},\n \"textDecoration\": \"<string>\",\n \"verticalAlign\": \"<string>\"\n },\n \"textInfo\": {\n \"backgroundColor\": \"<string>\",\n \"color\": \"<string>\",\n \"content\": \"<string>\",\n \"fontFamily\": \"<string>\",\n \"fontFamilyID\": \"<string>\",\n \"fontFileName\": \"<string>\",\n \"fontSize\": 123,\n \"fontStyle\": \"<string>\",\n \"fontWeight\": \"<string>\",\n \"paddingBottom\": 123,\n \"paddingLeft\": 123,\n \"paddingRight\": 123,\n \"paddingTop\": 123,\n \"radius\": 123,\n \"strokeColor\": \"<string>\",\n \"strokeWidth\": 123,\n \"textAlign\": \"<string>\",\n \"textDecoration\": \"<string>\",\n \"textOrientation\": \"<string>\",\n \"textShadowBlur\": 123,\n \"textShadowColor\": \"<string>\",\n \"textShadowH\": 123,\n \"textShadowV\": 123,\n \"writingMode\": \"<string>\"\n },\n \"waveformConfig\": {},\n \"word_seq\": [\n {\n \"break\": \"<string>\",\n \"end\": 123,\n \"hide\": true,\n \"key\": \"<string>\",\n \"start\": 123,\n \"text\": \"<string>\"\n }\n ]\n },\n \"r\": 123,\n \"radius\": \"<string>\",\n \"shape\": {\n \"background_gauss\": 123,\n \"color\": \"<string>\",\n \"content_position\": {\n \"h\": 123,\n \"r\": 123,\n \"w\": 123,\n \"x\": 123,\n \"y\": 123\n },\n \"disable_shape\": true,\n \"object_fit\": \"<string>\",\n \"radius\": 123,\n \"type\": \"<string>\"\n },\n \"subtitle\": {\n \"font_family\": {\n \"name\": \"<string>\",\n \"url\": \"<string>\"\n },\n \"html\": \"<string>\",\n \"line_size\": 123,\n \"mss\": 123,\n \"prop\": {},\n \"text\": \"<string>\",\n \"tts_info_index\": 123,\n \"word_seq\": [\n {\n \"break\": \"<string>\",\n \"end\": 123,\n \"hide\": true,\n \"key\": \"<string>\",\n \"start\": 123,\n \"text\": \"<string>\"\n }\n ]\n },\n \"template_meta\": {\n \"is_goods_media\": true,\n \"is_logo\": true,\n \"no_need_replace\": true\n },\n \"timeline\": {\n \"cross\": {\n \"in\": [\n \"<string>\"\n ],\n \"in_time\": 123,\n \"out\": [\n \"<string>\"\n ],\n \"out_time\": 123\n },\n \"end\": 123,\n \"key_frames\": [\n {\n \"func\": \"<string>\",\n \"properties\": {\n \"alpha\": 123,\n \"h\": 123,\n \"r\": 123,\n \"scale\": 123,\n \"w\": 123,\n \"x\": 123,\n \"y\": 123\n },\n \"timestamp\": 123\n }\n ],\n \"start\": 123\n },\n \"top_level_key\": \"<string>\",\n \"tts_audio_url\": \"<string>\",\n \"type\": \"<string>\",\n \"volume\": 123,\n \"w\": 123,\n \"x\": 123,\n \"y\": 123\n }\n ],\n \"type\": \"<string>\"\n }\n ],\n \"tts_args\": {\n \"locale\": \"<string>\",\n \"style\": \"<string>\"\n },\n \"tts_voice_id\": \"<string>\",\n \"used_bg_transparent\": true,\n \"version\": \"<string>\",\n \"w\": 123\n }\n }\n ],\n \"afterTTS\": true,\n \"createFrom\": 123,\n \"is_draft_render\": true\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("X-Api-Key", "<api-key>")
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.post("https://api-services.podcastor.ai/open/podcast/v1/render")
.header("X-Api-Key", "<api-key>")
.header("Content-Type", "application/json")
.body("{\n \"tasks\": [\n {\n \"project_id\": \"<string>\",\n \"index\": 123,\n \"workspace\": \"<string>\",\n \"workspace_obj\": {\n \"aspect_ratio\": 123,\n \"condition\": \"<string>\",\n \"ext\": \"<string>\",\n \"flags\": {\n \"emotions\": true,\n \"podcast\": true,\n \"ppt2video\": true,\n \"uhd\": true\n },\n \"h\": 123,\n \"has_edit_media\": true,\n \"keying_enable\": 123,\n \"music_id\": 123,\n \"name\": \"<string>\",\n \"person_id\": 123,\n \"person_source\": 123,\n \"preview_cover_time\": 123,\n \"preview_cover_url\": \"<string>\",\n \"render_subtitle\": true,\n \"scenes\": [\n {\n \"audio_script\": {\n \"duration\": 123,\n \"id\": 123,\n \"name\": \"<string>\",\n \"type\": 123,\n \"url\": \"<string>\"\n },\n \"bg_color\": \"<string>\",\n \"duration\": 123,\n \"emotion_description\": \"<string>\",\n \"key\": \"<string>\",\n \"new_duration\": 123,\n \"placeholder_script\": {\n \"duration\": 123\n },\n \"script\": \"<string>\",\n \"script_config\": {\n \"emotion\": \"<string>\",\n \"model_id\": \"<string>\",\n \"pitch\": 123,\n \"similarity\": 123,\n \"speaker_boost\": true,\n \"stability\": 123,\n \"style_exaggeration\": 123,\n \"tts_speed\": 123,\n \"volume\": 123\n },\n \"script_type\": \"<string>\",\n \"speak_person\": {\n \"id\": 123,\n \"person_source\": 123\n },\n \"speaker_order\": 123,\n \"subtitle_info\": [\n {\n \"end_time\": 123,\n \"start_time\": 123,\n \"text\": \"<string>\"\n }\n ],\n \"tracks\": [\n {\n \"index\": 123,\n \"key\": \"<string>\",\n \"layers\": [\n {\n \"alpha\": 123,\n \"api_template_meta\": {\n \"replace_key\": \"<string>\"\n },\n \"color\": \"<string>\",\n \"crop\": {\n \"h\": 123,\n \"w\": 123,\n \"x\": 123,\n \"y\": 123\n },\n \"fit_mode\": \"<string>\",\n \"flip\": \"<string>\",\n \"gauss\": 123,\n \"h\": 123,\n \"key\": \"<string>\",\n \"mode\": \"<string>\",\n \"moving_camera\": {\n \"type\": \"<string>\"\n },\n \"path\": \"<string>\",\n \"person_cover\": \"<string>\",\n \"person_preview_url\": \"<string>\",\n \"preview_path\": \"<string>\",\n \"prop\": {\n \"animationInfo\": {\n \"cycle\": {\n \"duration\": 123,\n \"effectType\": \"<string>\"\n },\n \"enter\": {\n \"duration\": 123,\n \"effectType\": \"<string>\"\n },\n \"leave\": {\n \"duration\": 123,\n \"effectType\": \"<string>\"\n }\n },\n \"audioPath\": \"<string>\",\n \"bg_transparent\": true,\n \"clip\": {\n \"end\": 123,\n \"start\": 123\n },\n \"emotion\": {\n \"cover\": \"<string>\",\n \"id\": 123,\n \"name\": \"<string>\",\n \"preview_transparent_video\": \"<string>\",\n \"preview_video\": \"<string>\"\n },\n \"meta\": {\n \"cover\": \"<string>\",\n \"id\": 123,\n \"name\": \"<string>\",\n \"origin_height\": 123,\n \"origin_width\": 123,\n \"person_source\": 123,\n \"playback_type\": \"<string>\",\n \"preview_transparent_video\": \"<string>\",\n \"preview_video\": \"<string>\",\n \"show_type_preset\": {\n \"all\": {\n \"shape\": {\n \"color\": \"<string>\",\n \"h\": 123,\n \"r\": 123,\n \"type\": \"<string>\",\n \"w\": 123,\n \"x\": 123,\n \"y\": 123\n },\n \"size\": {\n \"h\": 123,\n \"w\": 123\n }\n },\n \"circle\": {\n \"shape\": {\n \"color\": \"<string>\",\n \"h\": 123,\n \"r\": 123,\n \"type\": \"<string>\",\n \"w\": 123,\n \"x\": 123,\n \"y\": 123\n },\n \"size\": {\n \"h\": 123,\n \"w\": 123\n }\n }\n },\n \"sub_type\": \"<string>\",\n \"tts_url\": \"<string>\",\n \"type\": \"<string>\"\n },\n \"play_mode\": \"<string>\",\n \"renderScale\": 123,\n \"shapeInfo\": {\n \"color\": \"<string>\",\n \"html\": \"<string>\",\n \"strokeColor\": \"<string>\",\n \"strokeType\": \"<string>\",\n \"strokeWidth\": 123,\n \"type\": \"<string>\"\n },\n \"show_type\": \"<string>\",\n \"templateInfo\": {},\n \"textConfig\": {\n \"align\": \"<string>\",\n \"background\": {},\n \"color\": \"<string>\",\n \"fontFamily\": {},\n \"fontSize\": 123,\n \"fontStyle\": {},\n \"padding\": {},\n \"shadow\": {},\n \"stroke\": {},\n \"textDecoration\": \"<string>\",\n \"verticalAlign\": \"<string>\"\n },\n \"textInfo\": {\n \"backgroundColor\": \"<string>\",\n \"color\": \"<string>\",\n \"content\": \"<string>\",\n \"fontFamily\": \"<string>\",\n \"fontFamilyID\": \"<string>\",\n \"fontFileName\": \"<string>\",\n \"fontSize\": 123,\n \"fontStyle\": \"<string>\",\n \"fontWeight\": \"<string>\",\n \"paddingBottom\": 123,\n \"paddingLeft\": 123,\n \"paddingRight\": 123,\n \"paddingTop\": 123,\n \"radius\": 123,\n \"strokeColor\": \"<string>\",\n \"strokeWidth\": 123,\n \"textAlign\": \"<string>\",\n \"textDecoration\": \"<string>\",\n \"textOrientation\": \"<string>\",\n \"textShadowBlur\": 123,\n \"textShadowColor\": \"<string>\",\n \"textShadowH\": 123,\n \"textShadowV\": 123,\n \"writingMode\": \"<string>\"\n },\n \"waveformConfig\": {},\n \"word_seq\": [\n {\n \"break\": \"<string>\",\n \"end\": 123,\n \"hide\": true,\n \"key\": \"<string>\",\n \"start\": 123,\n \"text\": \"<string>\"\n }\n ]\n },\n \"r\": 123,\n \"radius\": \"<string>\",\n \"shape\": {\n \"background_gauss\": 123,\n \"color\": \"<string>\",\n \"content_position\": {\n \"h\": 123,\n \"r\": 123,\n \"w\": 123,\n \"x\": 123,\n \"y\": 123\n },\n \"disable_shape\": true,\n \"object_fit\": \"<string>\",\n \"radius\": 123,\n \"type\": \"<string>\"\n },\n \"subtitle\": {\n \"font_family\": {\n \"name\": \"<string>\",\n \"url\": \"<string>\"\n },\n \"html\": \"<string>\",\n \"line_size\": 123,\n \"mss\": 123,\n \"prop\": {},\n \"text\": \"<string>\",\n \"tts_info_index\": 123,\n \"word_seq\": [\n {\n \"break\": \"<string>\",\n \"end\": 123,\n \"hide\": true,\n \"key\": \"<string>\",\n \"start\": 123,\n \"text\": \"<string>\"\n }\n ]\n },\n \"template_meta\": {\n \"is_goods_media\": true,\n \"is_logo\": true,\n \"no_need_replace\": true\n },\n \"timeline\": {\n \"cross\": {\n \"in\": [\n \"<string>\"\n ],\n \"in_time\": 123,\n \"out\": [\n \"<string>\"\n ],\n \"out_time\": 123\n },\n \"end\": 123,\n \"key_frames\": [\n {\n \"func\": \"<string>\",\n \"properties\": {\n \"alpha\": 123,\n \"h\": 123,\n \"r\": 123,\n \"scale\": 123,\n \"w\": 123,\n \"x\": 123,\n \"y\": 123\n },\n \"timestamp\": 123\n }\n ],\n \"start\": 123\n },\n \"top_level_key\": \"<string>\",\n \"tts_audio_url\": \"<string>\",\n \"type\": \"<string>\",\n \"volume\": 123,\n \"w\": 123,\n \"x\": 123,\n \"y\": 123\n }\n ],\n \"type\": \"<string>\"\n }\n ],\n \"transition\": {\n \"type\": \"<string>\"\n },\n \"tts_args\": {\n \"locale\": \"<string>\",\n \"style\": \"<string>\"\n },\n \"tts_axis\": [\n {\n \"duration\": 123,\n \"endTime\": 123,\n \"startTime\": 123,\n \"text\": \"<string>\",\n \"wordLen\": 123\n }\n ],\n \"tts_payment_id\": \"<string>\",\n \"tts_voice_id\": \"<string>\"\n }\n ],\n \"subtitle_version\": 123,\n \"t_id\": 123,\n \"total_duration\": 123,\n \"tracks\": [\n {\n \"index\": 123,\n \"key\": \"<string>\",\n \"layers\": [\n {\n \"alpha\": 123,\n \"api_template_meta\": {\n \"replace_key\": \"<string>\"\n },\n \"color\": \"<string>\",\n \"crop\": {\n \"h\": 123,\n \"w\": 123,\n \"x\": 123,\n \"y\": 123\n },\n \"fit_mode\": \"<string>\",\n \"flip\": \"<string>\",\n \"gauss\": 123,\n \"h\": 123,\n \"key\": \"<string>\",\n \"mode\": \"<string>\",\n \"moving_camera\": {\n \"type\": \"<string>\"\n },\n \"path\": \"<string>\",\n \"person_cover\": \"<string>\",\n \"person_preview_url\": \"<string>\",\n \"preview_path\": \"<string>\",\n \"prop\": {\n \"animationInfo\": {\n \"cycle\": {\n \"duration\": 123,\n \"effectType\": \"<string>\"\n },\n \"enter\": {\n \"duration\": 123,\n \"effectType\": \"<string>\"\n },\n \"leave\": {\n \"duration\": 123,\n \"effectType\": \"<string>\"\n }\n },\n \"audioPath\": \"<string>\",\n \"bg_transparent\": true,\n \"clip\": {\n \"end\": 123,\n \"start\": 123\n },\n \"emotion\": {\n \"cover\": \"<string>\",\n \"id\": 123,\n \"name\": \"<string>\",\n \"preview_transparent_video\": \"<string>\",\n \"preview_video\": \"<string>\"\n },\n \"meta\": {\n \"cover\": \"<string>\",\n \"id\": 123,\n \"name\": \"<string>\",\n \"origin_height\": 123,\n \"origin_width\": 123,\n \"person_source\": 123,\n \"playback_type\": \"<string>\",\n \"preview_transparent_video\": \"<string>\",\n \"preview_video\": \"<string>\",\n \"show_type_preset\": {\n \"all\": {\n \"shape\": {\n \"color\": \"<string>\",\n \"h\": 123,\n \"r\": 123,\n \"type\": \"<string>\",\n \"w\": 123,\n \"x\": 123,\n \"y\": 123\n },\n \"size\": {\n \"h\": 123,\n \"w\": 123\n }\n },\n \"circle\": {\n \"shape\": {\n \"color\": \"<string>\",\n \"h\": 123,\n \"r\": 123,\n \"type\": \"<string>\",\n \"w\": 123,\n \"x\": 123,\n \"y\": 123\n },\n \"size\": {\n \"h\": 123,\n \"w\": 123\n }\n }\n },\n \"sub_type\": \"<string>\",\n \"tts_url\": \"<string>\",\n \"type\": \"<string>\"\n },\n \"play_mode\": \"<string>\",\n \"renderScale\": 123,\n \"shapeInfo\": {\n \"color\": \"<string>\",\n \"html\": \"<string>\",\n \"strokeColor\": \"<string>\",\n \"strokeType\": \"<string>\",\n \"strokeWidth\": 123,\n \"type\": \"<string>\"\n },\n \"show_type\": \"<string>\",\n \"templateInfo\": {},\n \"textConfig\": {\n \"align\": \"<string>\",\n \"background\": {},\n \"color\": \"<string>\",\n \"fontFamily\": {},\n \"fontSize\": 123,\n \"fontStyle\": {},\n \"padding\": {},\n \"shadow\": {},\n \"stroke\": {},\n \"textDecoration\": \"<string>\",\n \"verticalAlign\": \"<string>\"\n },\n \"textInfo\": {\n \"backgroundColor\": \"<string>\",\n \"color\": \"<string>\",\n \"content\": \"<string>\",\n \"fontFamily\": \"<string>\",\n \"fontFamilyID\": \"<string>\",\n \"fontFileName\": \"<string>\",\n \"fontSize\": 123,\n \"fontStyle\": \"<string>\",\n \"fontWeight\": \"<string>\",\n \"paddingBottom\": 123,\n \"paddingLeft\": 123,\n \"paddingRight\": 123,\n \"paddingTop\": 123,\n \"radius\": 123,\n \"strokeColor\": \"<string>\",\n \"strokeWidth\": 123,\n \"textAlign\": \"<string>\",\n \"textDecoration\": \"<string>\",\n \"textOrientation\": \"<string>\",\n \"textShadowBlur\": 123,\n \"textShadowColor\": \"<string>\",\n \"textShadowH\": 123,\n \"textShadowV\": 123,\n \"writingMode\": \"<string>\"\n },\n \"waveformConfig\": {},\n \"word_seq\": [\n {\n \"break\": \"<string>\",\n \"end\": 123,\n \"hide\": true,\n \"key\": \"<string>\",\n \"start\": 123,\n \"text\": \"<string>\"\n }\n ]\n },\n \"r\": 123,\n \"radius\": \"<string>\",\n \"shape\": {\n \"background_gauss\": 123,\n \"color\": \"<string>\",\n \"content_position\": {\n \"h\": 123,\n \"r\": 123,\n \"w\": 123,\n \"x\": 123,\n \"y\": 123\n },\n \"disable_shape\": true,\n \"object_fit\": \"<string>\",\n \"radius\": 123,\n \"type\": \"<string>\"\n },\n \"subtitle\": {\n \"font_family\": {\n \"name\": \"<string>\",\n \"url\": \"<string>\"\n },\n \"html\": \"<string>\",\n \"line_size\": 123,\n \"mss\": 123,\n \"prop\": {},\n \"text\": \"<string>\",\n \"tts_info_index\": 123,\n \"word_seq\": [\n {\n \"break\": \"<string>\",\n \"end\": 123,\n \"hide\": true,\n \"key\": \"<string>\",\n \"start\": 123,\n \"text\": \"<string>\"\n }\n ]\n },\n \"template_meta\": {\n \"is_goods_media\": true,\n \"is_logo\": true,\n \"no_need_replace\": true\n },\n \"timeline\": {\n \"cross\": {\n \"in\": [\n \"<string>\"\n ],\n \"in_time\": 123,\n \"out\": [\n \"<string>\"\n ],\n \"out_time\": 123\n },\n \"end\": 123,\n \"key_frames\": [\n {\n \"func\": \"<string>\",\n \"properties\": {\n \"alpha\": 123,\n \"h\": 123,\n \"r\": 123,\n \"scale\": 123,\n \"w\": 123,\n \"x\": 123,\n \"y\": 123\n },\n \"timestamp\": 123\n }\n ],\n \"start\": 123\n },\n \"top_level_key\": \"<string>\",\n \"tts_audio_url\": \"<string>\",\n \"type\": \"<string>\",\n \"volume\": 123,\n \"w\": 123,\n \"x\": 123,\n \"y\": 123\n }\n ],\n \"type\": \"<string>\"\n }\n ],\n \"tts_args\": {\n \"locale\": \"<string>\",\n \"style\": \"<string>\"\n },\n \"tts_voice_id\": \"<string>\",\n \"used_bg_transparent\": true,\n \"version\": \"<string>\",\n \"w\": 123\n }\n }\n ],\n \"afterTTS\": true,\n \"createFrom\": 123,\n \"is_draft_render\": true\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api-services.podcastor.ai/open/podcast/v1/render")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["X-Api-Key"] = '<api-key>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"tasks\": [\n {\n \"project_id\": \"<string>\",\n \"index\": 123,\n \"workspace\": \"<string>\",\n \"workspace_obj\": {\n \"aspect_ratio\": 123,\n \"condition\": \"<string>\",\n \"ext\": \"<string>\",\n \"flags\": {\n \"emotions\": true,\n \"podcast\": true,\n \"ppt2video\": true,\n \"uhd\": true\n },\n \"h\": 123,\n \"has_edit_media\": true,\n \"keying_enable\": 123,\n \"music_id\": 123,\n \"name\": \"<string>\",\n \"person_id\": 123,\n \"person_source\": 123,\n \"preview_cover_time\": 123,\n \"preview_cover_url\": \"<string>\",\n \"render_subtitle\": true,\n \"scenes\": [\n {\n \"audio_script\": {\n \"duration\": 123,\n \"id\": 123,\n \"name\": \"<string>\",\n \"type\": 123,\n \"url\": \"<string>\"\n },\n \"bg_color\": \"<string>\",\n \"duration\": 123,\n \"emotion_description\": \"<string>\",\n \"key\": \"<string>\",\n \"new_duration\": 123,\n \"placeholder_script\": {\n \"duration\": 123\n },\n \"script\": \"<string>\",\n \"script_config\": {\n \"emotion\": \"<string>\",\n \"model_id\": \"<string>\",\n \"pitch\": 123,\n \"similarity\": 123,\n \"speaker_boost\": true,\n \"stability\": 123,\n \"style_exaggeration\": 123,\n \"tts_speed\": 123,\n \"volume\": 123\n },\n \"script_type\": \"<string>\",\n \"speak_person\": {\n \"id\": 123,\n \"person_source\": 123\n },\n \"speaker_order\": 123,\n \"subtitle_info\": [\n {\n \"end_time\": 123,\n \"start_time\": 123,\n \"text\": \"<string>\"\n }\n ],\n \"tracks\": [\n {\n \"index\": 123,\n \"key\": \"<string>\",\n \"layers\": [\n {\n \"alpha\": 123,\n \"api_template_meta\": {\n \"replace_key\": \"<string>\"\n },\n \"color\": \"<string>\",\n \"crop\": {\n \"h\": 123,\n \"w\": 123,\n \"x\": 123,\n \"y\": 123\n },\n \"fit_mode\": \"<string>\",\n \"flip\": \"<string>\",\n \"gauss\": 123,\n \"h\": 123,\n \"key\": \"<string>\",\n \"mode\": \"<string>\",\n \"moving_camera\": {\n \"type\": \"<string>\"\n },\n \"path\": \"<string>\",\n \"person_cover\": \"<string>\",\n \"person_preview_url\": \"<string>\",\n \"preview_path\": \"<string>\",\n \"prop\": {\n \"animationInfo\": {\n \"cycle\": {\n \"duration\": 123,\n \"effectType\": \"<string>\"\n },\n \"enter\": {\n \"duration\": 123,\n \"effectType\": \"<string>\"\n },\n \"leave\": {\n \"duration\": 123,\n \"effectType\": \"<string>\"\n }\n },\n \"audioPath\": \"<string>\",\n \"bg_transparent\": true,\n \"clip\": {\n \"end\": 123,\n \"start\": 123\n },\n \"emotion\": {\n \"cover\": \"<string>\",\n \"id\": 123,\n \"name\": \"<string>\",\n \"preview_transparent_video\": \"<string>\",\n \"preview_video\": \"<string>\"\n },\n \"meta\": {\n \"cover\": \"<string>\",\n \"id\": 123,\n \"name\": \"<string>\",\n \"origin_height\": 123,\n \"origin_width\": 123,\n \"person_source\": 123,\n \"playback_type\": \"<string>\",\n \"preview_transparent_video\": \"<string>\",\n \"preview_video\": \"<string>\",\n \"show_type_preset\": {\n \"all\": {\n \"shape\": {\n \"color\": \"<string>\",\n \"h\": 123,\n \"r\": 123,\n \"type\": \"<string>\",\n \"w\": 123,\n \"x\": 123,\n \"y\": 123\n },\n \"size\": {\n \"h\": 123,\n \"w\": 123\n }\n },\n \"circle\": {\n \"shape\": {\n \"color\": \"<string>\",\n \"h\": 123,\n \"r\": 123,\n \"type\": \"<string>\",\n \"w\": 123,\n \"x\": 123,\n \"y\": 123\n },\n \"size\": {\n \"h\": 123,\n \"w\": 123\n }\n }\n },\n \"sub_type\": \"<string>\",\n \"tts_url\": \"<string>\",\n \"type\": \"<string>\"\n },\n \"play_mode\": \"<string>\",\n \"renderScale\": 123,\n \"shapeInfo\": {\n \"color\": \"<string>\",\n \"html\": \"<string>\",\n \"strokeColor\": \"<string>\",\n \"strokeType\": \"<string>\",\n \"strokeWidth\": 123,\n \"type\": \"<string>\"\n },\n \"show_type\": \"<string>\",\n \"templateInfo\": {},\n \"textConfig\": {\n \"align\": \"<string>\",\n \"background\": {},\n \"color\": \"<string>\",\n \"fontFamily\": {},\n \"fontSize\": 123,\n \"fontStyle\": {},\n \"padding\": {},\n \"shadow\": {},\n \"stroke\": {},\n \"textDecoration\": \"<string>\",\n \"verticalAlign\": \"<string>\"\n },\n \"textInfo\": {\n \"backgroundColor\": \"<string>\",\n \"color\": \"<string>\",\n \"content\": \"<string>\",\n \"fontFamily\": \"<string>\",\n \"fontFamilyID\": \"<string>\",\n \"fontFileName\": \"<string>\",\n \"fontSize\": 123,\n \"fontStyle\": \"<string>\",\n \"fontWeight\": \"<string>\",\n \"paddingBottom\": 123,\n \"paddingLeft\": 123,\n \"paddingRight\": 123,\n \"paddingTop\": 123,\n \"radius\": 123,\n \"strokeColor\": \"<string>\",\n \"strokeWidth\": 123,\n \"textAlign\": \"<string>\",\n \"textDecoration\": \"<string>\",\n \"textOrientation\": \"<string>\",\n \"textShadowBlur\": 123,\n \"textShadowColor\": \"<string>\",\n \"textShadowH\": 123,\n \"textShadowV\": 123,\n \"writingMode\": \"<string>\"\n },\n \"waveformConfig\": {},\n \"word_seq\": [\n {\n \"break\": \"<string>\",\n \"end\": 123,\n \"hide\": true,\n \"key\": \"<string>\",\n \"start\": 123,\n \"text\": \"<string>\"\n }\n ]\n },\n \"r\": 123,\n \"radius\": \"<string>\",\n \"shape\": {\n \"background_gauss\": 123,\n \"color\": \"<string>\",\n \"content_position\": {\n \"h\": 123,\n \"r\": 123,\n \"w\": 123,\n \"x\": 123,\n \"y\": 123\n },\n \"disable_shape\": true,\n \"object_fit\": \"<string>\",\n \"radius\": 123,\n \"type\": \"<string>\"\n },\n \"subtitle\": {\n \"font_family\": {\n \"name\": \"<string>\",\n \"url\": \"<string>\"\n },\n \"html\": \"<string>\",\n \"line_size\": 123,\n \"mss\": 123,\n \"prop\": {},\n \"text\": \"<string>\",\n \"tts_info_index\": 123,\n \"word_seq\": [\n {\n \"break\": \"<string>\",\n \"end\": 123,\n \"hide\": true,\n \"key\": \"<string>\",\n \"start\": 123,\n \"text\": \"<string>\"\n }\n ]\n },\n \"template_meta\": {\n \"is_goods_media\": true,\n \"is_logo\": true,\n \"no_need_replace\": true\n },\n \"timeline\": {\n \"cross\": {\n \"in\": [\n \"<string>\"\n ],\n \"in_time\": 123,\n \"out\": [\n \"<string>\"\n ],\n \"out_time\": 123\n },\n \"end\": 123,\n \"key_frames\": [\n {\n \"func\": \"<string>\",\n \"properties\": {\n \"alpha\": 123,\n \"h\": 123,\n \"r\": 123,\n \"scale\": 123,\n \"w\": 123,\n \"x\": 123,\n \"y\": 123\n },\n \"timestamp\": 123\n }\n ],\n \"start\": 123\n },\n \"top_level_key\": \"<string>\",\n \"tts_audio_url\": \"<string>\",\n \"type\": \"<string>\",\n \"volume\": 123,\n \"w\": 123,\n \"x\": 123,\n \"y\": 123\n }\n ],\n \"type\": \"<string>\"\n }\n ],\n \"transition\": {\n \"type\": \"<string>\"\n },\n \"tts_args\": {\n \"locale\": \"<string>\",\n \"style\": \"<string>\"\n },\n \"tts_axis\": [\n {\n \"duration\": 123,\n \"endTime\": 123,\n \"startTime\": 123,\n \"text\": \"<string>\",\n \"wordLen\": 123\n }\n ],\n \"tts_payment_id\": \"<string>\",\n \"tts_voice_id\": \"<string>\"\n }\n ],\n \"subtitle_version\": 123,\n \"t_id\": 123,\n \"total_duration\": 123,\n \"tracks\": [\n {\n \"index\": 123,\n \"key\": \"<string>\",\n \"layers\": [\n {\n \"alpha\": 123,\n \"api_template_meta\": {\n \"replace_key\": \"<string>\"\n },\n \"color\": \"<string>\",\n \"crop\": {\n \"h\": 123,\n \"w\": 123,\n \"x\": 123,\n \"y\": 123\n },\n \"fit_mode\": \"<string>\",\n \"flip\": \"<string>\",\n \"gauss\": 123,\n \"h\": 123,\n \"key\": \"<string>\",\n \"mode\": \"<string>\",\n \"moving_camera\": {\n \"type\": \"<string>\"\n },\n \"path\": \"<string>\",\n \"person_cover\": \"<string>\",\n \"person_preview_url\": \"<string>\",\n \"preview_path\": \"<string>\",\n \"prop\": {\n \"animationInfo\": {\n \"cycle\": {\n \"duration\": 123,\n \"effectType\": \"<string>\"\n },\n \"enter\": {\n \"duration\": 123,\n \"effectType\": \"<string>\"\n },\n \"leave\": {\n \"duration\": 123,\n \"effectType\": \"<string>\"\n }\n },\n \"audioPath\": \"<string>\",\n \"bg_transparent\": true,\n \"clip\": {\n \"end\": 123,\n \"start\": 123\n },\n \"emotion\": {\n \"cover\": \"<string>\",\n \"id\": 123,\n \"name\": \"<string>\",\n \"preview_transparent_video\": \"<string>\",\n \"preview_video\": \"<string>\"\n },\n \"meta\": {\n \"cover\": \"<string>\",\n \"id\": 123,\n \"name\": \"<string>\",\n \"origin_height\": 123,\n \"origin_width\": 123,\n \"person_source\": 123,\n \"playback_type\": \"<string>\",\n \"preview_transparent_video\": \"<string>\",\n \"preview_video\": \"<string>\",\n \"show_type_preset\": {\n \"all\": {\n \"shape\": {\n \"color\": \"<string>\",\n \"h\": 123,\n \"r\": 123,\n \"type\": \"<string>\",\n \"w\": 123,\n \"x\": 123,\n \"y\": 123\n },\n \"size\": {\n \"h\": 123,\n \"w\": 123\n }\n },\n \"circle\": {\n \"shape\": {\n \"color\": \"<string>\",\n \"h\": 123,\n \"r\": 123,\n \"type\": \"<string>\",\n \"w\": 123,\n \"x\": 123,\n \"y\": 123\n },\n \"size\": {\n \"h\": 123,\n \"w\": 123\n }\n }\n },\n \"sub_type\": \"<string>\",\n \"tts_url\": \"<string>\",\n \"type\": \"<string>\"\n },\n \"play_mode\": \"<string>\",\n \"renderScale\": 123,\n \"shapeInfo\": {\n \"color\": \"<string>\",\n \"html\": \"<string>\",\n \"strokeColor\": \"<string>\",\n \"strokeType\": \"<string>\",\n \"strokeWidth\": 123,\n \"type\": \"<string>\"\n },\n \"show_type\": \"<string>\",\n \"templateInfo\": {},\n \"textConfig\": {\n \"align\": \"<string>\",\n \"background\": {},\n \"color\": \"<string>\",\n \"fontFamily\": {},\n \"fontSize\": 123,\n \"fontStyle\": {},\n \"padding\": {},\n \"shadow\": {},\n \"stroke\": {},\n \"textDecoration\": \"<string>\",\n \"verticalAlign\": \"<string>\"\n },\n \"textInfo\": {\n \"backgroundColor\": \"<string>\",\n \"color\": \"<string>\",\n \"content\": \"<string>\",\n \"fontFamily\": \"<string>\",\n \"fontFamilyID\": \"<string>\",\n \"fontFileName\": \"<string>\",\n \"fontSize\": 123,\n \"fontStyle\": \"<string>\",\n \"fontWeight\": \"<string>\",\n \"paddingBottom\": 123,\n \"paddingLeft\": 123,\n \"paddingRight\": 123,\n \"paddingTop\": 123,\n \"radius\": 123,\n \"strokeColor\": \"<string>\",\n \"strokeWidth\": 123,\n \"textAlign\": \"<string>\",\n \"textDecoration\": \"<string>\",\n \"textOrientation\": \"<string>\",\n \"textShadowBlur\": 123,\n \"textShadowColor\": \"<string>\",\n \"textShadowH\": 123,\n \"textShadowV\": 123,\n \"writingMode\": \"<string>\"\n },\n \"waveformConfig\": {},\n \"word_seq\": [\n {\n \"break\": \"<string>\",\n \"end\": 123,\n \"hide\": true,\n \"key\": \"<string>\",\n \"start\": 123,\n \"text\": \"<string>\"\n }\n ]\n },\n \"r\": 123,\n \"radius\": \"<string>\",\n \"shape\": {\n \"background_gauss\": 123,\n \"color\": \"<string>\",\n \"content_position\": {\n \"h\": 123,\n \"r\": 123,\n \"w\": 123,\n \"x\": 123,\n \"y\": 123\n },\n \"disable_shape\": true,\n \"object_fit\": \"<string>\",\n \"radius\": 123,\n \"type\": \"<string>\"\n },\n \"subtitle\": {\n \"font_family\": {\n \"name\": \"<string>\",\n \"url\": \"<string>\"\n },\n \"html\": \"<string>\",\n \"line_size\": 123,\n \"mss\": 123,\n \"prop\": {},\n \"text\": \"<string>\",\n \"tts_info_index\": 123,\n \"word_seq\": [\n {\n \"break\": \"<string>\",\n \"end\": 123,\n \"hide\": true,\n \"key\": \"<string>\",\n \"start\": 123,\n \"text\": \"<string>\"\n }\n ]\n },\n \"template_meta\": {\n \"is_goods_media\": true,\n \"is_logo\": true,\n \"no_need_replace\": true\n },\n \"timeline\": {\n \"cross\": {\n \"in\": [\n \"<string>\"\n ],\n \"in_time\": 123,\n \"out\": [\n \"<string>\"\n ],\n \"out_time\": 123\n },\n \"end\": 123,\n \"key_frames\": [\n {\n \"func\": \"<string>\",\n \"properties\": {\n \"alpha\": 123,\n \"h\": 123,\n \"r\": 123,\n \"scale\": 123,\n \"w\": 123,\n \"x\": 123,\n \"y\": 123\n },\n \"timestamp\": 123\n }\n ],\n \"start\": 123\n },\n \"top_level_key\": \"<string>\",\n \"tts_audio_url\": \"<string>\",\n \"type\": \"<string>\",\n \"volume\": 123,\n \"w\": 123,\n \"x\": 123,\n \"y\": 123\n }\n ],\n \"type\": \"<string>\"\n }\n ],\n \"tts_args\": {\n \"locale\": \"<string>\",\n \"style\": \"<string>\"\n },\n \"tts_voice_id\": \"<string>\",\n \"used_bg_transparent\": true,\n \"version\": \"<string>\",\n \"w\": 123\n }\n }\n ],\n \"afterTTS\": true,\n \"createFrom\": 123,\n \"is_draft_render\": true\n}"
response = http.request(request)
puts response.read_body{
"cause": "<string>",
"code": 123,
"data": "<unknown>",
"details": "<unknown>",
"msg": "<string>",
"rid": "<string>"
}MCP tool:
podcast_render. OAuth scope: podcast.generate.Authorizations
Headers
Replay a completed identical request without repeating side effects.
Maximum string length:
128Body
application/json
请求体