text generation
gpt-oss-20b
by openai
license: apache-2.0
5,464,001 downloads5,343 likes
Get API KeyAPI Usage
Endpoint
POST https://api.gpu.fm/v1/inferenceRequest
curl -X POST https://api.gpu.fm/v1/inference \
-H "Authorization: Bearer YOUR_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"model": "openai/gpt-oss-20b",
"inputs": "Explain the theory of relativity in simple terms",
"parameters": {
"max_new_tokens": 256
}
}'Response
{
"result": "Albert Einstein's theory of relativity...",
"usage": {
"inputTokens": 12,
"outputTokens": 128
},
"pricing": {
"total": "0.000018"
}
}Python SDK
import requests
response = requests.post(
"https://api.gpu.fm/v1/inference",
headers={"Authorization": "Bearer YOUR_API_KEY"},
json={
"model": "openai/gpt-oss-20b",
"inputs": "Explain the theory of relativity in simple terms",
"parameters": {"max_new_tokens": 256}
}
)
result = response.json()
print(result["result"])Model Documentation
Full documentation available on HuggingFace →
Pricing
Input$0.13/1M tokens
Output$0.39/1M tokens
Billed from your prepaid credits. No minimum commitment.
Details
- Model ID
- openai/gpt-oss-20b
- Library
- transformers
- Pipeline
- text generation
- Updated
- 8/26/2025
Tags
transformerssafetensorsgpt_osstext-generationvllmconversationalarxiv:2508.10925license:apache-2.0eval-resultsendpoints_compatible