Chat GPT

GPT OSS 20B

OpenAI open-source 20B model

20B
Parameters
128K
Context Window
2.5×
Credit Rate
Starter
Min Tier

Overview

GPT OSS 20B delivers exceptional performance for developers requiring high-fidelity reasoning within a compact parameter footprint. Built on the renowned GPT family, this 20-billion parameter model operates in FP16 precision, ensuring balanced speed and accuracy for production workflows. Its standout feature is the massive 128,000-token context window, allowing seamless processing of extensive documentation, long-form codebases, or multi-turn conversation histories without losing coherence. Whether you are building sophisticated chatbots or analyzing large datasets, this model maintains consistent reliability across diverse linguistic tasks.

Accessible via the starter tier on LLM Resayil, GPT OSS 20B integrates smoothly into existing pipelines with minimal overhead. The permissive MIT license grants you full freedom to modify, distribute, and commercialize applications built upon this foundation without restrictive legal barriers. While the credit multiplier reflects its advanced capabilities, the efficiency of the architecture ensures cost-effective scaling for enterprise deployments. Choose this model when you need open-source flexibility combined with the robust conversational abilities expected from top-tier AI systems.

Specifications

Display Name GPT OSS 20B
Family GPT
Category Chat
Parameters 20B
Context Window 128,000 tokens
Quantization FP16
License MIT
Min Tier Starter
Status Available

Pricing

2.5×
credits per token
1K 2,500 Credits
10K 25,000 Credits
100K 250,000 Credits
View Pricing Plans

Code Examples

from openai import OpenAI

client = OpenAI(
    base_url="https://llmapi.resayil.io/v1/",
    api_key="YOUR_API_KEY"
)

response = client.chat.completions.create(
    model="gpt-oss:20b",
    messages=[
        {"role": "user", "content": "Hello!"}
    ]
)

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

client = anthropic.Anthropic(
    base_url="https://llmapi.resayil.io/v1",
    api_key="YOUR_API_KEY"
)

message = client.messages.create(
    model="gpt-oss:20b",
    max_tokens=1024,
    messages=[
        {"role": "user", "content": "Hello!"}
    ]
)

print(message.content[0].text)
const response = await fetch(
    "https://llmapi.resayil.io/v1/chat/completions",
    {
        method: "POST",
        headers: {
            "Content-Type": "application/json",
            "Authorization": "Bearer YOUR_API_KEY"
        },
        body: JSON.stringify({
            model: "gpt-oss:20b",
            messages: [
                { role: "user", content: "Hello!" }
            ]
        })
    }
);

const data = await response.json();
console.log(data.choices[0].message.content);
curl https://llmapi.resayil.io/v1/chat/completions \
  -H "Content-Type: application/json" \
  -H "Authorization: Bearer YOUR_API_KEY" \
  -d '{
    "model": "gpt-oss:20b",
    "messages": [
      {"role": "user", "content": "Hello!"}
    ]
  }'

Use Cases

Summarizing long documents and research papers efficiently
Building customer support chatbots with long context
Analyzing legal contracts for key clauses and risks
Refactoring and documenting large legacy codebases effectively
Creating personalized tutoring systems for educational platforms

Related Models

Start building with GPT OSS 20B

Get 1,000 free credits when you sign up — no credit card required.