gpt oss 20b chat completions
gpt_oss_20b_chat_completionsOpenAI-compatible chat completions on OpenAI gpt-oss-20b open-weight reasoning model with tool calling. Set your OpenAI SDK base URL to https://agentrxi.com/v1/gpt-oss-20b and pay per token with x402 instead of an API key: $0.6 per million input and $0.9 per million output tokens, minimum $0.002 a call, at most $0.0099. 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.0099 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_20b_chat_completions"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| model | No | Ignored; always gpt-oss-20b | |
| tools | No | OpenAI function tools | |
| stream | No | ||
| messages | Yes | ||
| max_tokens | No | ||
| temperature | No |