Mô hìnhHỗ trợDoanh nghiệpBlog
500+ API Mô hình AI, Tất cả trong Một API. Chỉ cần CometAPI
API Mô hình
Nhà phát triển
Bắt đầu nhanhTài liệuBảng Điều Khiển API
Tài nguyên
Mô hình AIBlogDoanh nghiệpNhật ký thay đổiGiới thiệu
2025 CometAPI. Bảo lưu mọi quyền.Chính sách Bảo mậtĐiều khoản Dịch vụ
Home/Models/OpenAI/gpt-oss-20b
C

gpt-oss-20b

Đầu vào:$0.08/M
Đầu ra:$0.32/M
gpt-oss-20b là một mô hình trí tuệ nhân tạo do cloudflare-workers-ai cung cấp.
Mới
Sử dụng thương mại
Tổng quan
Tính năng
Giá cả
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.

Tính năng cho gpt-oss-20b

Khám phá các tính năng chính của gpt-oss-20b, được thiết kế để nâng cao hiệu suất và khả năng sử dụng. Tìm hiểu cách các khả năng này có thể mang lại lợi ích cho dự án của bạn và cải thiện trải nghiệm người dùng.

Giá cả cho gpt-oss-20b

Khám phá mức giá cạnh tranh cho gpt-oss-20b, được thiết kế để phù hợp với nhiều ngân sách và nhu cầu sử dụng khác nhau. Các gói linh hoạt của chúng tôi đảm bảo bạn chỉ trả tiền cho những gì bạn sử dụng, giúp dễ dàng mở rộng quy mô khi yêu cầu của bạn tăng lên. Khám phá cách gpt-oss-20b có thể nâng cao các dự án của bạn trong khi vẫn kiểm soát được chi phí.
Giá Comet (USD / M Tokens)Giá Chính Thức (USD / M Tokens)Giảm giá
Đầu vào:$0.08/M
Đầu ra:$0.32/M
Đầu vào:$0.1/M
Đầu ra:$0.4/M
-20%

Mã mẫu và API cho gpt-oss-20b

Truy cập mã mẫu toàn diện và tài nguyên API cho gpt-oss-20b để tối ưu hóa quy trình tích hợp của bạn. Tài liệu chi tiết của chúng tôi cung cấp hướng dẫn từng bước, giúp bạn khai thác toàn bộ tiềm năng của gpt-oss-20b trong các dự án của mình.

Thêm mô hình

G

Nano Banana 2

Đầu vào:$0.4/M
Đầu ra:$2.4/M
Tổng quan về khả năng cốt lõi: Độ phân giải: Lên đến 4K (4096×4096), tương đương với Pro. Tính nhất quán hình ảnh tham chiếu: Tối đa 14 hình ảnh tham chiếu (10 đối tượng + 4 nhân vật), duy trì tính nhất quán về phong cách/nhân vật. Tỷ lệ khung hình cực đoan: Bổ sung các tỷ lệ mới 1:4, 4:1, 1:8, 8:1, phù hợp cho hình ảnh dài, poster và banner. Kết xuất văn bản: Tạo văn bản nâng cao, phù hợp cho infographics và bố cục poster marketing. Tăng cường tìm kiếm: Tích hợp Google Search + Image Search. Lý giải nền tảng: Quy trình tư duy tích hợp; các prompt phức tạp được suy luận trước khi tạo.
A

Claude Opus 4.6

Đầu vào:$4/M
Đầu ra:$20/M
Claude Opus 4.6 là mô hình ngôn ngữ lớn thuộc lớp “Opus” của Anthropic, phát hành vào tháng 2 năm 2026. Mô hình này được định vị như một công cụ chủ lực cho công việc tri thức và các quy trình nghiên cứu — cải thiện khả năng suy luận với ngữ cảnh dài, lập kế hoạch nhiều bước, khả năng sử dụng công cụ (bao gồm các quy trình phần mềm agentic), và các tác vụ sử dụng máy tính như tự động tạo slide và bảng tính.
A

Claude Sonnet 4.6

Đầu vào:$2.4/M
Đầu ra:$12/M
Claude Sonnet 4.6 là mô hình Sonnet mạnh mẽ nhất của chúng tôi từ trước đến nay. Đây là một bản nâng cấp toàn diện về các kỹ năng của mô hình, bao gồm lập trình, sử dụng máy tính, suy luận trong ngữ cảnh dài, lập kế hoạch tác nhân, công việc tri thức và thiết kế. Sonnet 4.6 cũng có cửa sổ ngữ cảnh 1M token ở giai đoạn beta.
O

GPT-5.4 nano

Đầu vào:$0.16/M
Đầu ra:$1/M
GPT-5.4 nano được thiết kế cho các tác vụ trong đó tốc độ và chi phí là ưu tiên hàng đầu, như phân loại, trích xuất dữ liệu, xếp hạng và các tác tử phụ.
O

GPT-5.4 mini

Đầu vào:$0.6/M
Đầu ra:$3.6/M
GPT-5.4 mini đưa những điểm mạnh của GPT-5.4 vào một mô hình nhanh hơn, hiệu quả hơn, được thiết kế cho khối lượng công việc lớn.
A

Claude Mythos Preview

A

Claude Mythos Preview

Sắp ra mắt
Đầu vào:$60/M
Đầu ra:$240/M
Claude Mythos Preview là mô hình tiên phong mạnh mẽ nhất của chúng tôi cho đến nay, và cho thấy một bước nhảy vọt ấn tượng về điểm số trên nhiều thước đo đánh giá so với mô hình tiên phong trước đó của chúng tôi, Claude Opus 4.6.