---
title: gpt-4o-mini API — GPT 定价与规格 | RunAPI
description: 通过 RunAPI 使用 gpt-4o-mini——GPT 系列。按次计费，包含模型 ID、规格参数和开发者接入指南。
url: https://runapi.ai/zh-CN/models/gpt/4o-mini.md
canonical: https://runapi.ai/zh-CN/models/gpt/4o-mini
locale: zh-CN
site: RunAPI
image: https://runapi.ai/assets/opengraph-bfaaa0f0.png
alternates:
  en: https://runapi.ai/models/gpt/4o-mini
  zh-CN: https://runapi.ai/zh-CN/models/gpt/4o-mini
  es: https://runapi.ai/es/models/gpt/4o-mini
  ja: https://runapi.ai/ja/models/gpt/4o-mini
  de: https://runapi.ai/de/models/gpt/4o-mini
  fr: https://runapi.ai/fr/models/gpt/4o-mini
  pt-BR: https://runapi.ai/pt-BR/models/gpt/4o-mini
  ko: https://runapi.ai/ko/models/gpt/4o-mini
  it: https://runapi.ai/it/models/gpt/4o-mini
  nl: https://runapi.ai/nl/models/gpt/4o-mini
  pl: https://runapi.ai/pl/models/gpt/4o-mini
  tr: https://runapi.ai/tr/models/gpt/4o-mini
  zh-TW: https://runapi.ai/zh-TW/models/gpt/4o-mini
  zh-HK: https://runapi.ai/zh-HK/models/gpt/4o-mini
  ar: https://runapi.ai/ar/models/gpt/4o-mini
  x-default: https://runapi.ai/models/gpt/4o-mini
model: GPT
provider: OpenAI
variant_id: gpt-4o-mini
sdk_model_id: gpt-4o-mini
modality: text
billing_unit: 1K tokens
status: active
---

> HTML version: https://runapi.ai/zh-CN/models/gpt/4o-mini
> Site index for agents: https://runapi.ai/llms.txt


# gpt-4o-mini API

通过 RunAPI 使用 GPT 系列的 gpt-4o-mini。按次计费，无需订阅，失败的生成不计费。

**OpenAI / [GPT](https://runapi.ai/zh-CN/models/gpt.md)**
**运行中 · text · 可商用**

<!-- catalog-model-detail-slot: model-playground -->

## 体验 GPT 4o mini

选择任意模型，几秒内开始生成。


**模型:**
- **Chat completion** — `chat_completion` · `gpt-4o-mini` · Input $0.15 / 1M tokens | Output $0.60 / 1M tokens
- **Response**

**提示词:** 描述你想创建的内容……

**预计：** Input $0.15 / 1M tokens | Output $0.60 / 1M tokens

- [生成](https://runapi.ai/zh-CN/login)
登录后即可使用 RunAPI 生成。
<!-- /catalog-model-detail-slot: model-playground -->

### 切换变体

- [codex-auto-review](https://runapi.ai/zh-CN/models/gpt/codex-auto-review.md)
- **gpt-4o-mini** (current)
- [gpt-5.2](https://runapi.ai/zh-CN/models/gpt/5.2.md)
- [gpt-5.2-pro](https://runapi.ai/zh-CN/models/gpt/5.2-pro.md)
- [gpt-5.3-codex](https://runapi.ai/zh-CN/models/gpt/5.3-codex.md)
- [gpt-5.3-codex-spark](https://runapi.ai/zh-CN/models/gpt/5.3-codex-spark.md)
- [gpt-5.4](https://runapi.ai/zh-CN/models/gpt/5.4.md)
- [gpt-5.4-mini](https://runapi.ai/zh-CN/models/gpt/5.4-mini.md)
- [gpt-5.4-nano](https://runapi.ai/zh-CN/models/gpt/5.4-nano.md)
- [gpt-5.4-pro](https://runapi.ai/zh-CN/models/gpt/5.4-pro.md)
- [gpt-5.5](https://runapi.ai/zh-CN/models/gpt/5.5.md)
- [gpt-5.5-pro](https://runapi.ai/zh-CN/models/gpt/5.5-pro.md)
- [gpt-5.6-luna](https://runapi.ai/zh-CN/models/gpt/5.6-luna.md)
- [gpt-5.6-sol](https://runapi.ai/zh-CN/models/gpt/5.6-sol.md)
- [gpt-5.6-terra](https://runapi.ai/zh-CN/models/gpt/5.6-terra.md)
- [gpt-6-astra](https://runapi.ai/zh-CN/models/gpt/6-astra.md)
- [gpt-live-1](https://runapi.ai/zh-CN/models/gpt/live-1.md)

17 个版本可用



gpt-4o-mini 在 GPT 家族中处于质量与成本的最佳平衡点。

- USD 按次定价
- 失败不计费
- 模型支持时流式
- 各模型的请求参数与能力限制

## 使用指标

- **API 调用量 / 天:** 236
- **成功率:** 94.5%
- **平均生成时间:** 6.7s

该模型暂无已验证的用户反馈。



## 技术细节

| 字段 | 值 |
|---|---|
| 提供商 | OpenAI |
| 模型 ID | gpt-4o-mini |
| 模态 | Text |
| 任务类型 | Synchronous |
| API 端点 | `/v1/chat/completions` |
|  | `/v1/responses` |
|  | `/v1/messages` |
|  | `/v1beta/models/gpt-4o-mini:generateContent` |
|  | `/v1beta/models/gpt-4o-mini:streamGenerateContent` |
| 计费单位 | 1K tokens |
| 目录状态 | 运行中 |



**工作原理**

## 3 步使用此模型

1. **获取 API 密钥** - 免费注册后，在控制台创建用于 gpt-4o-mini 的 API 密钥。
2. **发送请求** - 向 /v1/chat/completions 发送 POST 请求，并传入 gpt-4o-mini 模型 ID 和参数。
3. **获取结果** - 直接从端点读取已完成的 gpt-4o-mini 响应。



<!-- catalog-model-detail-slot: feature-cards -->

## 该模型的核心能力

- **Endpoint 覆盖** — 提供 2 个公开 endpoint：chat_completion, response。
- **按量计费** — 按 1K tokens 计量，无需订阅。
<!-- /catalog-model-detail-slot: feature-cards -->


## GPT 4o mini 定价

| 端点 | 分辨率 | 时长 | 价格 |
|---|---|---|---|
| `chat_completion` | 暂不可用 | 1K tokens | Input: $0.15 / 1M tokens<br>Output: $0.60 / 1M tokens<br>Cache read: $0.08 / 1M tokens |
| `response` | 暂不可用 | 1K tokens | Input: $0.15 / 1M tokens<br>Output: $0.60 / 1M tokens<br>Cache read: $0.08 / 1M tokens |



**API 参考**

## 端点规格

| Field | Value |
|---|---|
| 端点 | `POST /v1/chat/completions` |
| 模型 ID | `gpt-4o-mini` |
| 任务类型 | `chat_completion, response` |
| 最大时长 | `暂无数据` |
| 分辨率 | `暂无数据` |
| 宽高比 | `暂无数据` |
| 输出格式 | `暂无数据` |
| 平均生成时间 | `暂无数据` |


<!-- catalog-model-detail-slot: request-parameters -->

## 请求参数

此端点尚未发布请求参数。
<!-- /catalog-model-detail-slot: request-parameters -->

**Request example**

```json
{
  "model": "gpt-4o-mini",
  "messages": [
    {
      "role": "user",
      "content": "分析这份季度营收数据，总结关键趋势和异常，给出三项建议。"
    }
  ]
}
```

### Model skill — gpt-4o-mini

安装一次 skill，开发时使用本页的变体 ID。

Base URL: `https://runapi.ai`

| Endpoint | Protocol |
|---|---|
| `POST /v1/chat/completions` | OpenAI compatible |
| `POST /v1/responses` | OpenAI Responses |
| `POST /v1/messages` | Anthropic compatible |
| `POST /v1beta/models/gpt-4o-mini:generateContent` | Gemini generateContent |
| `POST /v1beta/models/gpt-4o-mini:streamGenerateContent` | Gemini streamGenerateContent |

Use the OpenAI or Anthropic SDK with your RunAPI API key and `model: "gpt-4o-mini"`.

### 用 model skill 使用 gpt-4o-mini

1. **安装** — 安装该模型线对应的 model skill。
2. **配置** — 把 model 字段设置为本页展示的完整模型 ID。
3. **调用** — 按 skill 说明把提示词、输入文件和回调处理接入应用。
4. **接收** — 从 RunAPI 读取任务响应、webhook 回调或缓存输出 URL。

### gpt-4o-mini 与其它变体的差异

- **VS CODEX-AUTO-REVIEW: 快速且经济的 GPT-4o 模型，适合日常文本任务** — codex-auto-review
- **VS GPT-5.2: 快速且经济的 GPT-4o 模型，适合日常文本任务** — 专业知识工作；深度任务 Thinking 模式
- **VS GPT-5.2-PRO: 快速且经济的 GPT-4o 模型，适合日常文本任务** — gpt-5.2-pro

## 应用场景

**客户支持**

基于私有知识库回答客户问题，减少工单量。

**文档分析**

起草合同摘要并标记关键条款供律师审阅。

**代码生成**

在 CI 中自动生成单元测试、代码审查和重构建议。



## GPT 4o mini 常见问题

### 如何选择 gpt-4o-mini？

传入 quickstart 中显示的模型 ID。

### 该变体的限流？

Key 级限流随使用层级伸缩。当前限制见定价页。

### 能切到其它变体吗？

可以——变体只是参数，改 model 字段即可。

### 支持流式吗？

模型支持流式时，RunAPI 端到端流式。

### 质量问题在哪里报？

在公共 GitHub 仓库提 issue 或邮件联系 support。


### 相关

- [gpt-5.4-nano](https://runapi.ai/zh-CN/models/gpt/5.4-nano.md) — 由 OpenAI 提供 · Input $0.20 / 1M tokens | Output $1.25 / 1M tokens
- [gpt-5.6-luna](https://runapi.ai/zh-CN/models/gpt/5.6-luna.md) — 由 OpenAI 提供 · Input $0.20-$0.40 / 1M tokens | Output $1.20-$1.80 / 1M tokens
- [gpt-5.4-mini](https://runapi.ai/zh-CN/models/gpt/5.4-mini.md) — 由 OpenAI 提供 · Input $0.75 / 1M tokens | Output $4.50 / 1M tokens
- [gpt-5.2](https://runapi.ai/zh-CN/models/gpt/5.2.md) — 由 OpenAI 提供 · Input $0.88 / 1M tokens | Output $7.00 / 1M tokens · Input $1.75 / 1M tokens | Output $14.00 / 1M tokens

### 立即体验 GPT。

- [免费注册](https://runapi.ai/zh-CN/login)
- [阅读快速开始 →](https://runapi.ai/zh-CN/docs/api/openai/chat-completions)
## 需要团队接入支持？

我们可以协助团队接入、完成系统集成并解答技术问题。

[联系我们](https://runapi.ai/zh-CN/contact.md)



---

## More from RunAPI

- [Home](https://runapi.ai/zh-CN/.md)
### 产品
- [模型目录](https://runapi.ai/zh-CN/models.md)
- [定价](https://runapi.ai/zh-CN/pricing.md)
- [提供方](https://runapi.ai/zh-CN/models#all-models)
### 开发者
- [文档](https://runapi.ai/zh-CN/docs/guides)
- [SDK](https://runapi.ai/zh-CN/sdk.md)
- [CLI](https://runapi.ai/zh-CN/cli.md)
- [MCP Server](https://runapi.ai/zh-CN/mcp.md)
### 指南
- [Claude Code 与 Cursor](https://runapi.ai/zh-CN/claude-code-vs-cursor.md)
- [Cursor API 设置](https://runapi.ai/zh-CN/cursor-api-setup.md)
- [RunAPI 与 OpenRouter](https://runapi.ai/zh-CN/openrouter-alternative.md)
### 公司
- [企业版](https://runapi.ai/zh-CN/contact.md)
- [联系](https://runapi.ai/zh-CN/contact.md)
### 法律
- [服务条款](https://runapi.ai/zh-CN/terms.md)
- [隐私政策](https://runapi.ai/zh-CN/privacy.md)
- [Site index for agents](https://runapi.ai/llms.txt)

Contact: contact@runapi.ai

## Structured data

```json
[
  {
    "@context": "https://schema.org",
    "inLanguage": "zh-CN",
    "@type": "WebSite",
    "name": "RunAPI",
    "url": "https://runapi.ai/zh-CN",
    "potentialAction": {
      "@type": "SearchAction",
      "target": {
        "@type": "EntryPoint",
        "urlTemplate": "https://runapi.ai/zh-CN/models?q={search_term_string}"
      },
      "query-input": "required name=search_term_string"
    }
  },
  {
    "@context": "https://schema.org",
    "inLanguage": "zh-CN",
    "@type": "Organization",
    "name": "RunAPI",
    "url": "https://runapi.ai/zh-CN",
    "logo": {
      "@type": "ImageObject",
      "url": "https://runapi.ai/zh-CNicon.svg"
    },
    "sameAs": [
      "https://github.com/runapi-ai"
    ]
  },
  {
    "@context": "https://schema.org",
    "inLanguage": "zh-CN",
    "@type": "SoftwareApplication",
    "name": "GPT gpt-4o-mini",
    "applicationCategory": "DeveloperApplication"
  },
  {
    "@context": "https://schema.org",
    "inLanguage": "zh-CN",
    "@type": "BreadcrumbList",
    "itemListElement": [
      {
        "@type": "ListItem",
        "position": 1,
        "name": "Home",
        "item": "https://runapi.ai/zh-CN"
      },
      {
        "@type": "ListItem",
        "position": 2,
        "name": "Models",
        "item": "https://runapi.ai/zh-CN/models"
      },
      {
        "@type": "ListItem",
        "position": 3,
        "name": "GPT",
        "item": "https://runapi.ai/zh-CN/models/gpt"
      },
      {
        "@type": "ListItem",
        "position": 4,
        "name": "gpt-4o-mini",
        "item": "https://runapi.ai/zh-CN/models/gpt/4o-mini"
      }
    ]
  },
  {
    "@context": "https://schema.org",
    "inLanguage": "zh-CN",
    "@type": "HowTo",
    "name": "用 model skill 使用 gpt-4o-mini",
    "description": "通过 RunAPI 使用 gpt-4o-mini——GPT 系列。按次计费，包含模型 ID、规格参数和开发者接入指南。",
    "totalTime": "PT5M",
    "step": [
      {
        "@type": "HowToStep",
        "position": 1,
        "name": "安装",
        "text": "安装该模型线对应的 model skill。",
        "url": "https://runapi.ai/zh-CN/models/gpt/4o-mini#how-step-1"
      },
      {
        "@type": "HowToStep",
        "position": 2,
        "name": "配置",
        "text": "把 model 字段设置为本页展示的完整模型 ID。",
        "url": "https://runapi.ai/zh-CN/models/gpt/4o-mini#how-step-2"
      },
      {
        "@type": "HowToStep",
        "position": 3,
        "name": "调用",
        "text": "按 skill 说明把提示词、输入文件和回调处理接入应用。",
        "url": "https://runapi.ai/zh-CN/models/gpt/4o-mini#how-step-3"
      },
      {
        "@type": "HowToStep",
        "position": 4,
        "name": "接收",
        "text": "从 RunAPI 读取任务响应、webhook 回调或缓存输出 URL。",
        "url": "https://runapi.ai/zh-CN/models/gpt/4o-mini#how-step-4"
      }
    ]
  },
  {
    "@context": "https://schema.org",
    "inLanguage": "zh-CN",
    "@type": "FAQPage",
    "mainEntity": [
      {
        "@type": "Question",
        "name": "如何选择 gpt-4o-mini？",
        "acceptedAnswer": {
          "@type": "Answer",
          "text": "传入 quickstart 中显示的模型 ID。"
        }
      },
      {
        "@type": "Question",
        "name": "该变体的限流？",
        "acceptedAnswer": {
          "@type": "Answer",
          "text": "Key 级限流随使用层级伸缩。当前限制见定价页。"
        }
      },
      {
        "@type": "Question",
        "name": "能切到其它变体吗？",
        "acceptedAnswer": {
          "@type": "Answer",
          "text": "可以——变体只是参数，改 model 字段即可。"
        }
      },
      {
        "@type": "Question",
        "name": "支持流式吗？",
        "acceptedAnswer": {
          "@type": "Answer",
          "text": "模型支持流式时，RunAPI 端到端流式。"
        }
      },
      {
        "@type": "Question",
        "name": "质量问题在哪里报？",
        "acceptedAnswer": {
          "@type": "Answer",
          "text": "在公共 GitHub 仓库提 issue 或邮件联系 support。"
        }
      }
    ]
  }
]
```
