Skip to main content
Beta APIThis API is currently in the testing phase (Beta) and may undergo significant updates in the future. Exercise caution when using it in production environments.
The Responses API (Beta) from AIHubMix provides a unified interface for accessing multiple models compatible with the OpenAI Responses API, , including GPT, Claude, GLM, Gemini, etc. This interface also offers enhanced features, including:
  • Reasoning
  • Tool Calling

Base URL

https://aihubmix.com/v1/responses

Authentication

All requests require authentication via the AIHubMix API Key.
import requests

url = "https://aihubmix.com/v1/responses"

headers = {
    "Authorization": "Bearer YOUR_AIHUBMIX_API_KEY",
    "Content-Type": "application/json"
}

data = {
    "model": "claude-sonnet-4-6",
    "input": "Hello, world!"
}

response = requests.post(url, headers=headers, json=data)

print(response.status_code)
print(response.json())