考虑签署我们的新服务:https://xgpt.cloud 更多的功能

字符

备注
专家级别
API密钥应作为请求的授权头中的一个承载令牌发送。 获取你的API密钥.
列表

API端点:

GET
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
可选 string
的搜索查询。
search_by
可选 string
搜索方式. 可能的值是: name姓名, result结果. 默认为: name.
template_id
可选 integer
按模板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愿景声明, 42Product sheet, 43Welcome email, 44Push notification, 45Blog listicle, 46Content grammar, 47Blog tags, 48Pros and cons, 49Google advertisement, 50Facebook advertisement, 51Job description, 52Review, 53Feature section. 默认为: freestyle.
favorite
可选 boolean
按最爱过滤。
sort_by
可选 string
排序方式. 可能的值是: id创建日期, name姓名. 默认为: id.
sort
可选 string
排序. 可能的值是: desc降序, asc升序. 默认为: desc.
per_page
可选 int
每页的结果. 可能的值是: 10, 25, 50, 100. 默认为: 25.
显示

API端点:

GET
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端点:

POST
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
需要 string
The document name.
prompt
需要 string
对人工智能的指示。
creativity
需要 float
The creative level of the result. 可能的值是: 0重复性, 0.25确定性的, 0.5原创, 0.75创意, 1富有想象力的. 默认为: 0.5.
更新

API端点:

PUT PATCH
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
可选 string
The document name.
result
可选 string
该文件的结果。
favorite
可选 boolean
该文件是否是最受欢迎的。
删除

API端点:

DELETE
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}'