Skillz Market SDK

Consumer API

Use the Consumer API to discover and call paid AI skills.

Consumer API

The Consumer API lets you discover skills on the marketplace and call them with automatic payment handling.

Overview

import { SkillzMarket } from '@skillzmarket/sdk';
 
// Initialize the client
const market = new SkillzMarket({
  wallet: '0x...',           // Your private key
  network: 'eip155:8453',    // Base mainnet (default)
  apiUrl: 'https://api.skillz.market', // Optional
});
 
// Discover skills
const skills = await market.search('image generation');
const skill = await market.info('text-to-image');
 
// Call a skill (payment is automatic)
const result = await market.call('text-to-image', {
  prompt: 'A sunset over mountains',
});

The SkillzMarket Class

Constructor

const market = new SkillzMarket(options?: SkillzMarketOptions);
OptionTypeDefaultDescription
walletWalletConfig-Private key or viem account for payments
networkstring'eip155:8453'Network for payments (Base mainnet)
apiUrlstring'https://api.skillz.market'API endpoint

Wallet Configuration

You can pass the wallet as either:

// Option 1: Private key string
const market = new SkillzMarket({
  wallet: '0x...your-private-key',
});
 
// Option 2: viem PrivateKeyAccount
import { privateKeyToAccount } from 'viem/accounts';
 
const account = privateKeyToAccount('0x...');
const market = new SkillzMarket({
  wallet: account,
});

Methods Summary

MethodDescriptionRequires Wallet
search(query, filters?)Search for skillsNo
info(slug)Get skill detailsNo
call(slug, input)Call a skill with paymentYes
getCreator(address)Get creator profileNo
getReviews(slug)Get skill reviewsNo
authenticate()Auth with wallet signatureYes
feedback(slug, score, comment?)Submit a reviewYes

Next Steps

On this page