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

gpt-6.1-terra API

gpt-6.1-terra delivers text chat on APISea with large input limits and prompt-cache support.

SembangSembang & TeksSegerakCaching prompt
ID model
gpt-6.1-terra

Harga API gpt-6.1-terra

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

Jenis tokenAPISeaRasmiJimat
Input bagi setiap 1M token$0.88$1.00−12%
Input dicache bagi setiap 1M token$0.044$0.05−12%
Penulisan cache bagi setiap 1M token$1.10$1.25−12%
Penulisan cache (1 jam) bagi setiap 1M token$2.20$2.50−12%
Output bagi setiap 1M token$4.40$5.00−12%

Harga berperingkat mengikut panjang prompt

Jenis tokenSehingga 272,000 tokenMelebihi tahap sebelumnya
Input$0.88$1.00$1.76$2.00
Input dicache$0.044$0.05$0.088$0.10
Penulisan cache$1.10$1.25$2.20$2.50
Penulisan cache (1 jam)$2.20$2.50$4.40$5.00
Output$4.40$5.00$6.60$7.50

Apakah itu gpt-6.1-terra?

gpt-6.1-terra is an OpenAI GPT-6 family chat model available through APISea. It gives developers a text-generation option for document-heavy conversations, drafting workflows, and assistants that carry conversation history. Requests use messages with role and content fields, and responses contain generated assistant text. The model supports up to 922,000 input tokens and up to 128,000 output tokens. The unified Chat Completions interface offers streaming or complete responses, plus controls for randomness, output length, repetition, and stop sequences.

Call the model through APISea’s OpenAI-compatible base URL, https://api.apisea.ai/v1, using one API key. APISea uses pay-as-you-go pricing and bills only successful requests. For the tier up to 272,000 input tokens, input costs $0.88 per 1M tokens and output costs $4.40 per 1M tokens; higher-input requests use higher rates. Prompt-cache reads and writes are supported, with separate pricing. The default configuration is about 12% below the provider list price.

Sorotan gpt-6.1-terra

Large Input Capacity

Send up to 922,000 input tokens for text-heavy prompts and conversation context.

Long Output Allowance

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

Prompt Cache Support

The model supports prompt-cache reads and cache writes. APISea lists separate rates for cached input, cache writes, and 1-hour TTL cache writes.

Configurable Chat Responses

Choose streaming or complete responses through the Chat Completions interface. Adjust temperature, top_p, repetition penalties, and stop sequences.

Cara memanggil API gpt-6.1-terra 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-6.1-terra" 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-6.1-terra",
    "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-6.1-terra

Document-Based Assistants

Build text assistants that receive substantial reference material alongside user questions. Keep supplied documents within the input limit and request answers grounded in that material.

Multi-Turn Support Chat

Pass prior user and assistant messages to maintain conversation context. Use a system message to define the assistant’s role and response style.

Long-Form Drafting

Generate reports, guides, or other extended text from supplied instructions and source material. Set an explicit output budget for each draft.

Repeated Reference Workflows

Design workflows that reuse common prompt material, such as editorial instructions or reference text. Evaluate supported cache reads and writes against their separate costs.

Petua untuk hasil yang lebih baik

  • 01

    Set the Model Explicitly

    Set the model field to gpt-6.1-terra rather than relying on the general API’s default model. Send messages with role and content fields.

  • 02

    Budget for Input Tiers

    Up to 272,000 input tokens, input is $0.88 per 1M tokens and output is $4.40 per 1M tokens. Above that tier, input is $1.76 per 1M tokens and output is $6.60 per 1M tokens.

  • 03

    Account for Cache Writes

    Cached input costs $0.044 per 1M tokens, while cache writes cost $1.10 per 1M tokens. The listed 1-hour TTL cache-write rate is $2.20 per 1M tokens; include write costs when estimating reuse benefits.

  • 04

    Control Response Generation

    Use max_tokens to limit output and set stream explicitly to choose response delivery. The docs recommend adjusting either temperature or top_p to control generation diversity.

Had dan perkara yang perlu diketahui

  • Maximum input is 922,000 tokens, and maximum output is 128,000 tokens.

  • Requests above 272,000 input tokens use the higher input and output pricing tier.

  • The supplied model facts do not establish image input, tool support, or Responses API compatibility.

Soalan lazim API gpt-6.1-terra

How much does gpt-6.1-terra cost on APISea?

For up to 272,000 input tokens, input costs $0.88 per 1M tokens and output costs $4.40 per 1M tokens. Above that tier, input costs $1.76 per 1M tokens and output costs $6.60 per 1M tokens. APISea bills only successful requests, and the default configuration is about 12% below the provider list price.

How do I call gpt-6.1-terra through the API?

Use https://api.apisea.ai/v1 as your OpenAI-compatible base URL and send a POST request to /chat/completions. Authenticate with your APISea key as a Bearer token, set model to gpt-6.1-terra, and provide a messages array.

Which generation parameters can I use?

The unified Chat Completions documentation lists temperature, max_tokens, stream, top_p, frequency_penalty, presence_penalty, stop, and n. Set stream to true for streaming responses or false for a complete response.

What are the input and output token limits?

gpt-6.1-terra supports a maximum of 922,000 input tokens and 128,000 output tokens. Use max_tokens to set a request’s output budget within the model’s maximum.

Does gpt-6.1-terra support prompt caching?

Yes, prompt-cache reads and writes are supported. Cached input costs $0.044 per 1M tokens, cache writes cost $1.10 per 1M tokens, and 1-hour TTL cache writes cost $2.20 per 1M tokens.

Can I use gpt-6.1-terra commercially?

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

Model berkaitan

Pilihan: 250+ model · Tambah nilai minimum $50

Mula membina dengan gpt-6.1-terra

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