files_create
开发环境
开发环境
POST
/api/files/
files
请求示例请求示例
Shell
JavaScript
Java
Swift
curl --location --request POST 'http://dev-cn.your-api-server.com/api/files/' \
--header 'Authorization;' \
--form 'file=@""'
响应示例响应示例
{
"id": 0,
"cd": "2019-08-24T14:15:22Z",
"name": "string",
"status": "created",
"tag": "general",
"type": "image",
"mime_type": "string",
"size": 0,
"duration": 0,
"width": 0,
"height": 0,
"file": "http://example.com",
"compressed_file": "http://example.com",
"mock_video_file": "http://example.com",
"preview": "http://example.com",
"thumbnail": "http://example.com",
"generated_script": "string"
}
请求参数
Header 参数
Authorization
string
必需
默认值:
Token <api-key>
Body 参数multipart/form-data
name
string | null
可选
<= 200 字符
tag
enum<string>
可选
枚举值:
generalassetspeechpresentation_pagescenescene_previewbackground
默认值:
general
示例值:
general
file
file
File
generate_script_from_content
boolean
只写可选
prompt
string | null
只写可选
<= 1500 字符
返回响应
修改于 2024-03-28 09:50:16