ModelDukunganPerusahaanBlog
500+ API Model AI, Semua Dalam Satu API. Hanya Di CometAPI
API Model
Pengembang
Mulai CepatDokumentasiDasbor API
Sumber Daya
Model AIBlogPerusahaanCatatan PerubahanTentang
2025 CometAPI. Semua hak dilindungi undang-undang.Kebijakan PrivasiSyarat dan Ketentuan Layanan
Home/Models/OpenAI/gpt-oss-20b
C

gpt-oss-20b

Masukan:$0.08/M
Keluaran:$0.32/M
gpt-oss-20b adalah model kecerdasan buatan yang disediakan oleh cloudflare-workers-ai.
Baru
Penggunaan komersial
Ikhtisar
Fitur
Harga
API

Technical Specifications of gpt-oss-20b

AttributeDetails
Model IDgpt-oss-20b
Providercloudflare-workers-ai
Model TypeLarge language model
Primary ModalitiesText input, text output
Context WindowVaries by deployment configuration
Streaming SupportSupported via API-compatible integrations
Typical Use CasesChat, instruction following, content generation, summarization, classification, and general-purpose text tasks
API AccessAvailable through CometAPI
Integration StyleOpenAI-compatible API workflows

What is gpt-oss-20b?

gpt-oss-20b is an artificial intelligence model provided by cloudflare-workers-ai. It is designed for general natural language processing tasks such as answering questions, generating text, following instructions, and assisting with application workflows that require reliable language understanding and generation.

As exposed through CometAPI, gpt-oss-20b can be used in a unified API environment that simplifies access across multiple AI providers. This makes it easier for developers to integrate the model into existing products without having to manage provider-specific differences in request format and authentication flow.

Main features of gpt-oss-20b

  • General-purpose language capability: Suitable for a wide range of text-based tasks, including chat, drafting, rewriting, summarization, and structured responses.
  • Instruction following: Can respond to user prompts in a guided way, making it useful for assistants, automation workflows, and application backends.
  • CometAPI unified access: Developers can call gpt-oss-20b through CometAPI using a consistent interface shared across many models.
  • OpenAI-compatible integration pattern: Works well for teams that want to reuse familiar client libraries and API calling patterns.
  • Application-ready deployment: Appropriate for product features such as support bots, internal tools, content pipelines, and text transformation services.
  • Scalable API usage: Can be incorporated into environments that need programmatic, repeatable, and production-friendly model access.

How to access and integrate gpt-oss-20b

Step 1: Sign Up for API Key

To get started, create an account on CometAPI and generate your API key from the dashboard. Once you have the key, store it securely and use it to authenticate every request to the API. This key gives you access to gpt-oss-20b and other models available through the CometAPI platform.

Step 2: Send Requests to gpt-oss-20b API

After getting your API key, send requests to the CometAPI chat completions endpoint using the model field set to gpt-oss-20b.

curl https://api.cometapi.com/v1/chat/completions \
  -H "Content-Type: application/json" \
  -H "Authorization: Bearer $COMETAPI_API_KEY" \
  -d '{
    "model": "gpt-oss-20b",
    "messages": [
      {
        "role": "user",
        "content": "Write a short introduction to artificial intelligence."
      }
    ]
  }'
from openai import OpenAI

client = OpenAI(
    api_key="YOUR_COMETAPI_API_KEY",
    base_url="https://api.cometapi.com/v1"
)

response = client.chat.completions.create(
    model="gpt-oss-20b",
    messages=[
        {"role": "user", "content": "Write a short introduction to artificial intelligence."}
    ]
)

print(response.choices[0].message.content)

Step 3: Retrieve and Verify Results

Once the request is processed, the API returns a structured response containing the model’s output. You can parse the returned content, display it to users, or pass it into downstream application logic. In production usage, it is a good practice to validate the response format, handle possible API errors, and verify that the generated output matches your quality and safety requirements before using it in customer-facing workflows.

Fitur untuk gpt-oss-20b

Jelajahi fitur-fitur utama dari gpt-oss-20b, yang dirancang untuk meningkatkan performa dan kegunaan. Temukan bagaimana kemampuan-kemampuan ini dapat menguntungkan proyek Anda dan meningkatkan pengalaman pengguna.

Harga untuk gpt-oss-20b

Jelajahi harga kompetitif untuk gpt-oss-20b, dirancang untuk berbagai anggaran dan kebutuhan penggunaan. Paket fleksibel kami memastikan Anda hanya membayar untuk apa yang Anda gunakan, memudahkan untuk meningkatkan skala seiring berkembangnya kebutuhan Anda. Temukan bagaimana gpt-oss-20b dapat meningkatkan proyek Anda sambil menjaga biaya tetap terkendali.
Harga Comet (USD / M Tokens)Harga Resmi (USD / M Tokens)Diskon
Masukan:$0.08/M
Keluaran:$0.32/M
Masukan:$0.1/M
Keluaran:$0.4/M
-20%

Kode contoh dan API untuk gpt-oss-20b

Akses kode sampel komprehensif dan sumber daya API untuk gpt-oss-20b guna mempermudah proses integrasi Anda. Dokumentasi terperinci kami menyediakan panduan langkah demi langkah, membantu Anda memanfaatkan potensi penuh gpt-oss-20b dalam proyek Anda.

Model Lainnya

G

Nano Banana 2

Masukan:$0.4/M
Keluaran:$2.4/M
Ikhtisar Kapabilitas Inti: Resolusi: Hingga 4K (4096×4096), setara dengan Pro. Konsistensi Gambar Referensi: Hingga 14 gambar referensi (10 objek + 4 karakter), mempertahankan konsistensi gaya/karakter. Rasio Aspek Ekstrem: Rasio baru 1:4, 4:1, 1:8, 8:1 ditambahkan, cocok untuk gambar panjang, poster, dan banner. Rendering Teks: Pembuatan teks tingkat lanjut, cocok untuk infografis dan tata letak poster pemasaran. Peningkatan Pencarian: Terintegrasi dengan Google Search + Pencarian Gambar. Grounding: Proses penalaran bawaan; prompt kompleks dinalar terlebih dahulu sebelum pembuatan.
A

Claude Opus 4.6

Masukan:$4/M
Keluaran:$20/M
Claude Opus 4.6 adalah model bahasa besar kelas “Opus” dari Anthropic, dirilis pada Februari 2026. Model ini diposisikan sebagai andalan untuk pekerjaan berbasis pengetahuan dan alur kerja riset — meningkatkan penalaran dalam konteks panjang, perencanaan multi-langkah, penggunaan alat (termasuk alur kerja perangkat lunak berbasis agen), serta tugas penggunaan komputer seperti pembuatan slide dan spreadsheet secara otomatis.
A

Claude Sonnet 4.6

Masukan:$2.4/M
Keluaran:$12/M
Claude Sonnet 4.6 adalah model Sonnet kami yang paling mumpuni sejauh ini. Ini merupakan peningkatan menyeluruh atas keahlian model di bidang pemrograman, penggunaan komputer, penalaran konteks panjang, perencanaan agen, pekerjaan berbasis pengetahuan, dan desain. Sonnet 4.6 juga menyertakan jendela konteks 1M token dalam tahap beta.
O

GPT-5.4 nano

Masukan:$0.16/M
Keluaran:$1/M
GPT-5.4 nano dirancang untuk tugas-tugas di mana kecepatan dan biaya paling penting, seperti klasifikasi, ekstraksi data, pemeringkatan, dan sub-agen.
O

GPT-5.4 mini

Masukan:$0.6/M
Keluaran:$3.6/M
GPT-5.4 mini menghadirkan keunggulan GPT-5.4 ke model yang lebih cepat dan lebih efisien, dirancang untuk beban kerja bervolume tinggi.
A

Claude Mythos Preview

A

Claude Mythos Preview

Segera hadir
Masukan:$60/M
Keluaran:$240/M
Claude Mythos Preview adalah model frontier kami yang paling mumpuni hingga saat ini, dan menunjukkan lompatan skor yang mencolok pada banyak tolok ukur evaluasi dibandingkan dengan model frontier kami sebelumnya, Claude Opus 4.6.