Purchase 10 search/AI-chat credits on Gifu API for $1.00 USDC on Base via x402
What it does
Gifu is an API service that provides search and AI chat features, gated behind a credit-based system. This specific endpoint lets callers purchase a bundle of 10 credits by paying 1.00 USDC (on the Base network) through the x402 payment protocol. Credits are tied to a wallet address supplied in the POST body.
The x402 challenge confirms the endpoint is live and accepts an "exact" payment scheme. The caller sends a POST with a JSON body containing their `walletAddress` and an `X-PAYMENT` header carrying a Base64-encoded x402 payment proof. On success the response returns a boolean `success` flag, the updated `credits` balance, and a `package` object describing the purchased bundle (id, credits count, and price).
Documentation beyond the x402 challenge and the root health endpoint is unavailable — /docs, /api, /pricing, and /README all return 404. The service root confirms three routes: /health, /api/search, and /api/x402/pricing. No OpenAPI spec or additional usage guides were found, so details about the search and AI chat features that the credits unlock remain unspecified.
Capabilities
Use cases
- —Purchasing credits to unlock search queries on the Gifu API
- —Buying AI chat feature access in bulk via a single micropayment
- —Programmatic credit top-up for an agent that needs search or chat capabilities
Fit
Best for
- —Agents that need on-demand search and AI chat access paid per-bundle
- —Developers integrating x402 micropayments for credit-gated services
- —Wallet-based applications on the Base network looking for search/chat APIs
Not for
- —Users who need free or ad-supported search
- —Applications requiring fiat-only payment rails with no crypto wallet
Quick start
curl -X POST https://gifu-server.onrender.com/api/x402/credits/purchase/10 \
-H "Content-Type: application/json" \
-H "X-PAYMENT: <base64-encoded-x402-proof>" \
-d '{"walletAddress": "0xYourWalletAddress"}'Example
Request
{
"walletAddress": "0xAbC1234567890DEF1234567890abcdef12345678"
}Response
{
"credits": 10,
"package": {
"id": "pkg_10_credits",
"price": "1.00",
"credits": 10
},
"success": true
}Endpoint
Quality
The x402 challenge is live and provides a clear outputSchema with input/output fields, pricing (1.00 USDC), and payment details. However, there is no OpenAPI spec, no documentation pages, and no information about what the purchased credits actually unlock beyond the brief description. Response schema is inferred from the challenge's outputSchema.
Warnings
- —No documentation available — /docs, /pricing, /README all return 404
- —No OpenAPI or ai-plugin manifest found
- —Details about the search and AI chat features that credits unlock are unspecified
- —Service is hosted on Render free tier (onrender.com) which may have cold-start latency or availability limitations
Citations
- —The endpoint returns a 402 challenge with maxAmountRequired of 1000000 (1.00 USDC) on Base networkhttps://gifu-server.onrender.com/api/x402/credits/purchase/10
- —The USDC asset address is 0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913 on Basehttps://gifu-server.onrender.com/api/x402/credits/purchase/10
- —The service root confirms endpoints: /health, /api/search, /api/x402/pricinghttps://gifu-server.onrender.com