Skip to content
Halaman ini belum tersedia dalam bahasa anda, jadi kandungannya dipaparkan dalam bahasa Inggeris.
OpenAI · GPT-5

gpt-5-mini-2025-08-07 API

Run text conversations with a pinned GPT-5 mini snapshot through APISea's OpenAI-compatible API.

SembangSembang & TeksSegerakCaching prompt
ID model
gpt-5-mini-2025-08-07

Ini ialah petikan gpt-5-mini-2025-08-07 yang bertarikh. Kebanyakan pengguna sepatutnya menggunakan halaman model utama. gpt-5-mini

Harga API gpt-5-mini-2025-08-07

Semua harga dalam USD. Kadar APISea dibandingkan dengan harga senarai rasmi bagi unit yang sama.

Jenis tokenAPISeaRasmiJimat
Input bagi setiap 1M token$0.22$0.25−12%
Input dicache bagi setiap 1M token$0.022$0.025−12%
Output bagi setiap 1M token$1.76$2.00−12%

Apakah itu gpt-5-mini-2025-08-07?

OpenAI's gpt-5-mini-2025-08-07 is a GPT-5 family chat model positioned as a lighter, cost-conscious tier. Its date suffix identifies a pinned snapshot, suited to teams that want to keep model selection consistent across deployments and evaluations. Use it for text conversations, drafting, and summarization workflows. Requests contain messages with role and content fields, including system instructions and prior assistant replies for multi-turn conversations.

APISea exposes the model through an OpenAI-compatible Chat Completions interface using one API key and the base URL https://api.apisea.ai/v1. Choose streaming or a complete response, and set an output budget with max_tokens. The model allows up to 272,000 input tokens and 128,000 output tokens, with prompt-cache reads supported. Pay-as-you-go pricing is $0.22 per 1M tokens for input, $0.022 per 1M tokens for cached input, and $1.76 per 1M tokens for output. The default configuration is about 12% below provider list price, and APISea bills only successful requests.

Sorotan gpt-5-mini-2025-08-07

Large Input Budget

Supply up to 272,000 input tokens for text-based chat requests. Include instructions and conversation history in the messages array.

Output Budget Control

The maximum output is 128,000 tokens. Use max_tokens to set the generation budget for each request.

Prompt Cache Reads

Prompt-cache reads are supported, with cached input priced at $0.022 per 1M tokens on APISea.

Flexible Response Delivery

The Chat Completions interface supports streaming responses in SSE format or complete responses. Set stream explicitly to choose the behavior.

Cara memanggil API gpt-5-mini-2025-08-07 dalam 4 langkah

  1. 01

    Dapatkan API key

    Log masuk ke APISea, tambah nilai sekurang-kurangnya $50 dan cipta kunci sk-sea dalam konsol.

  2. 02

    Tetapkan base URL

    Gunakan https://api.apisea.ai/v1 sebagai base URL dalam SDK atau klien HTTP anda.

  3. 03

    Hantar permintaan

    Panggil POST /v1/chat/completions dengan "model": "gpt-5-mini-2025-08-07" dan parameter di bawah.

  4. 04

    Urus respons

    Baca respons (atau strim token dengan stream: true). Penggunaan dan kos dipaparkan dalam konsol anda.

curl https://api.apisea.ai/v1/chat/completions \
  -H "Authorization: Bearer $APISEA_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "model": "gpt-5-mini-2025-08-07",
    "messages": [
      {"role": "system", "content": "You are a concise assistant."},
      {"role": "user", "content": "Explain what an AI API gateway does in two sentences."}
    ],
    "stream": false
  }'

Parameter

ParameterJenisWajibLalaiPenerangan
modelstringWajibgpt-5Model name
messagesarrayWajib—List of conversation messages
rolestringWajibuserRole type
contentstringWajib—Message content
temperaturenumberPilihan—Controls output randomness, range 0-2
max_tokensintegerPilihan—Maximum number of tokens to generate
streambooleanPilihan—Whether to use streaming output
top_pnumberPilihan—Nucleus sampling parameter, range 0-1
frequency_penaltynumberPilihan—Frequency penalty, range -2.0 to 2.0
presence_penaltynumberPilihan—Presence penalty, range -2.0 to 2.0
stopstring or arrayPilihan—Stop sequences
nintegerPilihan—Number of completions to generate

Perkara yang boleh anda bina dengan gpt-5-mini-2025-08-07

Customer Support Drafts

Build an assistant that drafts replies from supplied customer messages and support context. Use system instructions to define tone and have your team review responses.

Document Summaries

Submit document text and ask for summaries tailored to a specific audience. Keep the combined instructions and source text within the input limit.

Internal Chat Assistants

Create a multi-turn text assistant by sending user messages alongside prior assistant replies. The pinned snapshot is suited to consistent model selection across deployments.

Content Drafting Workflows

Generate first drafts, rewrites, or concise descriptions from a written brief. Set an output budget appropriate to each task and review the resulting text.

Petua untuk hasil yang lebih baik

  • 01

    Select the Exact Snapshot

    Set the model field to gpt-5-mini-2025-08-07 rather than relying on the endpoint's default model. The date suffix positions this ID as a pinned snapshot for reproducibility.

  • 02

    Bound Generated Output

    Use max_tokens to limit generated tokens for each task. A short-answer workflow usually needs a smaller budget than a long-form drafting request.

  • 03

    Plan for Cache Reads

    For workflows with repeated prompt material, account for the supported prompt-cache read rate. Cached input costs $0.022 per 1M tokens; check caching documentation before assuming a request qualifies.

  • 04

    Choose Streaming Explicitly

    Set stream to true for SSE delivery or false for a complete response. Explicit configuration avoids depending on different endpoint defaults.

Had dan perkara yang perlu diketahui

  • Maximum input is 272,000 tokens per request.

  • Maximum output is 128,000 tokens; max_tokens can impose a lower budget.

  • The supplied documentation does not establish Responses API, image-input, or tool support for this model.

Soalan lazim API gpt-5-mini-2025-08-07

How much does gpt-5-mini-2025-08-07 cost on APISea?

Input costs $0.22 per 1M tokens, cached input costs $0.022 per 1M tokens, and output costs $1.76 per 1M tokens. The default configuration is about 12% below provider list price, with pay-as-you-go billing only for successful requests.

How do I call gpt-5-mini-2025-08-07?

Send a POST request to https://api.apisea.ai/v1/chat/completions with Bearer Token authentication using your APISea key. Set model to gpt-5-mini-2025-08-07 and provide a messages array containing role and content fields.

Which request controls are documented?

The general Chat Completions interface documents max_tokens, stream, temperature, top_p, frequency_penalty, presence_penalty, stop, and n. These are interface-level controls; check the model documentation for any model-specific restrictions.

What are the input and output limits?

The model supports a maximum input of 272,000 tokens and a maximum output of 128,000 tokens. It also supports prompt-cache reads.

Can I use this model commercially?

Commercial use is subject to the provider's terms. Review OpenAI's applicable terms and APISea's service terms before deploying your application.

How does this model differ from other GPT-5 models?

The mini name positions it as a lighter, cost-conscious tier within GPT-5, while the date suffix indicates a pinned snapshot suited to reproducible model selection. The supplied facts do not establish benchmark or latency comparisons with sibling models.

Model berkaitan

Pilihan: 250+ model · Tambah nilai minimum $50

Mula membina dengan gpt-5-mini-2025-08-07

Satu kunci, bayar mengikut penggunaan bermula daripada $50, hanya dicaj untuk permintaan yang berjaya.