GPT-OSS 20B chat API: pay per call, no API key
Chat with OpenAI's open-weight gpt-oss-20b reasoning model (Apache 2.0) through one paid HTTP call: send a prompt and an optional system prompt, get the answer, up to 1,024 output tokens. Also reachable as model "gpt-oss-20b" on the OpenAI-compatible /v1/chat/completions. No account or provider key. Use when an agent wants this model by name.
Inputs
| Name | Type | Description |
|---|---|---|
prompt (required) | string | User prompt, up to 8,000 characters |
system | string | Optional system prompt, up to 2,000 characters |
maxTokens | integer | Maximum output tokens, 1-1024 (default 400) |
temperature | number | 0-1.5 (default 0.6) |
Request
Over HTTP, with a card key from /credits:
curl -H "Authorization: Bearer adt_…" "https://agent-data-tools.revmesh2074.workers.dev/ai/model/gpt-oss-20b?prompt=Explain%20x402%20in%20one%20sentence."
Without a key, the same URL answers 402 Payment Required with x402 and MPP terms, so an agent with a wallet pays per call in USDC (Base, Polygon, Arbitrum or Solana over x402; Base or Tempo over MPP) and retries.
Example result
{
"model": "@cf/openai/gpt-oss-20b",
"response": "x402 lets software pay for an HTTP request with a stablecoin by answering a 402 Payment Required challenge."
}
From an AI agent (MCP)
Add the MCP server to Claude, Cursor or any MCP client. This tool is ai_model_gpt_oss_20b, and the first 25 successful calls are free:
https://agent-data-tools.revmesh2074.workers.dev/mcp