โมเดลสนับสนุนองค์กรบล็อก
500+ AI Model API ทั้งหมดในหนึ่ง API เพียงแค่ใน CometAPI
API โมเดล
นักพัฒนา
เริ่มต้นอย่างรวดเร็วเอกสารประกอบแดชบอร์ด API
ทรัพยากร
โมเดล AIบล็อกองค์กรบันทึกการเปลี่ยนแปลงเกี่ยวกับ
2025 CometAPI สงวนลิขสิทธิ์ทั้งหมดนโยบายความเป็นส่วนตัวข้อกำหนดการให้บริการ
Home/Models/OpenAI/gpt-oss-20b
C

gpt-oss-20b

อินพุต:$0.08/M
เอาต์พุต:$0.32/M
gpt-oss-20b เป็นโมเดลปัญญาประดิษฐ์ที่ให้บริการโดย cloudflare-workers-ai.
ใหม่
ใช้งานเชิงพาณิชย์
ภาพรวม
คุณสมบัติ
ราคา
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.

คุณสมบัติสำหรับ gpt-oss-20b

สำรวจคุณสมบัติหลักของ gpt-oss-20b ที่ออกแบบมาเพื่อเพิ่มประสิทธิภาพและความสะดวกในการใช้งาน ค้นพบว่าความสามารถเหล่านี้สามารถเป็นประโยชน์ต่อโครงการของคุณและปรับปรุงประสบการณ์ของผู้ใช้ได้อย่างไร

ราคาสำหรับ gpt-oss-20b

สำรวจราคาที่แข่งขันได้สำหรับ gpt-oss-20b ที่ออกแบบมาให้เหมาะสมกับงบประมาณและความต้องการการใช้งานที่หลากหลาย แผนการบริการที่ยืดหยุ่นของเรารับประกันว่าคุณจะจ่ายเฉพาะสิ่งที่คุณใช้เท่านั้น ทำให้สามารถขยายขนาดได้ง่ายเมื่อความต้องการของคุณเพิ่มขึ้น ค้นพบว่า gpt-oss-20b สามารถยกระดับโปรเจกต์ของคุณได้อย่างไรในขณะที่ควบคุมต้นทุนให้อยู่ในระดับที่จัดการได้
ราคา Comet (USD / M Tokens)ราคาทางการ (USD / M Tokens)ส่วนลด
อินพุต:$0.08/M
เอาต์พุต:$0.32/M
อินพุต:$0.1/M
เอาต์พุต:$0.4/M
-20%

โค้ดตัวอย่างและ API สำหรับ gpt-oss-20b

เข้าถึงโค้ดตัวอย่างที่ครอบคลุมและทรัพยากร API สำหรับ gpt-oss-20b เพื่อปรับปรุงกระบวนการผสานรวมของคุณ เอกสารประกอบที่มีรายละเอียดของเราให้คำแนะนำทีละขั้นตอน ช่วยให้คุณใช้ประโยชน์จากศักยภาพเต็มรูปแบบของ gpt-oss-20b ในโครงการของคุณ

โมเดลเพิ่มเติม

G

Nano Banana 2

อินพุต:$0.4/M
เอาต์พุต:$2.4/M
ภาพรวมความสามารถหลัก: ความละเอียด: สูงสุด 4K (4096×4096) เทียบเท่า Pro. ความสม่ำเสมอของภาพอ้างอิง: รองรับภาพอ้างอิงได้สูงสุด 14 ภาพ (วัตถุ 10 รายการ + ตัวละคร 4 ตัว), รักษาความสม่ำเสมอของสไตล์/ตัวละคร. อัตราส่วนภาพแบบสุดโต่ง: เพิ่มอัตราส่วนใหม่ 1:4, 4:1, 1:8, 8:1 เหมาะสำหรับภาพแนวยาว, โปสเตอร์ และแบนเนอร์. การเรนเดอร์ข้อความ: การสร้างข้อความขั้นสูง เหมาะสำหรับอินโฟกราฟิกและเลย์เอาต์โปสเตอร์สำหรับการตลาด. การปรับปรุงการค้นหา: ผสาน Google Search + การค้นหาด้วยภาพ. การยึดโยง: มีกระบวนการคิดในตัว; ทำการให้เหตุผลกับพรอมป์ตที่ซับซ้อนก่อนการสร้าง.
A

Claude Opus 4.6

อินพุต:$4/M
เอาต์พุต:$20/M
Claude Opus 4.6 เป็นโมเดลภาษาขนาดใหญ่ระดับ “Opus” ของ Anthropic เปิดตัวในเดือนกุมภาพันธ์ 2026. ถูกวางตำแหน่งให้เป็นกำลังหลักสำหรับงานเชิงความรู้และเวิร์กโฟลว์การวิจัย — ปรับปรุงการให้เหตุผลในบริบทยาว การวางแผนหลายขั้นตอน การใช้เครื่องมือ (รวมถึงเวิร์กโฟลว์ซอฟต์แวร์เชิงตัวแทน) และงานการใช้คอมพิวเตอร์ เช่น การสร้างสไลด์และสเปรดชีตอัตโนมัติ.
A

Claude Sonnet 4.6

อินพุต:$2.4/M
เอาต์พุต:$12/M
Claude Sonnet 4.6 เป็นโมเดล Sonnet ที่มีความสามารถมากที่สุดเท่าที่เคยมีมา เป็นการอัปเกรดเต็มรูปแบบของทักษะของโมเดล ครอบคลุมการเขียนโค้ด การใช้งานคอมพิวเตอร์ การให้เหตุผลในบริบทยาว การวางแผนของเอเจนต์ งานด้านความรู้ และการออกแบบ Sonnet 4.6 ยังมาพร้อมกับหน้าต่างบริบทขนาด 1M โทเค็นในเวอร์ชันเบต้า
O

GPT-5.4 nano

อินพุต:$0.16/M
เอาต์พุต:$1/M
GPT-5.4 nano ถูกออกแบบมาสำหรับงานที่ความเร็วและต้นทุนมีความสำคัญสูงสุด เช่น การจำแนกประเภท การสกัดข้อมูล การจัดอันดับ และเอเจนต์ย่อย.
O

GPT-5.4 mini

อินพุต:$0.6/M
เอาต์พุต:$3.6/M
GPT-5.4 mini นำจุดแข็งของ GPT-5.4 มาสู่โมเดลที่เร็วกว่าและมีประสิทธิภาพมากขึ้น ซึ่งออกแบบมาสำหรับภาระงานปริมาณมาก
A

Claude Mythos Preview

A

Claude Mythos Preview

เร็วๆ นี้
อินพุต:$60/M
เอาต์พุต:$240/M
Claude Mythos Preview เป็นโมเดลระดับแนวหน้าที่มีความสามารถสูงสุดของเราจนถึงปัจจุบัน และทำคะแนนก้าวกระโดดอย่างชัดเจน บนเบนช์มาร์กการประเมินหลายรายการ เมื่อเทียบกับโมเดลระดับแนวหน้ารุ่นก่อนของเรา Claude Opus 4.6.