Developers

Build with PeerCat

Integrate AI image generation, chat, and research into your applications with our SDKs, REST API, and MCP server.

Quick Start

Generate your first image in under 5 minutes

1

Get your API key

Create an account and generate an API key from your dashboard.

2

Install the SDK

Choose your language and install the package.

3

Make your first request

Initialize the client and generate an image.

4

Add credits

Top up your account with SOL, USDC, or card.

quickstart.ts
import { PeerCat } from '@peercat/sdk'

const client = new PeerCat({ apiKey: 'your-api-key' })

// Generate an image
const image = await client.images.generate({
  prompt: 'A cat wearing sunglasses, digital art',
  model: 'flux-2-pro',
})

console.log(image.url)

Authentication

Secure your API requests

All API requests require an API key. Include your key in theAuthorizationheader:

http
Authorization: Bearer your-api-key

Or when using an SDK, pass it during initialization:

typescript
const client = new PeerCat({
  apiKey: process.env.PEERCAT_API_KEY
})

Security tip: Never expose your API key in client-side code. Always use environment variables and server-side requests.