---
title: "AI API 列表 - OB Cloud 云数据库 master | OceanBase 文档中心"
description: AI API 列表 Anthropic Compatible APIs API 请求方法 请求路径 说明 Create a Message POST /api/anthropic/v1/messages Anthropic 消息创建 List Anthropic Models GET /api/anthropic/v…
---
切换语言

- 中文站 - 简体中文
- International - English
- 日本站 - 日本語

文档反馈![](https://mdn.alipayobjects.com/huamei_22khvb/afts/img/A*qbZXRo_94ZEAAAAAAAAAAAAADiGDAQ/original) OB Cloud 云数据库

# AI API 列表

更新时间：2026-06-17 14:23:45

## Anthropic Compatible APIs

| API | 请求方法 | 请求路径 | 说明 |
| --- | --- | --- | --- |
| [Create a Message](https://www.oceanbase.com/docs/common-oceanbase-cloud-1000000005766996) | POST | `/api/anthropic/v1/messages` | Anthropic 消息创建 |
| [List Anthropic Models](https://www.oceanbase.com/docs/common-oceanbase-cloud-1000000005766995) | GET | `/api/anthropic/v1/models` | 查询 Anthropic 模型列表 |
| [Create a Message (Default Base)](https://www.oceanbase.com/docs/common-oceanbase-cloud-1000000005766997) | POST | `/api/v1/messages` | Anthropic Messages（默认 Base URL） |

## OpenAI Compatible APIs

| API | 请求方法 | 请求路径 | 说明 |
| --- | --- | --- | --- |
| [Create Chat Completion](https://www.oceanbase.com/docs/common-oceanbase-cloud-1000000005766999) | POST | `/api/v1/chat/completions` | OpenAI 聊天补全 |
| [Create Embedding](https://www.oceanbase.com/docs/common-oceanbase-cloud-1000000005767000) | POST | `/api/v1/embeddings` | OpenAI Embeddings |
| [List Models](https://www.oceanbase.com/docs/common-oceanbase-cloud-1000000005766998) | GET | `/api/v1/models` | 查询 OpenAI 兼容模型列表 |
| [Rerank](https://www.oceanbase.com/docs/common-oceanbase-cloud-1000000005767001) | POST | `/api/v1/rerank` | 重排序 |
| [Reranks](https://www.oceanbase.com/docs/common-oceanbase-cloud-1000000005767002) | POST | `/api/v1/reranks` | 重新排序 |
| [Create Response](https://www.oceanbase.com/docs/common-oceanbase-cloud-1000000005767003) | POST | `/api/v1/responses` | OpenAI Responses |

## Vertex AI Compatible APIs

| API | 请求方法 | 请求路径 | 说明 |
| --- | --- | --- | --- |
| [Generate Content](https://www.oceanbase.com/docs/common-oceanbase-cloud-1000000005767004) | POST | `/api/vertex-ai/v1/publishers/{provider}/models/{model}:generateContent` | Vertex AI 生成内容 |
| [Stream Generate Content](https://www.oceanbase.com/docs/common-oceanbase-cloud-1000000005767005) | POST | `/api/vertex-ai/v1/publishers/{provider}/models/{model}:streamGenerateContent` | Vertex AI 流式生成内容 |

## Model Router Image and Video APIs

| API | 请求方法 | 请求路径 | 说明 |
| --- | --- | --- | --- |
| [Create Image Generation](https://www.oceanbase.com/docs/common-oceanbase-cloud-1000000006122669) | POST | `/api/v1/images/generations` | OpenAI 兼容文生图（可异步） |
| [Create Video Generation](https://www.oceanbase.com/docs/common-oceanbase-cloud-1000000006122670) | POST | `/api/v1/videos/generations` | 文生视频（异步，`X-Async: enable`） |
| [Retrieve Task Status](https://www.oceanbase.com/docs/common-oceanbase-cloud-1000000006122671) | GET | `/api/v1/tasks/{task_id}` | 查询图片或视频异步生成任务状态 |

## OpenAI Compatible Batch and Files APIs

| API | 请求方法 | 请求路径 | 说明 |
| --- | --- | --- | --- |
| [Upload File](https://www.oceanbase.com/docs/common-oceanbase-cloud-1000000006116238) | POST | `/api/v1/files` | 上传 Batch 文件 |
| [List Files](https://www.oceanbase.com/docs/common-oceanbase-cloud-1000000006116241) | GET | `/api/v1/files` | 查询 Batch 文件列表 |
| [Retrieve File](https://www.oceanbase.com/docs/common-oceanbase-cloud-1000000006116242) | GET | `/api/v1/files/{file_id}` | 查询 Batch 文件信息 |
| [Delete File](https://www.oceanbase.com/docs/common-oceanbase-cloud-1000000006116243) | DELETE | `/api/v1/files/{file_id}` | 删除 Batch 文件 |
| [Get File Content](https://www.oceanbase.com/docs/common-oceanbase-cloud-1000000006116244) | GET | `/api/v1/files/{file_id}/content` | 获取 Batch 文件内容 |
| [Get File Content (POST)](https://www.oceanbase.com/docs/common-oceanbase-cloud-1000000006116245) | POST | `/api/v1/files/{file_id}/content` | 获取 Batch 文件内容 |
| [Create Batch](https://www.oceanbase.com/docs/common-oceanbase-cloud-1000000006116246) | POST | `/api/v1/batches` | 创建 Batch 任务 |
| [List Batches](https://www.oceanbase.com/docs/common-oceanbase-cloud-1000000006116247) | GET | `/api/v1/batches` | 查询 Batch 任务列表 |
| [Retrieve Batch](https://www.oceanbase.com/docs/common-oceanbase-cloud-1000000006116248) | GET | `/api/v1/batches/{batch_id}` | 查询 Batch 任务 |
| [Retrieve Batch (POST)](https://www.oceanbase.com/docs/common-oceanbase-cloud-1000000006116239) | POST | `/api/v1/batches/{batch_id}` | 查询 Batch 任务 |
| [Cancel Batch](https://www.oceanbase.com/docs/common-oceanbase-cloud-1000000006116240) | POST | `/api/v1/batches/{batch_id}/cancel` | 取消 Batch 任务 |

 上一篇 下一篇 ![有帮助](https://gw.alipayobjects.com/mdn/ob_asset/afts/img/A*y6ocSqN8cqsAAAAAAAAAAAAAARQnAQ)![无帮助](https://gw.alipayobjects.com/mdn/ob_asset/afts/img/A*BG9IQJyLHF8AAAAAAAAAAAAAARQnAQ)![反馈](https://gw.alipayobjects.com/mdn/ob_asset/afts/img/A*eTWdQKCRKHwAAAAAAAAAAAAAARQnAQ)[AI](https://www.oceanbase.com/obi) 咨询热线
