Support the Openai Responses API multi-function interface, the following functions have been launched:

  • Text input: Text input
  • Image input: Image input
  • Streaming: Streaming
  • Web search: Web search
  • Reasoning: Reasoning
  • Functions: Functions
  • image_generation tool usage: Image drawing and generation are billed under gpt-image-1.
  • Code Interpreter: Allow models to write and run Python to solve problems
  • Remote MCP: Calling a remote MCP server
  • Computer Use: Computer Use

Usage (Python call):

Same as the official OpenAI call method, just replace api_key and base_url for forwarding. Mainland China can access directly.

client = OpenAI(
    api_key="AIHUBMIX_API_KEY", # Replace with the key you generated in AiHubMix
    base_url="https://aihubmix.com/v1"
)

For inference models, the output inference summary can be controlled using the following parameter, with the detail richness of the summary ranked as detailed > auto > None, where auto provides the best balance.

"summary": "auto"
from openai import OpenAI

client = OpenAI(
    api_key="AIHUBMIX_API_KEY", # Your Key "sk-***"
    base_url="https://aihubmix.com/v1"
)

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

print(response)

Note:

  1. The latest codex-mini-latest does not support search.
  2. The Computer use feature requires integration with Playwright. It’s recommended to refer to the official repository.

Known issues:

  • Use cases are complex to invoke
  • Takes many screenshots, which is time-consuming and often unreliable
  • May trigger CAPTCHA or Cloudflare human verification, potentially leading to infinite loops