Home · All models · Pricing
Qwen 3 Next 80b API, pay per call
Call Qwen 3 Next 80b (qwen/qwen-3-next-80b) with an OpenAI-compatible request and pay per call in USDC on Base with x402. No API key, no account, no subscription; automatic refund if the model fails to answer.
POST https://modelaccessgateway.com/llm/qwen-3-next-80bqwen/qwen-3-next-80b (fixed by the path; body.model can be omitted)How to call it
- POST your OpenAI-style request to
https://modelaccessgateway.com/llm/qwen-3-next-80bwithout payment. The answer is HTTP 402 with aPAYMENT-REQUIREDheader: the exact price in USDC for that prompt andmax_tokens(x402 v2, schemeexact, Base mainnet). - Sign the payment with any x402 client (EIP-3009
transferWithAuthorization; the wallet needs USDC on Base, no ETH). - Send the same request again with the
PAYMENT-SIGNATUREheader. You get a standardchat.completion(or server-sent events with"stream": true). If the model fails to answer, the payment is refunded automatically.
// npm i @x402/core @x402/evm @x402/fetch viem
import { x402Client } from "@x402/core/client";
import { registerExactEvmScheme } from "@x402/evm/exact/client";
import { wrapFetchWithPayment } from "@x402/fetch";
import { privateKeyToAccount } from "viem/accounts";
const client = new x402Client();
registerExactEvmScheme(client, { signer: privateKeyToAccount(process.env.WALLET_KEY), networks: ["eip155:8453"] });
const pay = wrapFetchWithPayment(fetch, client);
const r = await pay("https://modelaccessgateway.com/llm/qwen-3-next-80b", { method: "POST", headers: { "content-type": "application/json" },
body: JSON.stringify({ messages: [{ role: "user", content: "Hello" }], max_tokens: 256 }) });
console.log((await r.json()).choices[0].message.content);
Quote only (free): curl -i -X POST https://modelaccessgateway.com/llm/qwen-3-next-80b -H 'content-type: application/json' -d '{"messages":[{"role":"user","content":"Hello"}],"max_tokens":256}'
When to use it
For AI agents, scripts and apps that need on-demand LLM inference from Qwen 3 Next 80b (text generation, summarization, coding, function calling) and pay per call from a wallet instead of opening an account with a provider.
Limits
- max_tokens 1 to 16,384 (default 4,096 when omitted); up to 256 messages; request body up to 384 KB.
- Streaming:
"stream": truereturns OpenAI-style server-sent events after the payment settles. - Function calling in OpenAI format (tools, tool_choice, tool results), passed through where the model supports it. temperature, top_p, stop, seed and response_format are passed through where the model supports them. Text only.
Machine-readable: OpenAPI, llms.txt, x402 manifest. Terms of use. The gateway is independent and not affiliated with any model provider; model names only identify the model that answers.