# PigenAI Developer API & Model Directory > PigenAI (https://www.pigenai.art/) provides ultra-low latency, OpenAI-compatible REST APIs for AI image generation, image editing, and video synthesis with transparent pay-per-request USD pricing. No mandatory subscriptions. ## Overview & Core Differentiators - **Direct USD Micro-Pricing**: Pay exact fractions of a cent per image (starting at $0.0008/img) and per second of video (starting at $0.032/sec). - **Significant Cost Savings**: Up to 68% cheaper than official market standard rates across flagship image and video models. - **OpenAI SDK Drop-In Compatibility**: Use official `openai` Python and Node.js SDKs by simply setting `base_url="https://api.pigenai.art/v1"`. - **Automated Instant Refunds**: Account balances are credited back in milliseconds if an upstream model fails or times out. - **Commercial Rights Included**: Full commercial rights on all generated assets with no watermarks and zero egress fees. --- ## Developer API Quickstart ### Base URLs - Production API Base: `https://api.pigenai.art/v1` - Developer Console & API Key Dashboard: https://www.pigenai.art/developers - Public Model Catalog: https://www.pigenai.art/api/models ### Authentication Include your API key as a Bearer token in the `Authorization` header: ```bash Authorization: Bearer pk_live_YOUR_API_KEY ``` ### Python (OpenAI SDK Compatible) ```python from openai import OpenAI client = OpenAI( api_key="pk_live_YOUR_API_KEY", base_url="https://api.pigenai.art/v1" ) response = client.images.generate( model="stabilityai/sdxl-turbo", prompt="A futuristic cybernetic tiger in neon lights, ultra realistic 8k", size="1024x1024" ) print("Image URL:", response.data[0].url) ``` ### cURL (Text-to-Image / Image-to-Image) ```bash curl -X POST "https://api.pigenai.art/v1/images/generations" \ -H "Authorization: Bearer pk_live_YOUR_API_KEY" \ -H "Content-Type: application/json" \ -d '{ "model": "stabilityai/sdxl-turbo", "prompt": "A futuristic cybernetic tiger in neon lights, ultra realistic 8k", "size": "1024x1024" }' ``` ### cURL (Text-to-Video / Image-to-Video) ```bash curl -X POST "https://api.pigenai.art/v1/videos/generations" \ -H "Authorization: Bearer pk_live_YOUR_API_KEY" \ -H "Content-Type: application/json" \ -d '{ "model": "bytedance/seedance-1-pro-fast", "prompt": "Cinematic camera movement through dynamic lighting scenery", "size": "1280x720", "seconds": 5 }' ``` --- ## AI Model Catalog & Transparent USD Pricing (2026) ### 1. Text-to-Image Models | Model ID | Price (USD) | Highlights & Market Comparison | Model Page | | :--- | :--- | :--- | :--- | | `stabilityai/sdxl-turbo` | **$0.0008 / img** | ⚡ **68% cheaper than Market Std.** Instant real-time synthesis | [SDXL Turbo API](https://www.pigenai.art/api/models/stabilityai/sdxl-turbo) | | `black-forest-labs/flux-1-schnell` | **$0.0030 / img** | Ultra-fast 4-step generation with high prompt adherence | [Flux Schnell API](https://www.pigenai.art/api/models/black-forest-labs/flux-1-schnell) | | `HiDream-ai/HiDream-I1-Fast` | **$0.0050 / img** | ⚡ **45% cheaper than market std.** High detail artistic synthesis | [HiDream I1 Fast API](https://www.pigenai.art/api/models/HiDream-ai/HiDream-I1-Fast) | | `bytedance/seedance-1-fast` | **$0.0180 / img** | Fast ByteDance generation with balanced rendering | [Seedance 1 Fast API](https://www.pigenai.art/api/models/bytedance/seedance-1-fast) | | `google/imagen-4-fast` | **$0.0240 / img** | Google DeepMind Imagen 4 fast photorealistic image synthesis | [Imagen 4 Fast API](https://www.pigenai.art/api/models/google/imagen-4-fast) | | `recraft/recraft-v4` | **$0.0270 / img** | ⚡ **~25-30% cheaper** Best-in-class vector art & typography | [Recraft v4 API](https://www.pigenai.art/api/models/recraft/recraft-v4) | | `bytedance/seedance-1-pro` | **$0.0300 / img** | Studio-grade photorealistic image generation | [Seedance 1 Pro API](https://www.pigenai.art/api/models/bytedance/seedance-1-pro) | ### 2. Image-to-Image & Editing Models | Model ID | Price (USD) | Highlights & Market Comparison | Model Page | | :--- | :--- | :--- | :--- | | `prunaai/P-Image-Upscale` | **$0.0120 / img** | 2K and 4K AI super-resolution upscaling | [P-Image-Upscale API](https://www.pigenai.art/api/models/prunaai/P-Image-Upscale) | | `qwen/qwen-image-edit` | **$0.0150 / img** | ⚡ **28% cheaper than Market Std.** High-precision instructional edit | [Qwen Image Edit API](https://www.pigenai.art/api/models/qwen/qwen-image-edit) | | `krea/krea-2-turbo` | **$0.0230 / img** | Fast real-time image-to-image styling and enhancement | [Krea 2 Turbo API](https://www.pigenai.art/api/models/krea/krea-2-turbo) | | `qwen/qwen-image-layered` | **$0.0250 / img** | Multi-layer decomposed image editing | [Qwen Image Layered API](https://www.pigenai.art/api/models/qwen/qwen-image-layered) | | `wan/wan-2.7-image` | **$0.0340 / img** | High-fidelity image transformation with rich aspect ratios | [Wan 2.7 Image API](https://www.pigenai.art/api/models/wan/wan-2.7-image) | ### 3. Video Generation Models | Model ID | Price (USD) | Highlights & Market Comparison | Model Page | | :--- | :--- | :--- | :--- | | `bytedance/seedance-1-pro-fast` | **$0.0320 / sec** | ⚡ **~34% cheaper than market std.** Ultra-smooth 5s & 10s video | [Seedance 1 Pro Fast API](https://www.pigenai.art/api/models/bytedance/seedance-1-pro-fast) | | `xAI/grok-imagine-video` | **$0.0450 / sec** | ⚡ **EXCLUSIVE Service**, yet cheaper than official X API | [Grok Imagine Video API](https://www.pigenai.art/api/models/xAI/grok-imagine-video) | | `kling/kling-2.1-standard` | **$0.0550 / sec** | ⚡ **~31% cheaper** Industry standard cinematic motion | [Kling 2.1 Standard API](https://www.pigenai.art/api/models/kling/kling-2.1-standard) | | `veo-3.1-fast` | **$0.0750 / sec** | Google Veo 3.1 Fast high-definition cinematic video | [Veo 3.1 Fast API](https://www.pigenai.art/api/models/veo-3.1-fast) | | `kling/kling-2.1-pro` | **$0.0900 / sec** | Pro cinematic video with complex camera control | [Kling 2.1 Pro API](https://www.pigenai.art/api/models/kling/kling-2.1-pro) | --- ## Balance Top-Up Packs & Bonuses Developers purchase API balance in direct USD currency. Volume bonuses are applied automatically: - **Starter Pack**: $5.00 ($5.00 balance) - **Builder Pack**: $10.00 ($10.50 balance, **+5% free bonus**) - **Scale Pack**: $25.00 ($27.50 balance, **+10% free bonus**) - **Mega Pack**: $50.00 ($57.50 balance, **+15% free bonus**) --- ## Core Endpoints - `POST /v1/images/generations` — Generate images from text prompts (OpenAI compatible) - `POST /v1/images/edits` — Image-to-image transformation and editing - `POST /v1/videos/generations` — Text-to-video and image-to-video synthesis - `GET /v1/models` — List all active models with real-time metadata and capabilities - `GET /v1/balance` — Check live USD balance - `GET /v1/usage` — Usage analytics, total cost, and latency metrics - `GET /v1/usage/history` — Granular per-request audit logs --- ## Useful Links - [Complete Model Catalog](https://www.pigenai.art/api/models) - [Developer Console & Key Management](https://www.pigenai.art/developers) - [Full LLM Documentation (llms-full.txt)](https://www.pigenai.art/llms-full.txt) - [Web Application & Generator](https://www.pigenai.art/create) - [Web Subscription Pricing](https://www.pigenai.art/pricing)