支持 Openai 的 Responses API 多功能接口,已经上线的功能接口如下:
  • Text input:文本输入
  • Image input:图文输入
  • Streaming:流式调用
  • Web search:搜索
  • Deep research:深度研究
  • Reasoning:推理深度,支持 3 档
  • Functions:函数调用
  • image_generation:绘图工具调用,图片生成部分按 gpt-image-1 计价
  • Code Interpreter:代码解析器
  • Remote MCP:MCP 调用
  • Computer Use:自动操作

使用 (Python 调用):

与官方的 OpenAI 调用方式一致,只是替换 api_keybase_url 进行转发。 大陆可以直连访问。
client = OpenAI(
    api_key="AIHUBMIX_API_KEY", # 换成你在后台生成的 Key "sk-***"
    base_url="https://aihubmix.com/v1"
)
  1. 对于推理模型,支持通过以下参数来输出推理总结,总结细节的丰富程度为 detailed > auto > None,其中 auto 为最佳平衡。
"summary": "auto" 
  1. 深度推理模型可选:o3-deep-researcho4-mini-deep-research,仅支持 responses 端口
from openai import OpenAI
import os

client = OpenAI(
    api_key="AIHUBMIX_API_KEY", # 换成你在后台生成的 Key "sk-***"
    base_url="https://aihubmix.com/v1"
)

response = client.responses.create(
  model="gpt-4o-mini", # codex-mini-latest 可用
  input="Tell me a three sentence bedtime story about a unicorn."
)

print(response)
注意:
  1. 最新的 `codex-mini-latest` 不支持搜索
  2. Computer use 需要配合 Praywright 使用,建议参考官方仓库
已知细节问题:
  • 调用用例复杂
  • 截图大量,耗时久,任务成功率低
  • 或触发 CAPTCHA 验证或 Cloudflare 真人验证,可能遇到无限循环