1. Anthropic 接口
xinglianapi
  • 价格-充值-分组-模型价格介绍
    XINGLIAN
  • 站点操作指南-快速上手调用大模型API
    XINGLIAN
  • FAQ常见问题
    • 问题自查方法
    • 入门必看
      • 我注册并且充值了,key 在哪?
      • 如何充值?
      • 可以使用哪些大模型 API ?
      • 如何获取 OpenAI Key ? 如何获取 Claude Key ? 如何获取 Gemini Key ?等等
      • 怎么更换模型使用?
      • 接口在中国大陆能使用吗?
      • 按量计费还是按月支付?
      • 配置模型的时候 URL 用哪个?
      • 怎么检查一次调用消耗了多少 Token?
      • 请问我余额为负了怎么回事?
    • 常见误区
      • 明明余额还有很多,为什么显示令牌无法使用?
      • Key 为什么不能用?为什么我调用 API 没反应?
      • 新建令牌参数怎么填?
      • 为什么调用接口返回“无效的令牌”?
      • API 接口返回报错,报错代码 400 401 403 404 405 413 429 500 503 504 524 是什么意思?
  • 软件/插件 配置xinglianapi教程
    • IDE 与 AI 编程助手 (IDE & Coding Assistants)
      • vscode接入xinglianapi教程
      • Trae 配置使用 API 教程
      • Cursor接入xinglianapi教程
      • opencode接入api教程
      • GPT-codex安装教程
      • claudecode安装教程(win/mac)
    • 桌面级 AI 客户端 (Desktop Clients)
      • xinglianapi接入Cherry Studio
      • xinglianapi接入chatbox
      • WorkBuddy 接入4sapi教程
    • 工作流与自动化工具 (Workflows & Automation)
      • Coze 配置使用 xinglianapi 教程
      • Dify 配置使用 xinglianapi 教程
      • n8n配置使用xinglianapi教程
      • cc switch使用教程
      • cc+ccs配置deepseek|glm模型
      • open claw在云服务器linux环境下通过终端配置api
    • 开源项目与高级部署 (Open Source & Infrastructure)
      • 腾讯云openclaw接入xinglianapi教程
      • Hermes Agent linux安装接入4sapi教程
      • OpenClaw 接入 API 教程
  • 模型接口
    • Vidu
      • 创建视频任务 - Vidu
      • 查询任务状态
      • 拉取视频流(代理)
    • 智谱
      • Chat Completions 接口
        • 文本对话
        • 流式输出
        • 工具调用
        • 联网搜索
      • Messages 接口
        • 文本对话
        • 流式输出
        • 深度思考
        • 工具调用
    • 豆包
      • doubao-seedream-4-0-250828-文生图
      • doubao-seedream-4-0-250828-图生图
      • doubao-seedream-4-0-250828-多图生图
    • 3D模型
      • Hunyuan3D-2
    • MiniMax
      • Chat Completions 接口
        • Chat Completions API
        • 图片理解
        • 视频理解
        • 深度思考
        • 流式输出
        • 工具调用
      • Responses 接口
        • Responses API
        • 简单对话
        • 对话历史
        • 流式输出
        • 工具调用
        • 多轮工具调用
      • Anthropic 接口
        • Anthropic API
          POST
        • 图片理解
          POST
        • 视频理解
          POST
        • 深度思考
          POST
        • 流式输出
          POST
        • 工具调用
          POST
    • DeepSeek
      • Chat Completions 接口
        • Chat Completions API
        • 思考模式
        • 工具调用
        • 流式输出
      • Response 接口
        • Response API
        • 思考模式
        • 工具调用
        • 流式输出
    • 可灵 Kling
      • 创建视频任务 - 可灵 Kling
      • 查询任务状态
      • 拉取视频流(代理)
    • 腾讯混元 hy
      • chat completions 接口
        • 简单对话
        • 流式请求
        • 深度思考
        • 多轮对话
        • 工具调用
    • 月之暗面 Kimi
      • Chat Completions 接口
        • Chat Completions API
        • 简单对话
        • 推理对话
        • 流式输出
        • 视觉输入
        • 工具调用
    • 阿里 QWen
      • Chat Completions 接口
        • 文本对话
        • 流式输出
        • 工具调用
        • 视频输入
        • 图像输入
        • 联网搜索
      • Messages 接口
        • 文本对话
        • 流式输出
        • 深度思考
        • 图片理解
        • 视频理解
        • 工具调用
    • 阿里 HappyHorse
      • 创建视频任务 - 阿里 happyhorse
      • 查询任务状态
      • 拉取视频流(代理)
  • 个人API接口文档
    • 获取个人token
    • 一、个人信息
      • 1. 获取个人信息
      • 2. 修改个人信息
      • 3. 注销账户
      • 4. 获取可用模型列表
      • 5. 获取用户分组
      • 6. 更新用户设置(额度预警等)
      • 7. 生成系统访问令牌
    • 二、令牌管理(API Key)
      • 1. 获取令牌列表
      • 2.搜索令牌
      • 3. 获取单个令牌
      • 4.创建令牌
      • 5.更新令牌
      • 6. 删除令牌
      • 7.批量删除令牌
      • 8.获取单个令牌(明文显示)
    • 三、日志与统计
      • 1. 查看个人使用日志
      • 2. 个人日志统计
      • 3. 令牌每日消耗
      • 4. 令牌模型消耗预览(Top 3)
      • 5. 令牌全量模型消耗
      • 6. 导出令牌每日消耗 XLSX
      • 7. 个人额度时序数据
  • 数据模型
    • 示例数据模型
      • 未命名数据模型
      • Pet
      • Category
      • Tag
  1. Anthropic 接口

流式输出

POST
/v1/messages

请求参数

Header 参数

Body 参数application/json必填

示例
{
    "model": "MiniMax-M3",
    "messages": [
        {
            "role": "user",
            "content": [
                {
                    "type": "text",
                    "text": "这张图片的内容是什么?"
                },
                {
                    "type": "image",
                    "source": {
                        "type": "url",
                        "url": "https://filecdn.minimax.chat/public/fe9d04da-f60e-444d-a2e0-18ae743add33.jpeg"
                    }
                }
            ]
        }
    ],
    "stream": true,
    "max_tokens": 500,
    "thinking": {
        "type": "adaptive"
    }
}

请求示例代码

Shell
JavaScript
Java
Swift
Go
PHP
Python
HTTP
C
C#
Objective-C
Ruby
OCaml
Dart
R
请求示例请求示例
Shell
JavaScript
Java
Swift
curl --location '/v1/messages' \
--header 'Authorization: Bearer {{token}}' \
--header 'Content-Type: application/json' \
--header 'Content-Type: application/json' \
--data '{
    "model": "MiniMax-M3",
    "messages": [
        {
            "role": "user",
            "content": [
                {
                    "type": "text",
                    "text": "这张图片的内容是什么?"
                },
                {
                    "type": "image",
                    "source": {
                        "type": "url",
                        "url": "https://filecdn.minimax.chat/public/fe9d04da-f60e-444d-a2e0-18ae743add33.jpeg"
                    }
                }
            ]
        }
    ],
    "stream": true,
    "max_tokens": 500,
    "thinking": {
        "type": "adaptive"
    }
}'

返回响应

🟢200成功
application/json
Bodyapplication/json

示例
[
  {
    "type": "message_start",
    "message": {
      "id": "066a38a98a4ffbf5554a468fe0cbedf6",
      "type": "message",
      "role": "assistant",
      "content": [],
      "model": "MiniMax-M3",
      "stop_reason": null,
      "stop_sequence": null,
      "usage": {
        "input_tokens": 0,
        "output_tokens": 0,
        "cache_creation_input_tokens": 0,
        "cache_read_input_tokens": 1365
      },
      "service_tier": "standard"
    }
  },
  {
    "type": "ping"
  },
  {
    "type": "content_block_start",
    "index": 0,
    "content_block": {
      "type": "thinking",
      "thinking": ""
    }
  },
  {
    "type": "content_block_delta",
    "index": 0,
    "delta": {
      "type": "thinking_delta",
      "thinking": "The user"
    }
  },
  {
    "type": "content_block_delta",
    "index": 0,
    "delta": {
      "type": "thinking_delta",
      "thinking": " is asking in Chinese what the content of this image is. Let me describe it in Chinese.\n\nThe"
    }
  },
  {
    "type": "content_block_delta",
    "index": 0,
    "delta": {
      "type": "thinking_delta",
      "thinking": " image shows a close-up portrait of a young girl with curly/wavy brown hair and bangs."
    }
  },
  {
    "type": "content_block_delta",
    "index": 0,
    "delta": {
      "type": "thinking_delta",
      "thinking": " She has brown eyes and is smiling slightly at the camera. She's wearing a cream/iv"
    }
  },
  {
    "type": "content_block_delta",
    "index": 0,
    "delta": {
      "type": "thinking_delta",
      "thinking": "ory colored dress with lace details and ruffles. The lighting is soft and warm, creating a classic"
    }
  },
  {
    "type": "content_block_delta",
    "index": 0,
    "delta": {
      "type": "thinking_delta",
      "thinking": " portrait photography feel. The background is a neutral olive/grayish color, blurred to keep focus"
    }
  },
  {
    "type": "content_block_delta",
    "index": 0,
    "delta": {
      "type": "thinking_delta",
      "thinking": " on the subject."
    }
  },
  {
    "type": "content_block_delta",
    "index": 0,
    "delta": {
      "type": "signature_delta",
      "signature": "6deea14a039646c64cff2cdc13db8e1aa093c3f7334bfd4941ee1eee8663b214"
    }
  },
  {
    "type": "content_block_stop",
    "index": 0
  },
  {
    "type": "content_block_start",
    "index": 1,
    "content_block": {
      "type": "text",
      "text": ""
    }
  },
  {
    "type": "content_block_delta",
    "index": 1,
    "delta": {
      "type": "text_delta",
      "text": "这张图片是一张温馨的儿童人像摄影作品,主要内容如下"
    }
  },
  {
    "type": "content_block_delta",
    "index": 1,
    "delta": {
      "type": "text_delta",
      "text": ":\n\n**人物:**\n- 一个大约5-7岁的小女孩\n- 有着卷曲蓬"
    }
  },
  {
    "type": "content_block_delta",
    "index": 1,
    "delta": {
      "type": "text_delta",
      "text": "松的棕色头发,留着刘海\n- 有着明亮的棕色大眼睛\n- 微微"
    }
  },
  {
    "type": "content_block_delta",
    "index": 1,
    "delta": {
      "type": "text_delta",
      "text": "带着甜美的微笑看向镜头\n\n**服装:**\n- 身穿一件米白色/象牙色的"
    }
  },
  {
    "type": "content_block_delta",
    "index": 1,
    "delta": {
      "type": "text_delta",
      "text": "连衣裙\n- 衣领和肩部有精致的蕾丝花边和褶"
    }
  },
  {
    "type": "content_block_delta",
    "index": 1,
    "delta": {
      "type": "text_delta",
      "text": "皱装饰\n\n**拍摄风格:**\n- 经典的近距离肖像构图\n- 柔和的暖色调"
    }
  },
  {
    "type": "content_block_delta",
    "index": 1,
    "delta": {
      "type": "text_delta",
      "text": "光线,营造出温馨的氛围\n- 背景是模糊的橄榄灰色调,使人物更加突出"
    }
  },
  {
    "type": "content_block_delta",
    "index": 1,
    "delta": {
      "type": "text_delta",
      "text": "\n- 整体呈现出专业的人像摄影质感,光影处理细腻\n\n这是一张"
    }
  },
  {
    "type": "content_block_delta",
    "index": 1,
    "delta": {
      "type": "text_delta",
      "text": "很有艺术感的儿童写真照,捕捉到了小女孩天真可爱的瞬间。"
    }
  },
  {
    "type": "content_block_stop",
    "index": 1
  },
  {
    "type": "message_delta",
    "delta": {
      "stop_reason": "end_turn"
    },
    "usage": {
      "input_tokens": 1251,
      "output_tokens": 264,
      "cache_creation_input_tokens": 0,
      "cache_read_input_tokens": 114
    }
  },
  {
    "type": "message_stop"
  }
]
修改于 2026-08-20 06:46:48
上一页
深度思考
下一页
工具调用
Built with