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

GPT 5 Chat

Entrada:$1/M
Saída:$8/M
Contexto:400K
Saída Máxima:128K
Lançado:Oct 9, 2025

GPT-5 Chat (mais recente) é um modelo de inteligência artificial fornecido pela OpenAI.

Novo
Popular
Uso comercial

Playground para GPT 5 Chat

Explore o Playground do GPT 5 Chat — um ambiente interativo para testar modelos e executar consultas em tempo real. Experimente prompts, ajuste parâmetros e itere instantaneamente para acelerar o desenvolvimento e validar casos de uso.

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

Preços para GPT 5 Chat

Explore preços competitivos para GPT 5 Chat, projetado para atender diversos orçamentos e necessidades de uso. Nossos planos flexíveis garantem que você pague apenas pelo que usar, facilitando o dimensionamento conforme suas necessidades crescem. Descubra como GPT 5 Chat pode aprimorar seus projetos mantendo os custos gerenciáveis.

Comet Price (USD / M Tokens)Official Price (USD / M Tokens)Discount
Entrada:$1/M
Saída:$8/M
Entrada:$1.25/M
Saída:$10/M
-20%

Código de exemplo e API para GPT 5 Chat

Acesse código de exemplo abrangente e recursos de API para GPT 5 Chat para otimizar seu processo de integração. Nossa documentação detalhada fornece orientação passo a passo, ajudando você a aproveitar todo o potencial do GPT 5 Chat em seus projetos.

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