GPT-OSS 120B
Hosted by OpenAI • Available via Cloudflare Workers AI
O
Input
Enter your prompt
API Examples
Use this model in your code
curl -X POST https://main.gateway-2026-pages.pages.dev/api/mcp \
-H "Content-Type: application/json" \
-H "Authorization: Bearer YOUR_API_KEY" \
-d '{
"jsonrpc": "2.0",
"method": "callTool",
"params": {
"name": "ai_generate",
"arguments": {
"model": "@cf/openai/gpt-oss-120b",
"prompt": ""
}
},
"id": 1
}'import requests
response = requests.post(
"https://main.gateway-2026-pages.pages.dev/api/mcp",
headers={
"Content-Type": "application/json",
"Authorization": "Bearer YOUR_API_KEY"
},
json={
"jsonrpc": "2.0",
"method": "callTool",
"params": {
"name": "ai_generate",
"arguments": {
"model": "@cf/openai/gpt-oss-120b",
"prompt": ""
}
},
"id": 1
}
)
print(response.json())const response = await fetch("https://main.gateway-2026-pages.pages.dev/api/mcp", {
method: "POST",
headers: {
"Content-Type": "application/json",
"Authorization": "Bearer YOUR_API_KEY"
},
body: JSON.stringify({
jsonrpc: "2.0",
method: "callTool",
params: {
name: "ai_generate",
arguments: {
model: "@cf/openai/gpt-oss-120b",
prompt: ""
}
},
id: 1
})
});
const data = await response.json();
console.log(data);<?php
$ch = curl_init("https://main.gateway-2026-pages.pages.dev/api/mcp");
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
curl_setopt($ch, CURLOPT_POST, true);
curl_setopt($ch, CURLOPT_HTTPHEADER, [
"Content-Type: application/json",
"Authorization: Bearer YOUR_API_KEY"
]);
curl_setopt($ch, CURLOPT_POSTFIELDS, json_encode([
"jsonrpc" => "2.0",
"method" => "callTool",
"params" => [
"name" => "ai_generate",
"arguments" => [
"model" => "@cf/openai/gpt-oss-120b",
"prompt" => ""
]
],
"id" => 1
]));
$response = curl_exec($ch);
curl_close($ch);
echo $response;Output
Model response will appear here
Click "Run Model" to see the output...
🤖
Agentic Coding
Complete tasks across software development lifecycle
💬
Customer Agents
Superior instruction following & tool selection
💻
Computer Use
Most accurate model for computer interaction
👁️
Vision Skills
Extract data from charts, graphs, and images