Skip to main content

Overview

Percify provides multiple ways to integrate AI avatar generation into your applications. This guide covers official SDKs, REST API integration, and common use cases.

Official SDKs

JavaScript/Node.js

NPM package for Node.js and browser

Python

PyPI package with async support

REST API

Direct HTTP API for any language

JavaScript/Node.js SDK

Installation

Quick Start

Complete Example

Error Handling

Webhooks Integration

Python SDK

Installation

Quick Start

Complete Example

Flask Webhook Integration

REST API Integration

For languages without an official SDK, use the REST API directly:

cURL Examples

PHP Example

Ruby Example

Common Integration Patterns

Batch Processing

Queue System

Retry Logic

Best Practices

  • Store in environment variables
  • Never commit to version control
  • Use different keys for dev/prod
  • Rotate regularly
  • Implement key scoping if available
Instead of polling:

Deployment Considerations

Environment Variables

Rate Limiting

Caching

Next Steps

API Reference

Complete API documentation

Examples

Code examples repository

Support

Get integration help