LLM Gateway
NEXUS Agent-as-a-Service on Cardano + Stellar | Price: $0.10/request | Accepts: ADA, DJED, iUSD, USDCx, USDM (Cardano) + USDC, XLM (Stellar)
When to use
Use when you need to call any LLM (GPT-5.2, Claude Sonnet 4.5, GPT-4o, Claude Haiku 4.5, GPT-4o-mini) through one endpoint. Supports tier-based routing (economy/standard/premium/auto) and OpenAI-compatible message format.
Steps
Option A: x402 Standard (Recommended)
- 1. Call the service endpoint without payment headers.
- Receive HTTP 402 with
WWW-Authenticate: Payment header AND x402 accepts[] array in response body. - Select a
paymentRequirement from accepts[] matching your preferred network + asset. - Networks:
cardano:mainnet (ADA, DJED, iUSD, USDCx, USDM), stellar:pubnet (USDC, XLM), sandbox (free). - Send payment to the
payTo address for maxAmountRequired in the specified asset. - Stellar fee sponsorship: POST your signed XDR to
https://ai-service-hub-15.emergent.host/api/mpp/stellar/sponsor — NEXUS pays gas, you need 0 XLM. - Retry with
X-PAYMENT: <base64url JSON {x402Version:1, scheme:"exact", network, payload:{tx_hash, currency}}> header. - Parse the JSON response and
X-PAYMENT-RESPONSE header.
Option B: MPP Standard
- 1. Call the service endpoint without payment headers.
- Receive HTTP 402 with
WWW-Authenticate: Payment header listing all accepted currencies and amounts. - Pick your preferred chain + currency: Cardano (ADA, stablecoins) or Stellar (USDC, XLM).
- Create payment: Masumi escrow (Cardano) or direct Stellar transfer.
- Stellar fee sponsorship: POST your signed XDR to
https://ai-service-hub-15.emergent.host/api/mpp/stellar/sponsor — NEXUS pays gas, you need 0 XLM. - Retry with
Authorization: Payment <base64url-credential> header. - Parse the JSON response and
Payment-Receipt header.
Option C: Legacy Header
- 1. Send a POST request to the NEXUS API endpoint with your input.
- Include the
X-Payment-Proof header (Masumi payment ID or sandbox_test for testing). - Parse the JSON response and return the result.
API Call
CODEBLOCK0
Endpoint: https://ai-service-hub-15.emergent.host/api/original-services/llm-gateway
Method: POST
Headers:
- - INLINECODE19
- INLINECODE20 (x402 standard — recommended)
- INLINECODE21 (MPP standard)
- INLINECODE22 (legacy — use
sandbox_test for free testing)
Accepted Currencies: ADA, DJED, iUSD, USDCx, USDM (Cardano) | USDC, XLM (Stellar)
x402 Discovery: GET https://ai-service-hub-15.emergent.host/api/mpp/x402 (all services in native x402 format)
MPP Discovery: GET https://ai-service-hub-15.emergent.host/api/mpp/discover
Stablecoin Registry: GET https://ai-service-hub-15.emergent.host/api/mpp/stablecoins (includes on-chain policy IDs)
Stellar Info: GET https://ai-service-hub-15.emergent.host/api/mpp/stellar (assets, recipient, fee sponsorship)
Fee Sponsorship: POST https://ai-service-hub-15.emergent.host/api/mpp/stellar/sponsor (NEXUS pays Stellar gas — agents need 0 XLM)
External Endpoints
| URL | Method | Data Sent |
|---|
| INLINECODE29 | POST | Input parameters as JSON body |
Security & Privacy
- - All data is sent to
https://ai-service-hub-15.emergent.host over HTTPS/TLS. - No data is stored permanently; requests are processed and discarded.
- Payment proofs are verified on the Cardano blockchain via the Masumi Protocol.
- No filesystem access or shell execution required.
Model Invocation Note
This skill calls the NEXUS AI service API which uses LLM models (GPT-5.2, Claude Sonnet 4.5, GPT-4o) to process requests. The AI processes your input server-side and returns a structured response. You may opt out by not installing this skill.
Trust Statement
By using this skill, your input data is sent to NEXUS (https://ai-service-hub-15.emergent.host) for AI processing. Payments are non-custodial via the Masumi Protocol on Cardano. Only install if you trust NEXUS as a service provider. Visit https://ai-service-hub-15.emergent.host for full documentation.
Tags
INLINECODE31 , ai, gateway, multi-model, gpt, claude, router, INLINECODE38
LLM 网关
基于 Cardano + Stellar 的 NEXUS 即服务型代理 | 价格:$0.10/请求 | 接受:ADA、DJED、iUSD、USDCx、USDM(Cardano)+ USDC、XLM(Stellar)
使用场景
当您需要通过单一端点调用任意 LLM(GPT-5.2、Claude Sonnet 4.5、GPT-4o、Claude Haiku 4.5、GPT-4o-mini)时使用。支持基于层级的路由(经济/标准/高级/自动)和兼容 OpenAI 的消息格式。
步骤
选项 A:x402 标准(推荐)
- 1. 在不携带支付头信息的情况下调用服务端点。
- 接收带有 WWW-Authenticate: Payment 头信息且响应体中包含 x402 accepts[] 数组的 HTTP 402 响应。
- 从 accepts[] 中选择与您偏好的网络和资产匹配的 paymentRequirement。
- 网络:cardano:mainnet(ADA、DJED、iUSD、USDCx、USDM)、stellar:pubnet(USDC、XLM)、sandbox(免费)。
- 以指定资产向 payTo 地址支付 maxAmountRequired 金额。
- Stellar 费用赞助: 将您签名的 XDR 发送至 https://ai-service-hub-15.emergent.host/api/mpp/stellar/sponsor — NEXUS 支付燃料费,您无需持有 XLM。
- 使用 X-PAYMENT: 头信息重试。
- 解析 JSON 响应和 X-PAYMENT-RESPONSE 头信息。
选项 B:MPP 标准
- 1. 在不携带支付头信息的情况下调用服务端点。
- 接收带有 WWW-Authenticate: Payment 头信息(列出所有接受的货币和金额)的 HTTP 402 响应。
- 选择您偏好的链和货币:Cardano(ADA、稳定币)或 Stellar(USDC、XLM)。
- 创建支付:Masumi 托管(Cardano)或直接 Stellar 转账。
- Stellar 费用赞助: 将您签名的 XDR 发送至 https://ai-service-hub-15.emergent.host/api/mpp/stellar/sponsor — NEXUS 支付燃料费,您无需持有 XLM。
- 使用 Authorization: Payment 头信息重试。
- 解析 JSON 响应和 Payment-Receipt 头信息。
选项 C:传统头信息
- 1. 向 NEXUS API 端点发送 POST 请求,附带您的输入。
- 包含 X-Payment-Proof 头信息(Masumi 支付 ID 或用于测试的 sandbox_test)。
- 解析 JSON 响应并返回结果。
API 调用
bash
curl -X POST https://ai-service-hub-15.emergent.host/api/original-services/llm-gateway \
-H Content-Type: application/json \
-H X-Payment-Proof: $NEXUSPAYMENTPROOF \
-d {prompt: 编写一个对列表进行排序的 Python 函数, tier: auto, task_type: code}
端点: https://ai-service-hub-15.emergent.host/api/original-services/llm-gateway
方法: POST
头信息:
- - Content-Type: application/json
- X-PAYMENT: (x402 标准 — 推荐)
- Authorization: Payment (MPP 标准)
- X-Payment-Proof: paymentid>(传统 — 使用 sandbox_test 进行免费测试)
接受的货币: ADA、DJED、iUSD、USDCx、USDM(Cardano)| USDC、XLM(Stellar)
x402 发现: GET https://ai-service-hub-15.emergent.host/api/mpp/x402(所有服务以原生 x402 格式提供)
MPP 发现: GET https://ai-service-hub-15.emergent.host/api/mpp/discover
稳定币注册表: GET https://ai-service-hub-15.emergent.host/api/mpp/stablecoins(包含链上策略 ID)
Stellar 信息: GET https://ai-service-hub-15.emergent.host/api/mpp/stellar(资产、收款人、费用赞助)
费用赞助: POST https://ai-service-hub-15.emergent.host/api/mpp/stellar/sponsor(NEXUS 支付 Stellar 燃料费 — 代理无需持有 XLM)
外部端点
| URL | 方法 | 发送的数据 |
|---|
| https://ai-service-hub-15.emergent.host/api/original-services/llm-gateway | POST | 以 JSON 体形式输入的参数 |
安全与隐私
- - 所有数据通过 HTTPS/TLS 发送至 https://ai-service-hub-15.emergent.host。
- 数据不会永久存储;请求处理后即被丢弃。
- 支付证明通过 Masumi 协议在 Cardano 区块链上进行验证。
- 无需文件系统访问或 shell 执行。
模型调用说明
此技能调用 NEXUS AI 服务 API,该 API 使用 LLM 模型(GPT-5.2、Claude Sonnet 4.5、GPT-4o)处理请求。AI 在服务端处理您的输入并返回结构化响应。您可以通过不安装此技能来选择退出。
信任声明
使用此技能即表示您的输入数据将被发送至 NEXUS(https://ai-service-hub-15.emergent.host)进行 AI 处理。支付通过 Cardano 上的 Masumi 协议以非托管方式进行。仅在您信任 NEXUS 作为服务提供商时安装。请访问 https://ai-service-hub-15.emergent.host 获取完整文档。
标签
llm、ai、网关、多模型、gpt、claude、路由器、cardano