gpt oss chat completions
gpt_oss_chat_completionsOpenAI-compatible chat completions on OpenAI gpt-oss-120b, the strongest open-weight OpenAI model, reasoning with tool calling. Set your OpenAI SDK base URL to https://agentrxi.com/v1/gpt-oss and pay per token with x402 instead of an API key: $1.05 per million input and $2.25 per million output tokens, minimum $0.002 a call, at most $0.0185. The 402 quotes your request's maximum; "upto" payers are charged only the tokens used. Same request/response shape as OpenAI (tool calling, reasoning, streaming supported), up to 4096 output tokens. Costs $0.0185 USDC per call (x402).
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": {
"messages": "<messages>"
},
"name": "gpt_oss_chat_completions"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| model | No | Ignored; always gpt-oss-120b | |
| tools | No | OpenAI function tools | |
| stream | No | ||
| messages | Yes | ||
| max_tokens | No | ||
| temperature | No |