创建无损排版任务
POST
https://api.gezhe.com/v1/generations/layout
本接口为同步接口。
请求参数
Body 参数application/json
content
string
需要渲染的 Markdown 文本
author
string
作者名字
title
string
PPT 标题
theme
string
模板 ID
示例
{
"content": "string",
"author": "string",
"title": "string",
"theme": "string"
}
示例代码
Shell
JavaScript
Java
Swift
Go
PHP
Python
HTTP
C
C#
Objective-C
Ruby
OCaml
Dart
R
请求示例请求示例
Shell
JavaScript
Java
Swift
curl --location --request POST 'https://api.gezhe.com/v1/generations/layout' \
--header 'Content-Type: application/json' \
--data-raw ''
返回响应
🟢200成功
application/json
Body
id
string
任务 ID
editorURL
string
编辑器链接
downloadURL
string
文件下载地址
pageNum
integer
页数
示例
{
"id": "qaV8ssD6DPBfpPuDbu4tU",
"prviewURL": "https://gezhe.com/xxxx.ppt/preview",
"downloadURL": "https://platform.gehze.cn/api/generations/xxxxxxxxx/download?_ticket=QHVcOqqlJJ6NalXVJokX31e4VOcXxR6OP",
"pageNum": 11
}
🟠400请求有误
🔴500服务器错误