一个 API,接入
全球顶级 AI 模型
GPT、Claude、Gemini、Sora 到 Nano Banana —— 用一套 OpenAI 兼容接口全部接入,价格低至官方 3 折。
注册即送 20 Credits 体验额度,无需信用卡
from openai import OpenAI
client = OpenAI(
base_url="https://aiboxapi.com/v1",
api_key="sk-...",
)
resp = client.chat.completions.create(
model="gpt-4o",
messages=[{"role": "user", "content": "用一句话介绍 AiBox"}],
)
print(resp.choices[0].message.content)- 500+
- AI 模型
- 70%
- 最高省成本
- 99.9%
- 服务可用性
- OpenAI
- 接口兼容
聚合全球顶级 AI 供应商
文本 · 图像 · 视频 · 音频
一套接口全覆盖
无需在多家平台间切换,用同一套 OpenAI 兼容接口调用各领域顶级模型。
- 文本对话
- GPT · Claude · Gemini · DeepSeek
- 图像生成
- Nano Banana · GPT-Image · Seedream
- 视频生成
- Sora · Veo · Kling
- 音频语音
- TTS 合成 · 语音识别

热门模型
精选各类目顶级模型,几分钟即可开始接入。
hy-image-v3.5-preview
HY Image 3.5 Preview is an image generation and editing model developed by Tencent Hunyuan. It supports text-to-image creation, reference-based generation, and multi-turn editing, allowing users to refine images through conversational instructions. With support for up to 4K output and flexible image dimensions, it offers a versatile tool for creating and refining visual content.
flux-3-image-klein
FLUX 3 Image Klein is a compact, open-weight image generation and editing model developed by Black Forest Labs. It combines text-to-image creation, image editing, and composition using up to 10 reference images in a single model. With support for up to 4K resolution and bounding-box layout control, it gives creators flexible tools to bring their ideas to life.
mai-image-2.6
MAI-Image-2.6 is Microsoft's image model for text-to-image, single-image editing and composition with up to 5 reference images. It is available in high-quality and Flash versions, with 1K and 2K output and sharp text rendering.
mai-image-2.6-flash
MAI-Image-2.6 Flash is the Flash version of Microsoft MAI-Image-2.6 for text-to-image and image editing with up to 5 references, 1K/2K PNG output and optional Bing grounding, billed by actual token usage.
flux-3-image
FLUX 3 Image by Black Forest Labs handles text-to-image, single-image editing and generation with up to 10 reference images. It supports multiple aspect ratios and resolutions up to 4K, priced by resolution with no extra charge for references.
gemini-nano-banana-2.1
Nano Banana 2.1 is Google's Gemini image model for text-to-image generation and reference-image editing. It outputs 1K, 2K or 4K images in 14 aspect ratios and is available through official and Ext routes.
seedream-5-0-flash
Seedream 5.0 Flash is ByteDance's fast, lower-cost text-to-image model. It supports single-image and multi-reference editing with up to 10 references and generates 1K, 1.5K or 2K images, or exact pixel sizes, with strong text rendering.
gpt-image-2.5-flare
GPT Image 2.5 Flare is OpenAI's speed-focused GPT Image 2.5 model for image generation and editing. It supports up to 16 reference images, inpainting with transparent PNG masks and 15 aspect ratios.
为什么选择 AiBox
统一平台、透明计价、真人支持,让你专注于产品本身。
官方直连
聚合官方与认证渠道,链路清晰,告别层层转手。
透明计价
按 token / 按次计费一目了然,方便做成本预测。
统一控制台
密钥、配额、用量在多模型间统一查看与管理。
快速接入
兼容常见调用格式,示例代码改配置即可跑通。
组合折扣
多模型组合与用量阶梯,让规模使用更划算。
真人支持
集成与账单问题有工程师跟进,不靠纯机器人。
3 分钟快速集成
几分钟内即可开始使用数百种 AI 模型
开始调用模型
通过统一接口访问 GPT-5、Claude、Sora 等数百种 AI 模型,即刻开启 AI 之旅
curl --request POST \
--url https://aiboxapi.com/v1/chat/completions \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '{
"model": "gpt-4o",
"messages": [
{
"role": "system",
"content": "You are a professional AI assistant."
},
{
"role": "user",
"content": "Tell me about the history of artificial intelligence."
}
]
}'仅需一行指令,即可在任意 Agent 使用 AiBox
复制一段提示词到 CodeX、Claude、Cursor 等任意 Agent,让它立刻读懂 AiBox 全部模型和接口,并向其提问。
请阅读以下 AiBox 的文档索引,并基于此回答我的问题: https://aiboxapi.com/llms.txt 关于 AiBox:统一的 AI API 网关,通过 OpenAI 兼容协议提供 500+ 模型 —— 聊天(GPT、Claude、Gemini)、图像(Nano Banana、GPT-Image-2、Imagen)、视频(Sora、Veo、Kling)、音频,按成功请求计费。 我的问题:如何用 Python 调用 Sora 2 生成一段 5 秒的视频?