ModelleSupportUnternehmenBlog
500+ KI-Modell-APIs, Alles in einer API. Nur bei CometAPI
Modelle-API
Entwickler
SchnellstartDokumentationAPI Dashboard
Ressourcen
KI-ModelleBlogUnternehmenÄnderungsprotokollÜber uns
2025 CometAPI. Alle Rechte vorbehalten.DatenschutzrichtlinieNutzungsbedingungen
Home/Models/OpenAI/gpt-oss-20b
C

gpt-oss-20b

Eingabe:$0.08/M
Ausgabe:$0.32/M
gpt-oss-20b ist ein von cloudflare-workers-ai bereitgestelltes KI-Modell.
Neu
Kommerzielle Nutzung
Überblick
Funktionen
Preisgestaltung
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.

Funktionen für gpt-oss-20b

Entdecken Sie die wichtigsten Funktionen von gpt-oss-20b, die darauf ausgelegt sind, Leistung und Benutzerfreundlichkeit zu verbessern. Erfahren Sie, wie diese Fähigkeiten Ihren Projekten zugutekommen und die Benutzererfahrung verbessern können.

Preise für gpt-oss-20b

Entdecken Sie wettbewerbsfähige Preise für gpt-oss-20b, die für verschiedene Budgets und Nutzungsanforderungen konzipiert sind. Unsere flexiblen Tarife stellen sicher, dass Sie nur für das bezahlen, was Sie nutzen, und erleichtern die Skalierung entsprechend Ihren wachsenden Anforderungen. Erfahren Sie, wie gpt-oss-20b Ihre Projekte verbessern kann, während die Kosten überschaubar bleiben.
Comet-Preis (USD / M Tokens)Offizieller Preis (USD / M Tokens)Rabatt
Eingabe:$0.08/M
Ausgabe:$0.32/M
Eingabe:$0.1/M
Ausgabe:$0.4/M
-20%

Beispielcode und API für gpt-oss-20b

Greifen Sie auf umfassende Beispielcodes und API-Ressourcen für gpt-oss-20b zu, um Ihren Integrationsprozess zu optimieren. Unsere detaillierte Dokumentation bietet schrittweise Anleitungen und hilft Ihnen dabei, das volle Potenzial von gpt-oss-20b in Ihren Projekten zu nutzen.

Weitere Modelle

G

Nano Banana 2

Eingabe:$0.4/M
Ausgabe:$2.4/M
Überblick über die Kernfunktionen: Auflösung: Bis zu 4K (4096×4096), gleichauf mit Pro. Konsistenz von Referenzbildern: Bis zu 14 Referenzbilder (10 Objekte + 4 Charaktere), wobei Stil-/Charakterkonsistenz beibehalten wird. Extreme Seitenverhältnisse: Neue 1:4, 4:1, 1:8, 8:1-Verhältnisse hinzugefügt, geeignet für lange Bilder, Poster und Banner. Textdarstellung: Fortgeschrittene Textgenerierung, geeignet für Infografiken und Marketing-Poster-Layouts. Sucherweiterung: Integrierte Google Search + Image Search. Fundierung: Integrierter Denkprozess; komplexe Prompts werden vor der Generierung logisch hergeleitet.
A

Claude Opus 4.6

Eingabe:$4/M
Ausgabe:$20/M
Claude Opus 4.6 ist das Großsprachmodell der „Opus“-Klasse von Anthropic, veröffentlicht im Februar 2026. Es ist als Arbeitstier für Wissensarbeit und Forschungs-Workflows positioniert — mit Verbesserungen beim langkontextuellen Denken, bei der mehrstufigen Planung, bei der Tool-Nutzung (einschließlich agentenbasierter Software-Workflows) sowie bei computerbezogenen Aufgaben wie der automatisierten Erstellung von Folien und Tabellen.
A

Claude Sonnet 4.6

Eingabe:$2.4/M
Ausgabe:$12/M
Claude Sonnet 4.6 ist unser bisher leistungsfähigstes Sonnet-Modell. Es ist ein umfassendes Upgrade der Fähigkeiten des Modells in den Bereichen Programmierung, Computernutzung, Schlussfolgern mit langem Kontext, Agentenplanung, Wissensarbeit und Design. Sonnet 4.6 bietet außerdem ein 1M-Token-Kontextfenster in Beta.
O

GPT-5.4 nano

Eingabe:$0.16/M
Ausgabe:$1/M
GPT-5.4 nano ist für Aufgaben konzipiert, bei denen Geschwindigkeit und Kosten am wichtigsten sind, wie Klassifizierung, Datenextraktion, Ranking und Sub-Agenten.
O

GPT-5.4 mini

Eingabe:$0.6/M
Ausgabe:$3.6/M
GPT-5.4 mini bringt die Stärken von GPT-5.4 in ein schnelleres, effizienteres Modell, das für hochvolumige Workloads konzipiert ist.
A

Claude Mythos Preview

A

Claude Mythos Preview

Demnächst verfügbar
Eingabe:$60/M
Ausgabe:$240/M
Claude Mythos Preview ist unser bisher leistungsfähigstes Frontier-Modell und zeigt einen bemerkenswerten Sprung bei den Ergebnissen in vielen Evaluations-Benchmarks im Vergleich zu unserem vorherigen Frontier-Modell, Claude Opus 4.6.