1. chatgpt
ai.yijiarj.cn文档
  • 引言
  • 教程文档
    • 一加API充值教程
    • 文本对话模型使用方法
    • openclaw 小龙虾使用我们网站模型教程
    • 程序员写代码必备 claude code使用claude模型连接一加使用教程
    • sora教程文件夹
      • sora2使用教程方法①推荐使用
      • 生成角色:人物、物品一致性教程(实现人物、声音完全一致)
      • 局部修改remix使用教程
      • 分镜模式(故事板)使用教程
      • sora2使用教程方法②cherry studio版(不建议用这个太繁琐,建议用第一个教程)
      • 视频及角色常见违规情况
      • 新系统工作流使用方法
  • API接口文档
    • 接口调用流程
    • 共用接口
      • 通用任务进度查询
      • openai聊天接口
      • form-data文件file格式传输样例
    • 系统接口
      • 查询令牌额度情况
      • 获取模型实时价格
    • sora-2
      • 创建视频-yijia模型
      • 创建视频-非yijia模型
      • 编辑视频-非yijia模型
      • 创建角色
      • 查询角色
      • 删除角色
      • 获取视频文件内容接口-非yijia模型
      • 获取角色信息列表
    • veo
      • 自建分组创建视频
      • 创建veo_3_1-fast视频
      • 查询veo_3_1-fast任务
    • grok
      • grok视频生成
    • 香蕉
      • 香蕉生图-自建分组
      • nano-banana-2模型
      • 香蕉pro文/图生图(异步)-仅适用yijia模型
      • 香蕉-文/图生图-不适用yijia模型
    • chatgpt
      • gpt文本对话
        POST
    • 即梦seedance
      • 创建视频任务
    • gemini聊天接口
      POST
    • chat聊天接口(流式输出)
      POST
    • Sora2图生视频(异步请求)-链接传图片
      POST
    • (即将废弃,请调用链接传图片接口)Sora2图生视频(异步请求)
      POST
  • 其他第三方接入教程
    • 扣子工作流使用一加API官方接口教程
  1. chatgpt

gpt文本对话

国内线路(大带宽)
https://api.yijiarj.cn
国内线路(大带宽)
https://api.yijiarj.cn
POST
/v1/chat/completions

请求参数

Header 参数

Body 参数application/json必填

示例

返回响应

🟢200成功
text/event-stream
Body

请求示例请求示例
Shell
JavaScript
Java
Swift
curl --location --request POST 'https://api.yijiarj.cn/v1/chat/completions' \
--header 'Authorization: Bearer ' \
--header 'Content-Type: application/json' \
--data-raw '{
  "model": "gpt-5.2",
  "max_tokens": 1000,
  "messages": [
    {
      "role": "system",
      "content": "You are a helpful assistant."
    },
    {
      "role": "user",
      "content": "你好"
    }
  ],
  "temperature": 1.0,
  "stream": true,
  "stream_options": {
    "include_usage": true
  }
}'
响应示例响应示例
data: {"id":"foaicmpl-a42f2c84-8676-4dad-b844-f9daf7c6535c","object":"chat.completion.chunk","created":1767686491,"model":"gpt-5.2","choices":[{"index":0,"delta":{"role":"assistant"},"finish_reason":null}]}

data: {"id":"foaicmpl-a42f2c84-8676-4dad-b844-f9daf7c6535c","object":"chat.completion.chunk","created":1767686491,"model":"gpt-5.2","choices":[{"index":0,"delta":{"content":"你好"},"finish_reason":null}]}

data: {"id":"foaicmpl-a42f2c84-8676-4dad-b844-f9daf7c6535c","object":"chat.completion.chunk","created":1767686491,"model":"gpt-5.2","choices":[{"index":0,"delta":{"content":"!"},"finish_reason":null}]}

data: {"id":"foaicmpl-a42f2c84-8676-4dad-b844-f9daf7c6535c","object":"chat.completion.chunk","created":1767686491,"model":"gpt-5.2","choices":[{"index":0,"delta":{"content":"我"},"finish_reason":null}]}

data: {"id":"foaicmpl-a42f2c84-8676-4dad-b844-f9daf7c6535c","object":"chat.completion.chunk","created":1767686491,"model":"gpt-5.2","choices":[{"index":0,"delta":{"content":"可以"},"finish_reason":null}]}

data: {"id":"foaicmpl-a42f2c84-8676-4dad-b844-f9daf7c6535c","object":"chat.completion.chunk","created":1767686491,"model":"gpt-5.2","choices":[{"index":0,"delta":{"content":"帮"},"finish_reason":null}]}

data: {"id":"foaicmpl-a42f2c84-8676-4dad-b844-f9daf7c6535c","object":"chat.completion.chunk","created":1767686491,"model":"gpt-5.2","choices":[{"index":0,"delta":{"content":"你"},"finish_reason":null}]}

data: {"id":"foaicmpl-a42f2c84-8676-4dad-b844-f9daf7c6535c","object":"chat.completion.chunk","created":1767686491,"model":"gpt-5.2","choices":[{"index":0,"delta":{"content":"写"},"finish_reason":null}]}

data: {"id":"foaicmpl-a42f2c84-8676-4dad-b844-f9daf7c6535c","object":"chat.completion.chunk","created":1767686491,"model":"gpt-5.2","choices":[{"index":0,"delta":{"content":"代码"},"finish_reason":null}]}

data: {"id":"foaicmpl-a42f2c84-8676-4dad-b844-f9daf7c6535c","object":"chat.completion.chunk","created":1767686491,"model":"gpt-5.2","choices":[{"index":0,"delta":{"content":"、"},"finish_reason":null}]}

data: {"id":"foaicmpl-a42f2c84-8676-4dad-b844-f9daf7c6535c","object":"chat.completion.chunk","created":1767686491,"model":"gpt-5.2","choices":[{"index":0,"delta":{"content":"排"},"finish_reason":null}]}

data: {"id":"foaicmpl-a42f2c84-8676-4dad-b844-f9daf7c6535c","object":"chat.completion.chunk","created":1767686491,"model":"gpt-5.2","choices":[{"index":0,"delta":{"content":"查"},"finish_reason":null}]}

data: {"id":"foaicmpl-a42f2c84-8676-4dad-b844-f9daf7c6535c","object":"chat.completion.chunk","created":1767686491,"model":"gpt-5.2","choices":[{"index":0,"delta":{"content":"报"},"finish_reason":null}]}

data: {"id":"foaicmpl-a42f2c84-8676-4dad-b844-f9daf7c6535c","object":"chat.completion.chunk","created":1767686491,"model":"gpt-5.2","choices":[{"index":0,"delta":{"content":"错"},"finish_reason":null}]}

data: {"id":"foaicmpl-a42f2c84-8676-4dad-b844-f9daf7c6535c","object":"chat.completion.chunk","created":1767686491,"model":"gpt-5.2","choices":[{"index":0,"delta":{"content":"、"},"finish_reason":null}]}

data: {"id":"foaicmpl-a42f2c84-8676-4dad-b844-f9daf7c6535c","object":"chat.completion.chunk","created":1767686491,"model":"gpt-5.2","choices":[{"index":0,"delta":{"content":"解释"},"finish_reason":null}]}

data: {"id":"foaicmpl-a42f2c84-8676-4dad-b844-f9daf7c6535c","object":"chat.completion.chunk","created":1767686491,"model":"gpt-5.2","choices":[{"index":0,"delta":{"content":"代码"},"finish_reason":null}]}

data: {"id":"foaicmpl-a42f2c84-8676-4dad-b844-f9daf7c6535c","object":"chat.completion.chunk","created":1767686491,"model":"gpt-5.2","choices":[{"index":0,"delta":{"content":"逻"},"finish_reason":null}]}

data: {"id":"foaicmpl-a42f2c84-8676-4dad-b844-f9daf7c6535c","object":"chat.completion.chunk","created":1767686491,"model":"gpt-5.2","choices":[{"index":0,"delta":{"content":"辑"},"finish_reason":null}]}

data: {"id":"foaicmpl-a42f2c84-8676-4dad-b844-f9daf7c6535c","object":"chat.completion.chunk","created":1767686491,"model":"gpt-5.2","choices":[{"index":0,"delta":{"content":"、"},"finish_reason":null}]}

data: {"id":"foaicmpl-a42f2c84-8676-4dad-b844-f9daf7c6535c","object":"chat.completion.chunk","created":1767686491,"model":"gpt-5.2","choices":[{"index":0,"delta":{"content":"优化"},"finish_reason":null}]}

data: {"id":"foaicmpl-a42f2c84-8676-4dad-b844-f9daf7c6535c","object":"chat.completion.chunk","created":1767686491,"model":"gpt-5.2","choices":[{"index":0,"delta":{"content":"性能"},"finish_reason":null}]}

data: {"id":"foaicmpl-a42f2c84-8676-4dad-b844-f9daf7c6535c","object":"chat.completion.chunk","created":1767686491,"model":"gpt-5.2","choices":[{"index":0,"delta":{"content":"或"},"finish_reason":null}]}

data: {"id":"foaicmpl-a42f2c84-8676-4dad-b844-f9daf7c6535c","object":"chat.completion.chunk","created":1767686491,"model":"gpt-5.2","choices":[{"index":0,"delta":{"content":"补"},"finish_reason":null}]}

data: {"id":"foaicmpl-a42f2c84-8676-4dad-b844-f9daf7c6535c","object":"chat.completion.chunk","created":1767686491,"model":"gpt-5.2","choices":[{"index":0,"delta":{"content":"测试"},"finish_reason":null}]}

data: {"id":"foaicmpl-a42f2c84-8676-4dad-b844-f9daf7c6535c","object":"chat.completion.chunk","created":1767686491,"model":"gpt-5.2","choices":[{"index":0,"delta":{"content":"。"},"finish_reason":null}]}

data: {"id":"foaicmpl-a42f2c84-8676-4dad-b844-f9daf7c6535c","object":"chat.completion.chunk","created":1767686491,"model":"gpt-5.2","choices":[{"index":0,"delta":{"content":"  \n"},"finish_reason":null}]}

data: {"id":"foaicmpl-a42f2c84-8676-4dad-b844-f9daf7c6535c","object":"chat.completion.chunk","created":1767686491,"model":"gpt-5.2","choices":[{"index":0,"delta":{"content":"你"},"finish_reason":null}]}

data: {"id":"foaicmpl-a42f2c84-8676-4dad-b844-f9daf7c6535c","object":"chat.completion.chunk","created":1767686491,"model":"gpt-5.2","choices":[{"index":0,"delta":{"content":"现在"},"finish_reason":null}]}

data: {"id":"foaicmpl-a42f2c84-8676-4dad-b844-f9daf7c6535c","object":"chat.completion.chunk","created":1767686491,"model":"gpt-5.2","choices":[{"index":0,"delta":{"content":"想"},"finish_reason":null}]}

data: {"id":"foaicmpl-a42f2c84-8676-4dad-b844-f9daf7c6535c","object":"chat.completion.chunk","created":1767686491,"model":"gpt-5.2","choices":[{"index":0,"delta":{"content":"做"},"finish_reason":null}]}

data: {"id":"foaicmpl-a42f2c84-8676-4dad-b844-f9daf7c6535c","object":"chat.completion.chunk","created":1767686491,"model":"gpt-5.2","choices":[{"index":0,"delta":{"content":"什么"},"finish_reason":null}]}

data: {"id":"foaicmpl-a42f2c84-8676-4dad-b844-f9daf7c6535c","object":"chat.completion.chunk","created":1767686491,"model":"gpt-5.2","choices":[{"index":0,"delta":{"content":"?"},"finish_reason":null}]}

data: {"id":"foaicmpl-a42f2c84-8676-4dad-b844-f9daf7c6535c","object":"chat.completion.chunk","created":1767686491,"model":"gpt-5.2","choices":[{"index":0,"delta":{"content":"如果"},"finish_reason":null}]}

data: {"id":"foaicmpl-a42f2c84-8676-4dad-b844-f9daf7c6535c","object":"chat.completion.chunk","created":1767686491,"model":"gpt-5.2","choices":[{"index":0,"delta":{"content":"有"},"finish_reason":null}]}

data: {"id":"foaicmpl-a42f2c84-8676-4dad-b844-f9daf7c6535c","object":"chat.completion.chunk","created":1767686491,"model":"gpt-5.2","choices":[{"index":0,"delta":{"content":"报"},"finish_reason":null}]}

data: {"id":"foaicmpl-a42f2c84-8676-4dad-b844-f9daf7c6535c","object":"chat.completion.chunk","created":1767686491,"model":"gpt-5.2","choices":[{"index":0,"delta":{"content":"错"},"finish_reason":null}]}

data: {"id":"foaicmpl-a42f2c84-8676-4dad-b844-f9daf7c6535c","object":"chat.completion.chunk","created":1767686491,"model":"gpt-5.2","choices":[{"index":0,"delta":{"content":"/"},"finish_reason":null}]}

data: {"id":"foaicmpl-a42f2c84-8676-4dad-b844-f9daf7c6535c","object":"chat.completion.chunk","created":1767686491,"model":"gpt-5.2","choices":[{"index":0,"delta":{"content":"需求"},"finish_reason":null}]}

data: {"id":"foaicmpl-a42f2c84-8676-4dad-b844-f9daf7c6535c","object":"chat.completion.chunk","created":1767686491,"model":"gpt-5.2","choices":[{"index":0,"delta":{"content":","},"finish_reason":null}]}

data: {"id":"foaicmpl-a42f2c84-8676-4dad-b844-f9daf7c6535c","object":"chat.completion.chunk","created":1767686491,"model":"gpt-5.2","choices":[{"index":0,"delta":{"content":"贴"},"finish_reason":null}]}

data: {"id":"foaicmpl-a42f2c84-8676-4dad-b844-f9daf7c6535c","object":"chat.completion.chunk","created":1767686491,"model":"gpt-5.2","choices":[{"index":0,"delta":{"content":"一下"},"finish_reason":null}]}

data: {"id":"foaicmpl-a42f2c84-8676-4dad-b844-f9daf7c6535c","object":"chat.completion.chunk","created":1767686491,"model":"gpt-5.2","choices":[{"index":0,"delta":{"content":"相关"},"finish_reason":null}]}

data: {"id":"foaicmpl-a42f2c84-8676-4dad-b844-f9daf7c6535c","object":"chat.completion.chunk","created":1767686491,"model":"gpt-5.2","choices":[{"index":0,"delta":{"content":"日志"},"finish_reason":null}]}

data: {"id":"foaicmpl-a42f2c84-8676-4dad-b844-f9daf7c6535c","object":"chat.completion.chunk","created":1767686491,"model":"gpt-5.2","choices":[{"index":0,"delta":{"content":"、"},"finish_reason":null}]}

data: {"id":"foaicmpl-a42f2c84-8676-4dad-b844-f9daf7c6535c","object":"chat.completion.chunk","created":1767686491,"model":"gpt-5.2","choices":[{"index":0,"delta":{"content":"代码"},"finish_reason":null}]}

data: {"id":"foaicmpl-a42f2c84-8676-4dad-b844-f9daf7c6535c","object":"chat.completion.chunk","created":1767686491,"model":"gpt-5.2","choices":[{"index":0,"delta":{"content":"片"},"finish_reason":null}]}

data: {"id":"foaicmpl-a42f2c84-8676-4dad-b844-f9daf7c6535c","object":"chat.completion.chunk","created":1767686491,"model":"gpt-5.2","choices":[{"index":0,"delta":{"content":"段"},"finish_reason":null}]}

data: {"id":"foaicmpl-a42f2c84-8676-4dad-b844-f9daf7c6535c","object":"chat.completion.chunk","created":1767686491,"model":"gpt-5.2","choices":[{"index":0,"delta":{"content":"或"},"finish_reason":null}]}

data: {"id":"foaicmpl-a42f2c84-8676-4dad-b844-f9daf7c6535c","object":"chat.completion.chunk","created":1767686491,"model":"gpt-5.2","choices":[{"index":0,"delta":{"content":"仓"},"finish_reason":null}]}

data: {"id":"foaicmpl-a42f2c84-8676-4dad-b844-f9daf7c6535c","object":"chat.completion.chunk","created":1767686491,"model":"gpt-5.2","choices":[{"index":0,"delta":{"content":"库"},"finish_reason":null}]}

data: {"id":"foaicmpl-a42f2c84-8676-4dad-b844-f9daf7c6535c","object":"chat.completion.chunk","created":1767686491,"model":"gpt-5.2","choices":[{"index":0,"delta":{"content":"目录"},"finish_reason":null}]}

data: {"id":"foaicmpl-a42f2c84-8676-4dad-b844-f9daf7c6535c","object":"chat.completion.chunk","created":1767686491,"model":"gpt-5.2","choices":[{"index":0,"delta":{"content":"结构"},"finish_reason":null}]}

data: {"id":"foaicmpl-a42f2c84-8676-4dad-b844-f9daf7c6535c","object":"chat.completion.chunk","created":1767686491,"model":"gpt-5.2","choices":[{"index":0,"delta":{"content":"也"},"finish_reason":null}]}

data: {"id":"foaicmpl-a42f2c84-8676-4dad-b844-f9daf7c6535c","object":"chat.completion.chunk","created":1767686491,"model":"gpt-5.2","choices":[{"index":0,"delta":{"content":"行"},"finish_reason":null}]}

data: {"id":"foaicmpl-a42f2c84-8676-4dad-b844-f9daf7c6535c","object":"chat.completion.chunk","created":1767686491,"model":"gpt-5.2","choices":[{"index":0,"delta":{"content":"。"},"finish_reason":null}]}

data: {"id":"foaicmpl-a42f2c84-8676-4dad-b844-f9daf7c6535c","object":"chat.completion.chunk","created":1767686491,"model":"gpt-5.2","choices":[{"index":0,"delta":{},"finish_reason":"stop"}],"usage":{"prompt_tokens":5430,"completion_tokens":59,"total_tokens":5489,"prompt_tokens_details":{"cached_tokens":5248}}}

data: [DONE]

修改于 2026-01-06 08:03:42
上一页
香蕉-文/图生图-不适用yijia模型
下一页
创建视频任务
Built with