Uncategorized1 min de lecture
getting-started
title: Getting Started with AI API Hub description: Learn how to integrate AI API Hub into your application with our OpenAI-compatible API format. date: 2026-06-10 author: AI API Hub tags:
- guide
- getting-started
- openai category: Tutorials image: /blog/getting-started.jpg
Introduction
AI API Hub provides a unified API gateway to access 50+ AI models from leading providers. This guide will walk you through the integration process.
Why AI API Hub?
- Single API Key: Access all models with one key
- OpenAI Compatible: Use existing OpenAI SDK by changing the base URL
- USDT Payments: Pay with cryptocurrency
- Fast Activation: Get your API key instantly
Quick Start
import openai
client = openai.OpenAI(
api_key="your-api-key",
base_url="https://api.apiyihe.org/v1"
)
response = client.chat.completions.create(
model="gpt-4o",
messages=[
{"role": "user", "content": "Hello, AI API Hub!"}
]
)
print(response.choices[0].message.content)
Supported Models
AI API Hub supports models from OpenAI, Anthropic, Google, DeepSeek, Qwen, Doubao, and more.
Next Steps
- Register for an account
- Get your API key
- Start building with our unified API