1. GPTs 相关
xi-ai
  • 发出请求
  • 模型接口
    • 聊天接口(Chat)
      • 聊天接口
      • gpts
      • gemini-pro
      • gpt-4-all(分析图片)
      • gpt-4-vision-preview
    • 自动补全接口(Completions)
      • 内容补全接口
    • 图像接口(Images)
      • Midjourney
        • 补充 - 其他参数以及回调
        • InsightFace任务提交
          • 提交swap_face任务
        • 任务提交
          • 执行动作
          • 提交Blend任务
          • 提交Describe任务
          • 提交Imagine任务
          • 提交Modal
          • 提交Shorten任务
        • 任务查询
          • 查询所有任务
          • 根据ID列表查询任务
          • 分页查询任务
          • 查询任务队列
          • 取消任务
          • 指定ID获取任务
          • 获取任务图片的seed(需设置mj或niji的私信ID)
      • DALL·E 3
      • Stable-Diffusion
      • gpt-4-all(生成图片)
    • 向量生成接口(Embeddings)
      • 创建嵌入
    • 音频接口(Audio)
      • 创建转录
      • 创建翻译
      • TTS文本转语音
    • Suno音乐接口
      • GoAmzAI格式
        • v3.5
          • 生成音乐
          • 获取音乐
        • v3.0
          • 生成音乐
          • 获取音乐
      • 官网原生格式(v2)
        • 所有接口
          • 音乐链接转成suno(upload)
          • 音乐生成(generations)
          • 查询任务(feed)
        • 场景1 生成自定义音乐(带歌词)
          • 音乐生成(generations)
          • 查询任务(feed)
        • 场景 2 通过提示词直接生成音乐(带歌词)
          • 音乐生成(generations)
          • 查询任务(feed)
        • 场景 4 通过提示词直接生成音乐(纯音乐)
          • 音乐生成(generations)
          • 查询任务(feed)
        • 场景3 生成自定义音乐(纯音乐)
          • 音乐生成(generations)
          • 查询任务(feed)
        • 场景 5 上传自定义音频并续写
          • 音乐链接转成suno(upload)
          • 音乐生成(generations)
          • 查询任务(feed)
      • 生成歌词
        • 获取歌词
        • 生成歌词
      • NewAPI兼容格式
        • 生成音乐
        • 查询歌曲
  • sora-2
    • 视频统一格式
      • 图生视频
      • 文生视频
      • 查询任务
    • chat 格式
      • 连续修改生成视频
      • 使用公共人物(例如奥特曼)生成视频
      • 流式请求
      • 非流请求
      • 带图片请求
      • 不同比例的视频(横竖屏)
    • OpenAI官方视频格式(适配 newapi)
      • 创建视频
      • 查询视频详情
      • 下载视频(不推荐该方式,查询视频接口有返回 url的)
      • 编辑视频(remix)
  • midjouriney
    • InsightFace任务提交
      • 提交swap_face任务
    • 任务提交
      • 执行动作
      • 提交Blend任务
      • 提交Describe任务
      • 提交Imagine任务
      • 提交Modal
      • 提交Shorten任务
    • 任务查询
      • 查询所有任务
      • 根据ID列表查询任务
      • 分页查询任务
      • 查询任务队列
      • 取消任务
      • 指定ID获取任务
      • 获取任务图片的seed(需设置mj或niji的私信ID)
  • 帮助中心
    • 常见问题及解决办法
  • 文生视频
    • 创建文生视频任务
      POST
    • 查询文生视频任务
      GET
  • 图生视频
    • 创建图生视频任务
      POST
    • 查询图生视频任务列表
      GET
    • 查询图生视频任务
      GET
  • 多图参考生视频
    • 创建多图参考生视频任务
    • 查询多图参考生视频任务列表
    • 查询多图参考生视频任务
  • 视频延长
    • 创建视频延长任务
    • 查询视频延长任务列表
    • 查询视频延长任务
  • 视频生成
    • 创建文生视频或图生视频任务
    • 创建首尾帧生视频任务
  • 任务管理
    • 获取异步任务结果
  • GPTs 相关
    • GPTs对话
      POST
    • 搜索相关 GPTs(chat格式)
      POST
    • 搜索相关 GPTs(官方格式)
      GET
    • 查询 GPTs 详情(chat格式)
      POST
    • 查询 GPTs 详情(官方格式)
      GET
    • 批量查询 GPTs 详情(chat格式)
      POST
    • 批量查询 GPTs 详情(官方格式)
      GET
  • 智谱清言(glm)
  • openai
    • 介绍
    • 项目说明
    • 导言
    • 身份验证
    • 发出请求
    • 参数详情
    • 聊天(Chat)
      • gpts 请求
      • 聊天完成块对象
    • 自动补全(Completions)
      • 完成对象
    • 嵌入(Embeddings)
      • 嵌入对象
    • 微调(Fine-tuning)
      • 微调作业对象
      • 微调作业事件对象
    • 图像(Images)
      • README
      • 图像对象
    • 模型(Models)
      • 模型对象
    • 文件(Files)
      • README
      • 文件对象
    • 审查(Moderations)
      • 调节对象
    • 助手测试版(AssistantsBeta)
      • 辅助对象
      • 辅助文件对象
    • 线程数(Threads)
      • 线程对象
    • 留言(Messages)
      • 消息对象
      • 消息文件对象
    • 运行(Runs)
      • 运行对象
      • 运行步骤对象
  • 即梦视频生成
    POST
  1. GPTs 相关

批量查询 GPTs 详情(chat格式)

开发中
POST
https://api.xi-ai.cn/v1/chat/completions

请求参数

Authorization
在 Header 添加参数
Authorization
,其值为在 Bearer 之后拼接 Token
示例:
Authorization: Bearer ********************
Body 参数application/json

示例
{
    "model": "batch-get-gpts",
    "messages": [
        {
            "role": "user",
            "content": "g-YyyyMT9XH,g-2fkFE8rbu"
        }
    ],
    "stream": false
}

请求示例代码

Shell
JavaScript
Java
Swift
Go
PHP
Python
HTTP
C
C#
Objective-C
Ruby
OCaml
Dart
R
请求示例请求示例
Shell
JavaScript
Java
Swift
curl --location 'https://api.xi-ai.cn/v1/chat/completions' \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '{
    "model": "batch-get-gpts",
    "messages": [
        {
            "role": "user",
            "content": "g-YyyyMT9XH,g-2fkFE8rbu"
        }
    ],
    "stream": false
}'

返回响应

🟢200成功
application/json
Bodyapplication/json

示例
{"id":"chatcmpl-89DXrv1L5m6QkwWF7CKlmky04jLCs","object":"chat.completion","created":1721896979,"model":"batch-get-gpts","choices":[{"index":0,"message":{"role":"assistant","content":"```json\n[\n  {\n    \"gizmo\": {\n      \"id\": \"g-YyyyMT9XH\",\n      \"organization_id\": \"org-OROoM5KiDq6bcfid37dQx4z4\",\n      \"short_url\": \"g-YyyyMT9XH-chatgpt-classic\",\n      \"author\": {\n        \"user_id\": \"user-u7SVk5APwT622QC7DPe41GHJ\",\n        \"display_name\": \"ChatGPT\",\n        \"link_to\": \"https://openai.com\",\n        \"is_verified\": true,\n        \"selected_display\": \"name\",\n        \"will_receive_support_emails\": null,\n        \"display_socials\": []\n      },\n      \"voice\": {\n        \"id\": \"ember\"\n      },\n      \"workspace_id\": null,\n      \"model\": null,\n      \"instructions\": null,\n      \"settings\": null,\n      \"display\": {\n        \"name\": \"ChatGPT Classic\",\n        \"description\": \"The latest version of GPT-4o with no additional capabilities.\",\n        \"prompt_starters\": [],\n        \"profile_pic_id\": \"file-i9IUxiJyRubSIOooY5XyfcmP\",\n        \"profile_picture_url\": \"https://filesystem.site/cdn/20240725/Turvs3jlu1nnQXCKsyzSMoxtVq1K17.jpg\",\n        \"categories\": [\n          \"other\"\n        ]\n      },\n      \"share_recipient\": \"link\",\n      \"created_at\": \"2023-11-06T01:08:05.051553+00:00\",\n      \"updated_at\": \"2024-06-13T23:11:16.704860+00:00\",\n      \"last_interacted_at\": \"2024-07-25T04:20:35.037883+00:00\",\n      \"num_interactions\": 1567,\n      \"tags\": [\n        \"unreviewable\",\n        \"public\",\n        \"first_party\"\n      ],\n      \"version\": null,\n      \"live_version\": null,\n      \"training_disabled\": null,\n      \"sharing_targets\": null,\n      \"appeal_info\": null,\n      \"vanity_metrics\": {\n        \"num_conversations\": null,\n        \"num_conversations_str\": null,\n        \"created_ago_str\": null,\n        \"review_stats\": null\n      },\n      \"workspace_approval_date\": null,\n      \"workspace_approved\": null,\n      \"sharing\": null,\n      \"current_user_permission\": {\n        \"can_read\": true,\n        \"can_view_config\": false,\n        \"can_write\": false,\n        \"can_delete\": false,\n        \"can_export\": false,\n        \"can_share\": false\n      }\n    },\n    \"tools\": [],\n    \"files\": [],\n    \"product_features\": {\n      \"attachments\": {\n        \"type\": \"retrieval\",\n        \"accepted_mime_types\": [\n          \"application/vnd.oasis.opendocument.text\",\n          \"text/x-diff\",\n          \"text/x-script.python\",\n          \"application/pdf\",\n          \"text/css\",\n          \"text/x-tex\",\n          \"text/calendar\",\n          \"application/vnd.apple.pages\",\n          \"text/vbscript\",\n          \"application/x-scala\",\n          \"application/x-rust\",\n          \"application/vnd.apple.keynote\",\n          \"text/xml\",\n          \"application/json\",\n          \"application/vnd.openxmlformats-officedocument.wordprocessingml.document\",\n          \"text/html\",\n          \"text/plain\",\n          \"application/x-powershell\",\n          \"text/x-csharp\",\n          \"text/x-c++\",\n          \"text/javascript\",\n          \"application/vnd.ms-powerpoint\",\n          \"text/x-java\",\n          \"text/x-rst\",\n          \"application/x-sql\",\n          \"application/rtf\",\n          \"text/markdown\",\n          \"text/x-php\",\n          \"application/msword\",\n          \"application/vnd.openxmlformats-officedocument.presentationml.presentation\",\n          \"text/x-vcard\",\n          \"text/x-shellscript\",\n          \"text/x-typescript\",\n          \"application/x-yaml\",\n          \"text/rtf\",\n          \"application/javascript\",\n          \"text/x-sh\",\n          \"text/x-asm\",\n          \"text/x-makefile\",\n          \"text/x-lisp\",\n          \"text/x-python\",\n          \"text/x-c\",\n          \"text/x-ruby\",\n          \"message/rfc822\"\n        ],\n        \"image_mime_types\": [\n          \"image/gif\",\n          \"image/webp\",\n          \"image/jpeg\",\n          \"image/png\"\n        ],\n        \"can_accept_all_mime_types\": true\n      }\n    }\n  },\n  {\n    \"gizmo\": {\n      \"id\": \"g-2fkFE8rbu\",\n      \"organization_id\": \"org-OROoM5KiDq6bcfid37dQx4z4\",\n      \"short_url\": \"g-2fkFE8rbu-dall-e\",\n      \"author\": {\n        \"user_id\": \"user-u7SVk5APwT622QC7DPe41GHJ\",\n        \"display_name\": \"ChatGPT\",\n        \"link_to\": \"https://openai.com\",\n        \"is_verified\": true,\n        \"selected_display\": \"name\",\n        \"will_receive_support_emails\": null,\n        \"display_socials\": []\n      },\n      \"voice\": {\n        \"id\": \"ember\"\n      },\n      \"workspace_id\": null,\n      \"model\": null,\n      \"instructions\": null,\n      \"settings\": null,\n      \"display\": {\n        \"name\": \"DALL·E\",\n        \"description\": \"Let me turn your imagination into imagery.\",\n        \"prompt_starters\": [],\n        \"profile_pic_id\": \"file-SxYQO0Fq1ZkPagkFtg67DRVb\",\n        \"profile_picture_url\": \"https://filesystem.site/cdn/20240725/Cj9I4qtxkx4xGCpp7Wxm9cZdRaXijG.webp\",\n        \"categories\": [\n          \"other\"\n        ]\n      },\n      \"share_recipient\": \"link\",\n      \"created_at\": \"2023-11-05T23:56:43.549801+00:00\",\n      \"updated_at\": \"2024-06-28T19:42:41.799038+00:00\",\n      \"last_interacted_at\": \"2024-07-25T03:09:24.123501+00:00\",\n      \"num_interactions\": 488,\n      \"tags\": [\n        \"unreviewable\",\n        \"public\",\n        \"first_party\"\n      ],\n      \"version\": null,\n      \"live_version\": null,\n      \"training_disabled\": null,\n      \"sharing_targets\": null,\n      \"appeal_info\": null,\n      \"vanity_metrics\": {\n        \"num_conversations\": null,\n        \"num_conversations_str\": null,\n        \"created_ago_str\": null,\n        \"review_stats\": null\n      },\n      \"workspace_approval_date\": null,\n      \"workspace_approved\": null,\n      \"sharing\": null,\n      \"current_user_permission\": {\n        \"can_read\": true,\n        \"can_view_config\": false,\n        \"can_write\": false,\n        \"can_delete\": false,\n        \"can_export\": false,\n        \"can_share\": false\n      }\n    },\n    \"tools\": [\n      {\n        \"id\": \"gzm_cnf_KuQKBEnzFPMwdKIWYnOoetjx~gzm_tool_P9ZWt7cmybLejZWkNxDTEpIj\",\n        \"type\": \"dalle\",\n        \"settings\": null,\n        \"metadata\": null\n      }\n    ],\n    \"files\": [],\n    \"product_features\": {\n      \"attachments\": {\n        \"type\": \"retrieval\",\n        \"accepted_mime_types\": [\n          \"text/x-script.python\",\n          \"application/x-yaml\",\n          \"application/javascript\",\n          \"text/x-vcard\",\n          \"text/x-asm\",\n          \"text/x-c++\",\n          \"text/html\",\n          \"text/x-sh\",\n          \"application/vnd.oasis.opendocument.text\",\n          \"text/x-shellscript\",\n          \"text/x-rst\",\n          \"text/css\",\n          \"text/x-c\",\n          \"text/xml\",\n          \"application/vnd.ms-powerpoint\",\n          \"application/x-scala\",\n          \"text/rtf\",\n          \"application/vnd.apple.pages\",\n          \"text/calendar\",\n          \"text/x-lisp\",\n          \"text/plain\",\n          \"application/vnd.apple.keynote\",\n          \"application/json\",\n          \"application/rtf\",\n          \"text/x-ruby\",\n          \"text/vbscript\",\n          \"text/x-csharp\",\n          \"message/rfc822\",\n          \"application/x-powershell\",\n          \"text/x-python\",\n          \"text/x-java\",\n          \"application/pdf\",\n          \"text/javascript\",\n          \"text/x-php\",\n          \"text/markdown\",\n          \"application/msword\",\n          \"text/x-tex\",\n          \"application/vnd.openxmlformats-officedocument.presentationml.presentation\",\n          \"text/x-typescript\",\n          \"text/x-makefile\",\n          \"application/vnd.openxmlformats-officedocument.wordprocessingml.document\",\n          \"application/x-sql\",\n          \"text/x-diff\",\n          \"application/x-rust\"\n        ],\n        \"image_mime_types\": [\n          \"image/png\",\n          \"image/gif\",\n          \"image/jpeg\",\n          \"image/webp\"\n        ],\n        \"can_accept_all_mime_types\": true\n      }\n    }\n  }\n]\n```"},"finish_reason":"stop"}],"usage":{"prompt_tokens":22,"completion_tokens":2024,"total_tokens":2046}}
修改于 2025-10-13 15:45:21
上一页
查询 GPTs 详情(官方格式)
下一页
批量查询 GPTs 详情(官方格式)
Built with