Universal AI API Gateway
Seamless access to Claude, ChatGPT, Gemini, and Midjourney APIs
Features
Multiple API Support
Access Claude, ChatGPT, Gemini, and Midjourney through a single gateway
Original API Compatible
Maintain the same request format as official APIs
Stream Support
Full support for streaming responses
API Documentation
Claude API
Base URL
https://proxy-ai.yahool.com.cn/claude
Headers
{
"Content-Type": "application/json",
"Authorization": "Bearer YOUR_API_KEY",
"anthropic-version": "2023-06-01"
}
Endpoints
/v1/messages- Send and receive messages
ChatGPT API
Base URL
https://proxy-ai.yahool.com.cn/openai
Headers
{
"Content-Type": "application/json",
"Authorization": "Bearer YOUR_API_KEY"
}
Endpoints
/v1/chat/completions- Chat completions/v1/models- List models
Gemini API
Base URL
https://proxy-ai.yahool.com.cn/gemini
Headers
{
"Content-Type": "application/json"
}
Endpoints
/v1/models/gemini-pro/generateContent- Generate content/v1/models- List models
Midjourney API
Base URL
https://proxy-ai.yahool.com.cn/midjourney
Headers
{
"Content-Type": "application/json",
"Authorization": "Bearer YOUR_API_KEY"
}
Endpoints
/api/v2/imagine- Create image