Back to Marketplace
AI / MLInference OnlyAP2

Text Sentiment Analysis

by Test

About

Classify text sentiment as positive, negative, or neutral using a fine-tuned transformer model. Powered by HuggingFace Inference API.

API Reference

POST/

Example Response

json
[
  [
    {
      "label": "POSITIVE",
      "score": 0.9998
    },
    {
      "label": "NEGATIVE",
      "score": 0.0002
    }
  ]
]

Error Codes

400

Bad Request

Missing or invalid parameters

401

Unauthorized

Invalid or missing API credentials

429

Too Many Requests

Rate limit exceeded

500

Internal Server Error

Upstream API error — payment hash released for retry

View full API documentation

How to Call This API

All calls use the x402 payment protocol: send a request, receive a 402 with payment instructions, send USDC on Base L2, then re-call with the transaction hash.

Generating code snippets...

Payment Flow

1

GET https://gateflow-proxy.7crypto-jo.workers.dev/v1/a072c723/text-sentiment-analysis — receive a 402 with payment instructions

2

Send USDC on Base L2 to the address in X-Payment-Address

3

Wait for 1+ block confirmation (≈ 2 seconds on Base)

4

Re-send your original request with the tx hash in X-Payment-Hash

5

Obolo verifies on-chain and proxies the request to the upstream API

AP2 Support

This endpoint also accepts AP2 Cart Mandates. Include a signed Cart Mandate in the X-AP2-Mandate header with an x402 tx hash embedded in payment.txHash.

Pay on Any Chain

Base$0.0030
TokenUSDCAPI price$0.0020Est. gas$0.001Total est.$0.0030Confirms in~2s
curl
curl "https://gateflow-proxy.7crypto-jo.workers.dev/v1/a072c723/text-sentiment-analysis" \
  -H "X-Payment-Hash: 0x<your_tx_hash>" \
  -H "X-Payment-Chain: 8453"
Arbitrum$0.0040
TokenUSDCAPI price$0.0020Est. gas$0.002Total est.$0.0040Confirms in~1s
curl
curl "https://gateflow-proxy.7crypto-jo.workers.dev/v1/a072c723/text-sentiment-analysis" \
  -H "X-Payment-Hash: 0x<your_tx_hash>" \
  -H "X-Payment-Chain: 42161"
Optimism$0.0040
TokenUSDCAPI price$0.0020Est. gas$0.002Total est.$0.0040Confirms in~2s
curl
curl "https://gateflow-proxy.7crypto-jo.workers.dev/v1/a072c723/text-sentiment-analysis" \
  -H "X-Payment-Hash: 0x<your_tx_hash>" \
  -H "X-Payment-Chain: 10"
0.002
USDC per call
Try ItSubscribe Monthly
https://gateflow-proxy.7crypto-jo.workers.dev/v1/a072c723/text-sentiment-analysis

Accepted Payments

USDC

Base L2 (Chain 8453)

USDT

Base L2 (Chain 8453)

Protocols

x402ap2

Security

  • ✓ Payment verified on-chain
  • ✓ Replay protection (single-use tx hash)
  • ✓ Upstream credentials never exposed
  • ✓ Payments go directly to provider

Provider

Test

Member since Feb 2026

API catalog