ai_reasoning_120b
Runs OpenAI gpt-oss-120B chain-of-thought reasoning on Cloudflare Edge with configurable reasoning effort (low/medium/high) and optional strict JSON output mode. Use for hard math, planning, or strict-JSON single-prompt reasoning; use ai_nemotron_550b for multi-turn chat arrays or 550B synthesis, or ai_code_security_review for code audits. Read-only, stateless; costs $0.050 Base USDC via x402 (unpaid calls return a v2 quote challenge without charging; invalid inputs return 400 uncharged).
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"prompt": "<prompt>"
},
"name": "ai_reasoning_120b"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| effort | No | Chain-of-thought reasoning depth: 'low' (fastest), 'medium' (balanced, default), or 'high' (deepest verification). | medium |
| prompt | Yes | Primary problem statement, calculation, or reasoning task for the 120B model. | |
| json_mode | No | When true, enforces valid JSON-only output in the final answer (default false). | |
| instructions | No | Optional system-level instructions, constraints, or output schema specification. |