Blog
Uncategorized1 phút đọc

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

  1. Register for an account
  2. Get your API key
  3. Start building with our unified API

Get Your API Key Now

Start building with 50+ AI models through one unified gateway.

Tạo Tài Khoản
Nhận Khóa API