Unlock exclusive introductory pricing for the newly launched Gemini 3.5 Flash.
O

GPT-4o mini

อินพุต:$0.12/M
เอาต์พุต:$0.48/M
วันที่เผยแพร่:Oct 1, 2025

GPT-4o mini เป็นโมเดลปัญญาประดิษฐ์ที่ให้บริการโดย OpenAI.

ใหม่
ใช้งานเชิงพาณิชย์

Technical Specifications of gpt-4o-mini

AttributeDetails
Model IDgpt-4o-mini
ProviderOpenAI
Model typeArtificial intelligence model
Primary useNatural language understanding and generation
API accessAvailable through CometAPI
Integration styleStandard REST API requests
Input formatText
Output formatText

What is gpt-4o-mini?

gpt-4o-mini is an artificial intelligence model provided by OpenAI. It is designed to process natural language inputs and generate useful text outputs for a wide range of applications, including chat, content generation, summarization, classification, and automation workflows.

Through CometAPI, developers can access gpt-4o-mini using a unified API format, making it easier to integrate the model into applications without managing provider-specific complexity. This helps teams prototype quickly and deploy AI features with a consistent developer experience.

Main features of gpt-4o-mini

  • Natural language processing: Understands and generates human-like text for conversational and task-oriented use cases.
  • Versatile application support: Can be used for summarization, question answering, content drafting, rewriting, and workflow automation.
  • Developer-friendly access: Available through CometAPI with a consistent API interface that simplifies integration.
  • Fast integration workflow: Supports straightforward request and response patterns for rapid development.
  • Scalable deployment: Suitable for embedding into products, internal tools, and automated services.

How to access and integrate gpt-4o-mini

Step 1: Sign Up for API Key

To access gpt-4o-mini, first register on the CometAPI platform and generate your API key from the dashboard. This key is required to authenticate all API requests and should be stored securely in your application environment.

Step 2: Send Requests to gpt-4o-mini API

After obtaining your API key, send a POST request to the CometAPI chat completions endpoint and specify gpt-4o-mini as the model.

curl https://api.cometapi.com/v1/chat/completions \
  -H "Content-Type: application/json" \
  -H "Authorization: Bearer YOUR_COMETAPI_KEY" \
  -d '{
    "model": "gpt-4o-mini",
    "messages": [
      {
        "role": "user",
        "content": "Write a short introduction to AI."
      }
    ]
  }'

Step 3: Retrieve and Verify Results

Once the request is processed, the API returns a structured response containing the model output. You can parse the returned content, validate it against your application requirements, and then display or store the result as needed.

ราคาสำหรับ GPT-4o mini

สำรวจราคาที่แข่งขันได้สำหรับ GPT-4o mini ที่ออกแบบมาให้เหมาะสมกับงบประมาณและความต้องการการใช้งานที่หลากหลาย แผนการบริการที่ยืดหยุ่นของเรารับประกันว่าคุณจะจ่ายเฉพาะสิ่งที่คุณใช้เท่านั้น ทำให้สามารถขยายขนาดได้ง่ายเมื่อความต้องการของคุณเพิ่มขึ้น ค้นพบว่า GPT-4o mini สามารถยกระดับโปรเจกต์ของคุณได้อย่างไรในขณะที่ควบคุมต้นทุนให้อยู่ในระดับที่จัดการได้

ModelComet Price (USD / M Tokens)Official Price (USD / M Tokens)Discount
gpt-4o-mini
อินพุต:$0.12/M
เอาต์พุต:$0.48/M
อินพุต:$0.15/M
เอาต์พุต:$0.6/M
-20%
gpt-4o-mini-2024-07-18
อินพุต:$0.12/M
เอาต์พุต:$0.48/M
อินพุต:$0.15/M
เอาต์พุต:$0.6/M
-20%
gpt-4o-mini-audio-preview
อินพุต:$0.12/M
เอาต์พุต:$0.48/M
อินพุต:$0.15/M
เอาต์พุต:$0.6/M
-20%
gpt-4o-mini-audio-preview-2024-12-17
อินพุต:$0.12/M
เอาต์พุต:$0.48/M
อินพุต:$0.15/M
เอาต์พุต:$0.6/M
-20%
gpt-4o-mini-realtime-preview
อินพุต:$0.48/M
เอาต์พุต:$1.92/M
อินพุต:$0.6/M
เอาต์พุต:$2.4/M
-20%
gpt-4o-mini-realtime-preview-2024-12-17
อินพุต:$0.48/M
เอาต์พุต:$1.92/M
อินพุต:$0.6/M
เอาต์พุต:$2.4/M
-20%
gpt-4o-mini-transcribe
อินพุต:$1/M
เอาต์พุต:$4/M
อินพุต:$1.25/M
เอาต์พุต:$5/M
-20%
gpt-4o-mini-tts
อินพุต:$9.6/M
เอาต์พุต:$9.6/M
อินพุต:$12/M
เอาต์พุต:$12/M
-20%

โค้ดตัวอย่างและ API สำหรับ GPT-4o mini

เข้าถึงโค้ดตัวอย่างที่ครอบคลุมและทรัพยากร API สำหรับ GPT-4o mini เพื่อปรับปรุงกระบวนการผสานรวมของคุณ เอกสารประกอบที่มีรายละเอียดของเราให้คำแนะนำทีละขั้นตอน ช่วยให้คุณใช้ประโยชน์จากศักยภาพเต็มรูปแบบของ GPT-4o mini ในโครงการของคุณ

curl https://api.cometapi.com/v1/responses \
  -H "Content-Type: application/json" \
  -H "Authorization: Bearer $COMETAPI_KEY" \
  -d '{
    "model": "gpt-4o-mini",
    "input": "Tell me a three sentence bedtime story about a unicorn."
  }'

cURL Code Example

curl https://api.cometapi.com/v1/responses \
  -H "Content-Type: application/json" \
  -H "Authorization: Bearer $COMETAPI_KEY" \
  -d '{
    "model": "gpt-4o-mini",
    "input": "Tell me a three sentence bedtime story about a unicorn."
  }'

Python Code Example

from openai import OpenAI
import os

# Get your CometAPI key from https://api.cometapi.com/console/token, and paste it here
COMETAPI_KEY = os.environ.get("COMETAPI_KEY") or "<YOUR_COMETAPI_KEY>"
BASE_URL = "https://api.cometapi.com/v1"

client = OpenAI(base_url=BASE_URL, api_key=COMETAPI_KEY)
response = client.responses.create(
    model="gpt-4o-mini", input="Tell me a three sentence bedtime story about a unicorn."
)

print(response)

JavaScript Code Example

import OpenAI from "openai";

// Get your CometAPI key from https://api.cometapi.com/console/token, and paste it here
const api_key = process.env.COMETAPI_KEY;
const base_url = "https://api.cometapi.com/v1";

const openai = new OpenAI({
  apiKey: api_key,
  baseURL: base_url,
});

const response = await openai.responses.create({
  model: "gpt-4o-mini",
  input: "Tell me a three sentence bedtime story about a unicorn.",
});

console.log(response);

รุ่นของ GPT-4o mini

เหตุผลที่ GPT-4o mini มีสแนปช็อตหลายตัวอาจรวมถึงปัจจัยที่อาจเกิดขึ้น เช่น ความแปรผันของผลลัพธ์หลังการอัปเดตที่ต้องการสแนปช็อตรุ่นเก่าสำหรับความสม่ำเสมอ การให้ช่วงเวลาเปลี่ยนผ่านสำหรับนักพัฒนาเพื่อการปรับตัวและการย้ายข้อมูล และสแนปช็อตที่แตกต่างกันซึ่งสอดคล้องกับเอนด์พอยต์ระดับโลกหรือระดับภูมิภาคเพื่อเพิ่มประสิทธิภาพประสบการณ์ผู้ใช้ สำหรับความแตกต่างโดยละเอียดระหว่างเวอร์ชัน โปรดอ้างอิงเอกสารทางการ

Version
gpt-4o-mini
gpt-4o-mini-2024-07-18
gpt-4o-mini-audio-preview
gpt-4o-mini-audio-preview-2024-12-17
gpt-4o-mini-realtime-preview
gpt-4o-mini-realtime-preview-2024-12-17
gpt-4o-mini-transcribe
gpt-4o-mini-tts