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

GPT 5 Chat

Masukan:$1/M
Keluaran:$8/M
Konteks:400K
Keluaran Maksimum:128K
Dilancarkan:Oct 9, 2025

GPT-5 Chat (latest) ialah model kecerdasan buatan yang disediakan oleh OpenAI.

Baru
Popular
Penggunaan komersial

Playground untuk GPT 5 Chat

Terokai Playground GPT 5 Chat โ€” persekitaran interaktif untuk menguji model dan menjalankan pertanyaan dalam masa nyata. Cuba prompt, laraskan parameter, dan ulangi serta-merta untuk mempercepatkan pembangunan dan mengesahkan kes penggunaan.

How do I start using the gpt-5 chat API?

Required Steps in CometAPI

  • Log in to cometapi.com. If you are not our user yet, please register first
  • Get the access credential API key of the interface. Click โ€œAdd Tokenโ€ at the API token in the personal center, get the token key: sk-xxxxx and submit.
  • Get the url of this site: https://api.cometapi.com/

Use Method

  1. Select the "gpt-5-chat-latest" endpoint to send the API request and set the request body. The request method and request body are obtained from our website API doc. Our website also provides Apifox test for your convenience.
  2. Replace <YOUR_API_KEY> with your actual CometAPI key from your account.
  3. Insert your question or request into the content fieldโ€”this is what the model will respond to.
  4. . Process the API response to get the generated answer.

CometAPI provides a fully compatible REST APIโ€”for seamless migration. Key details to API doc

Harga untuk GPT 5 Chat

Terokai harga yang kompetitif untuk GPT 5 Chat, direka bentuk untuk memenuhi pelbagai bajet dan keperluan penggunaan. Pelan fleksibel kami memastikan anda hanya membayar untuk apa yang anda gunakan, menjadikannya mudah untuk meningkatkan skala apabila keperluan anda berkembang. Temui bagaimana GPT 5 Chat boleh meningkatkan projek anda sambil mengekalkan kos yang terurus.

Comet Price (USD / M Tokens)Official Price (USD / M Tokens)Discount
Masukan:$1/M
Keluaran:$8/M
Masukan:$1.25/M
Keluaran:$10/M
-20%

Kod contoh dan API untuk GPT 5 Chat

Akses kod sampel yang komprehensif dan sumber API untuk GPT 5 Chat bagi memperlancar proses integrasi anda. Dokumentasi terperinci kami menyediakan panduan langkah demi langkah, membantu anda memanfaatkan potensi penuh GPT 5 Chat dalam projek anda.

curl https://api.cometapi.com/v1/responses \
  -H "Content-Type: application/json" \
  -H "Authorization: Bearer $COMETAPI_KEY" \
  -d '{
    "model": "gpt-5-chat-latest",
    "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-5-chat-latest",
    "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-5-chat-latest", 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-5-chat-latest",
  input: "Tell me a three sentence bedtime story about a unicorn.",
});

console.log(response);