跳转到主要内容
OpenAI 兼容的统一 API 端点,一行代码调用 GPT-4o、Claude、Gemini、Sora、VEO 等主流模型。只需更换 base_url,无需改动现有代码。
from openai import OpenAI

client = OpenAI(
    base_url="https://www.qingbo.dev/v1",
    api_key="your-api-key"
)

response = client.chat.completions.create(
    model="gpt-4o",
    messages=[{"role": "user", "content": "Hello!"}]
)

print(response.choices[0].message.content)
import OpenAI from 'openai';

const client = new OpenAI({
  baseURL: 'https://www.qingbo.dev/v1',
  apiKey: 'your-api-key'
});

const response = await client.chat.completions.create({
  model: 'gpt-4o',
  messages: [{ role: 'user', content: 'Hello!' }]
});

console.log(response.choices[0].message.content);
curl https://www.qingbo.dev/v1/chat/completions \
  -H "Authorization: Bearer your-api-key" \
  -H "Content-Type: application/json" \
  -d '{
    "model": "gpt-4o",
    "messages": [{"role": "user", "content": "Hello!"}]
  }'

AI 模型能力

通过 清波 API 调用各类 AI 模型。
text-generation

文本生成

GPT-4o、Claude Sonnet、Gemini 等主流大语言模型,支持流式输出
image-generation

图像生成

GPT-4o Image、FLUX Kontext、Seedream 等图像生成模型
video-generation

视频生成

VEO3、Sora2、Kling、海螺等视频生成模型
audio

音频处理

Whisper 语音识别和 TTS 文字转语音
task-management

任务管理

异步任务状态查询,跟踪图像和视频生成进度
openai-compatible

OpenAI 兼容

完全兼容 OpenAI SDK,换个 URL 即可接入

为什么选择 清波 API

零成本迁移

兼容 OpenAI API 格式,已有代码只需修改 base_url 即可使用

多模型聚合

一个 API Key 访问所有主流大模型,通过 model 参数灵活切换

异步任务体系

图像和视频生成支持异步处理,实时查询任务状态和进度

稳定可靠

高性能 API 网关,智能路由,保障服务稳定性

快速开始

1

获取 API Key

前往 Dashboard 注册并获取你的 API Key
2

替换 Base URL

将 OpenAI SDK 的 base URL 替换为 https://www.qingbo.dev/v1
3

选择模型并调用

通过 model 参数指定想要使用的模型,发送请求即可