API端点:
https://api.xn--gpt-u68dy61b.com/api/v1/documents
要求实例:
curl --location --request GET 'https://api.xn--gpt-u68dy61b.com/api/v1/documents' \
--header 'Accept: application/json' \
--header 'Authorization: Bearer {api_key}'
search
search_by
name
为 姓名, result
为 结果. 默认为: name
.template_id
1
为 自由风格, 2
为 关于我们, 3
为 广告, 4
为 文章, 5
为 博客介绍, 6
为 博客纲要, 7
为 博客序言, 8
为 博客段落, 9
为 博客文章, 10
为 博客部分, 11
为 博客谈话要点, 12
为 博客标题, 13
为 行动呼吁, 14
为 内容重写, 15
为 内容摘要, 16
为 常见问题, 17
为 标签, 18
为 标题, 19
为 它是如何工作的, 20
为 元描述, 21
为 元关键词, 22
为 任务说明, 23
为 通讯, 24
为 疼痛的解决方案, 25
为 段落, 26
为 新闻发布, 27
为 社会职位, 28
为 社交帖子的标题, 29
为 创业想法, 30
为 初创企业名称, 31
为 副标题, 32
为 推荐书, 33
为 鸣叫, 34
为 推特主题, 35
为 价值主张, 36
为 视频描述, 37
为 视频脚本, 38
为 视频标签, 39
为 视频标题, 40
为 愿景声明, 42
为 Product sheet, 43
为 Welcome email, 44
为 Push notification, 45
为 Blog listicle, 46
为 Content grammar, 47
为 Blog tags, 48
为 Pros and cons, 49
为 Google advertisement, 50
为 Facebook advertisement, 51
为 Job description, 52
为 Review, 53
为 Feature section. 默认为: freestyle
.favorite
sort_by
id
为 创建日期, name
为 姓名. 默认为: id
.sort
desc
为 降序, asc
为 升序. 默认为: desc
.per_page
10
, 25
, 50
, 100
. 默认为: 25
.API端点:
https://api.xn--gpt-u68dy61b.com/api/v1/documents/{id}
要求实例:
curl --location --request GET 'https://api.xn--gpt-u68dy61b.com/api/v1/documents/{id}' \ --header 'Accept: application/json' \ --header 'Authorization: Bearer {api_key}'
API端点:
https://api.xn--gpt-u68dy61b.com/api/v1/documents
要求实例:
curl --location --request POST 'https://api.xn--gpt-u68dy61b.com/api/v1/documents' \ --header 'Content-Type: application/x-www-form-urlencoded' \ --header 'Authorization: Bearer {api_key}' \ --data-urlencode 'name={name}' \ --data-urlencode 'prompt={prompt}'
name
prompt
creativity
0
为 重复性, 0.25
为 确定性的, 0.5
为 原创, 0.75
为 创意, 1
为 富有想象力的. 默认为: 0.5
.API端点:
https://api.xn--gpt-u68dy61b.com/api/v1/documents/{id}
要求实例:
curl --location --request PUT 'https://api.xn--gpt-u68dy61b.com/api/v1/documents/{id}' \ --header 'Content-Type: application/x-www-form-urlencoded' \ --header 'Authorization: Bearer {api_key}'
name
result
favorite
API端点:
https://api.xn--gpt-u68dy61b.com/api/v1/documents/{id}
要求实例:
curl --location --request DELETE 'https://api.xn--gpt-u68dy61b.com/api/v1/documents/{id}' \ --header 'Authorization: Bearer {api_key}'