Replace your OpenAI base URL with ModelHub to access 100+ models through one API.
# Python (OpenAI SDK) from openai import OpenAI client = OpenAI( base_url="https://api.modelhub.ai/v1", api_key="YOUR_API_KEY" ) response = client.chat.completions.create( model="gpt-4o", messages=[{"role": "user", "content": "Hello!"}] )
# curl curl https://api.modelhub.ai/v1/chat/completions \ -H "Content-Type: application/json" \ -H "Authorization: Bearer YOUR_API_KEY" \ -d '{ "model": "gpt-4o", "messages": [{"role": "user", "content": "Hello!"}] }'
Sign up to get your API key and start making requests.