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

GPT 5 Chat

Енгізу:$1/M
Шығыс:$8/M
Контекст:400K
Максималды шығыс:128K
Шыққан күні:Oct 9, 2025

GPT-5 Chat (ең жаңа) OpenAI ұсынатын жасанды интеллект моделі болып табылады.

Жаңа
Танымал
Коммерциялық пайдалану

GPT 5 Chat үшін Playground

GPT 5 Chat Playground-ын зерттеңіз — модельдерді тестілеу және нақты уақытта сұрауларды орындауға арналған интерактивті орта. Промпттарды қолданып көріңіз, параметрлерді реттеңіз және дамуды жеделдету және пайдалану жағдайларын растау үшін лезде қайталаңыз.

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

GPT 5 Chat үшін баға белгілеу

[Модель атауы] үшін әртүрлі бюджеттер мен пайдалану қажеттіліктеріне сәйкес келетін бәсекеге қабілетті баға белгілеуді зерттеңіз. Біздің икемді жоспарларымыз сіз тек пайдаланған нәрсеңіз үшін ғана төлеуіңізді қамтамасыз етеді, бұл сіздің талаптарыңыз өскен сайын масштабтауды жеңілдетеді. [Модель атауы] шығындарды басқарылатын деңгейде ұстай отырып, сіздің жобаларыңызды қалай жақсарта алатынын біліңіз.

Comet Price (USD / M Tokens)Official Price (USD / M Tokens)Discount
Енгізу:$1/M
Шығыс:$8/M
Енгізу:$1.25/M
Шығыс:$10/M
-20%

GPT 5 Chat үшін үлгі код және API

[Модель атауы] үшін кешенді үлгі кодтары мен API ресурстарына қол жеткізіп, интеграция процесіңізді жеңілдетіңіз. Біздің толық құжаттама қадам-қадаммен нұсқаулық береді, жобаларыңызда [Модель атауы] мүмкіндіктерін толық пайдалануға көмектеседі.

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);