npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2026 – Pkg Stats / Ryan Hefner

@orynt/ai-x402

v1.2.3

Published

AI model wrapper using x402 payment for pay per request

Readme

@orynt/ai-x402

A lightweight, ai model-agnostic client providing unified access to AI models. With HTTPS-x402 micropayments using USDC, you pay only for what you use no subscriptions or API keys required.


Features

  • Pay-As-You-Use – Built-in HTTPS-x402 micropayments using USDC, so you only pay for what you consume.

  • model-Agnostic - Interact with multiple AI models through a single unified API

  • No Subscriptions or API Keys – Simplifies integration by using your crypto wallet or private key for authorization.

  • Unified AI Endpoints – Chat, embeddings, image generation, speech-to-text, and text-to-speech in a consistent API

  • 💸 Built-in support for HTTP-402 paywall / metered token usage


Models

| Model | Provider | features | | ----------------------------------------- | ---------------- | ------------------------------------------------------------------------ | | gpt-4.1 | Openai | chat,embeddings,image generation,speech-to-text,text-to-speech | | gpt-4o-mini | Openai | chat,embeddings,image generation,speech-to-text,text-to-speech | | gpt-3.5-turbo | Openai | chat | | o1-mini | Openai | chat | | text-embedding-3-small | Openai | embeddings | | whisper-1 | Openai | speech-to-text | | gpt-4o-mini-tts | Openai | text-to-speech | | dall-e-3 | Openai | image-generation | | qwen/qwen3-coder-480b-instruct-fp8 | Gradient-network | chat | | qwen/qwen3-coder-480b-instruct-fp8-free | Gradient-network | chat | | openai/gpt-oss-120b-free | Gradient-network | chat |


Supported Networks

| Network | | ---------------- | | avalanche | | avalanche-fuji | | solana | | solana-devnet | | base | | base-sepolia | | polygon | | polygon-amoy |


🚀 Installation

npm add @orynt/ai-x402

Basic Usage

provide a PRIVATE_KEY=...walletPrivate in your .env

import { Orynt } from "@orynt/ai-x402";

const ai = new Orynt({
  baseUrl: "https://api.oryntai.xyz/api/v1",
  network: "avalanche",
});

await ai.chat({
  model: "gpt-4.1",
  messages: [{ role: "user", content: "Hello" }],
});

await ai.chat({
  model: "gpt-4.1",
  input: "Explain the x402 in one sentence.",
});

await ai.chat({
  model: "gpt-4.1",
  prompt: "Explain the x402 in one sentence.",
});

await ai.generateImage({
  model: "dall-e-3",
  prompt: "A futuristic city skyline at sunset",
  n: 1,
  width: 1024,
  height: 1024,
});

await ai.textToSpeech({
  model: "gpt-4o-mini-tts",
  text: "Hello, welcome to X402 AI service.",
  voice: "alloy",
  format: "mp3",
});

Future Enhancements

  • [ ] Add browser support
  • [ ] Support for multiple payment tokens

License

MIT

Credits

Built on top of:


Note: This is a beta release. The API is subject to change. Please report any issues on GitHub.