# groq/openai/gpt-oss-120b

Source: https://docs.sociaro.com/models/groq-openai-gpt-oss-120b/

OpenAI's open-weight gpt-oss-120b — a mixture-of-experts with 120B parameters, about 5.1B of them active per token — run on Groq for fast output.

Built for agentic use, long-context reasoning, maths and code; 131,072 tokens of context and up to 65,536 of output, with Groq's built-in browser search available.

|  |  |
| --- | --- |
| Slug | `groq/openai/gpt-oss-120b` |
| Kind | chat |
| Vendor | groq |
| Endpoint | `POST /v1/chat/completions` |

[View pricing and billing conditions](https://docs.sociaro.com/models/groq-openai-gpt-oss-120b/#pricing)

## Example request

cURL

```bash
curl https://api.sociaro.com/v1/chat/completions \
  -H "Authorization: Bearer $SOCIARO_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
        "model": "groq/openai/gpt-oss-120b",
        "messages": [{"role": "user", "content": "hello"}]
      }'
```

Python

```python
# Requires Python 3 and requests (pip install requests).
import os
import requests

payload = {'model': 'groq/openai/gpt-oss-120b',
 'messages': [{'role': 'user', 'content': 'hello'}]}

response = requests.post(
    'https://api.sociaro.com/v1/chat/completions',
    headers={
        'Authorization': 'Bearer ' + os.environ['SOCIARO_API_KEY'],
        'Content-Type': 'application/json',
    },
    json=payload,
    timeout=120,
)
response.raise_for_status()
print(response.text)
```

JavaScript

```javascript
// Run as an .mjs file with Node.js 22 or later.

const payload = {
  "model": "groq/openai/gpt-oss-120b",
  "messages": [
    {
      "role": "user",
      "content": "hello"
    }
  ]
};

const response = await fetch("https://api.sociaro.com/v1/chat/completions", {
  method: "POST",
  headers: {
    "Authorization": "Bearer " + process.env.SOCIARO_API_KEY,
    "Content-Type": "application/json",
  },
  body: JSON.stringify(payload),
});
if (!response.ok) throw new Error(`HTTP ${response.status}: ${await response.text()}`);
console.log(await response.text());
```

## Parameters

- `frequency_penalty`
- `logit_bias`
- `logprobs`
- `top_logprobs`
- `max_tokens`
- `max_completion_tokens`
- `modalities`
- `prediction`
- `n`
- `presence_penalty`
- `seed`
- `stop`
- `stream`
- `stream_options`
- `temperature`
- `top_p`
- `tools`
- `tool_choice`
- `function_call`
- `functions`
- `extra_headers`
- `parallel_tool_calls`
- `audio`
- `web_search_options`
- `service_tier`
- `safety_identifier`
- `prompt_cache_key`
- `prompt_cache_retention`
- `store`
- `response_format`
- `reasoning_effort`

## Pricing

| Billable unit and options | Rate (USD) |
| --- | --- |
| per 1M input tokens | $0.396 |
| per 1M output tokens | $0.852 |
| per 1M cached input tokens | $0.204 |
| per 1K web searches | $6.0 |

- Runs on Groq.
- Each page the search tool opens is billed $1.20 per 1K opens.

[View this model in the pricing catalogue](https://sociaro.com/pricing?model=groq%2Fopenai%2Fgpt-oss-120b). Your [billing logs](https://docs.sociaro.com/billing/index.md) show the actual charge for each request.
