🎩 You're Invited:Meet the Socket team at Black Hat in Las Vegas, August 3-6.RSVP
Sign In

@pathcourse/sdk

Package Overview
Dependencies
Maintainers
2
Versions
10
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@pathcourse/sdk

Official JavaScript SDK for the PathCourse AI gateway -- 15 inference tokens, x402 micropayments, ERC-8004 agent identity, USDC on Base L2.

Source
npmnpm
Version
0.2.1
Version published
Weekly downloads
3
-86.36%
Maintainers
2
Weekly downloads
 
Created
Source

@pathcourse/sdk

Official JavaScript SDK for the PathCourse Health AI gateway.

15 inference tokens. USDC micropayments on Base L2 via x402. ERC-8004 agent identity. No accounts required.

Install

npm install @pathcourse/sdk

Quick Start

import { PathCourseClient, PCH_FAST, PCH_PRO } from '@pathcourse/sdk';

const client = new PathCourseClient({ apiKey: 'your-pch-api-key' });

const response = await client.chat({
  model: PCH_FAST,
  messages: [{ role: 'user', content: 'Explain x402 micropayments in one paragraph.' }],
});

console.log(response.text);

Embeddings

const result = await client.embed({ input: 'The quick brown fox jumps over the lazy dog.' });
console.log(`Embedding dimension: ${result.embeddings[0].length}`);

Translation

const result = await client.translate({ text: 'Bonjour le monde', targetLanguage: 'en' });
console.log(result.translated_text); // "Hello world"

Models

ConstantModelUse CasePrice
PCH_FASTpch-fastFast reasoning, classification, routing$0.44/M tokens
PCH_PROpch-proDeep reasoning, multi-step planning$1.96/M tokens
PCH_CODERpch-coderCode generation, debugging$3.50/M tokens
PCH_IMAGEpch-imageText-to-image generation$0.028/image
PCH_AUDIOpch-audioText-to-speech (standard)$1.85/M chars
PCH_AUDIO_PREMIUMpch-audio-premiumText-to-speech (premium)$37.00/M chars
PCH_DOCUMENTSpch-documentsDocument parsing, OCR$0.26/$1.48 per M tokens
PCH_TALKpch-talkVoice conversation$0.001/min
CLAUDE_HAIKUclaude-haikuThird-party (Silver+ tier)Markup over provider cost
CLAUDE_SONNETclaude-sonnetThird-party (Gold tier)Markup over provider cost
PCH_EMBEDpch-embedText embeddings$0.015/M tokens
PCH_TRANSCRIBEpch-transcribeSpeech-to-text$0.0008/min
PCH_TRANSLATEpch-translateTranslation (109 languages)$0.08/M chars
PCH_EXTRACTpch-extractNamed entity extraction (zero-shot)$0.012/M tokens
PCH_RERANKpch-rerankRetrieval reranking$0.025/M tokens

Environment Variables

  • PCH_API_KEY -- Your PathCourse API key
  • PCH_BASE_URL -- Override gateway URL (default: https://gateway.pathcoursehealth.com)

Settlement

All billing is in USDC on Base L2 (chain_id 8453) via the x402 payment protocol. Deposit USDC to the PCH treasury wallet to receive an API key. No accounts, no credit cards, no KYC.

Keywords

llm

FAQs

Package last updated on 18 Apr 2026

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts