# ESRGAN > Enhanced Super-Resolution GAN that upscales images by a configurable factor with optional face enhancement, with multiple Real-ESRGAN model variants ## Quick Reference - Model ID: esrgan - Creator: Tencent ARC Lab - Status: active - Base URL: https://api.lumenfall.ai/openai/v1 ## Specifications - Max Input Images: 1 - Input Modalities: image - Output Modalities: image - Supported Modes: Upscale ## Model Identifiers - Primary Slug: esrgan ## Dates - Released: September 2018 ## Tags image-upscaling, super-resolution, open-weights ## Available Providers ### fal.ai - Config Key: fal/esrgan - Provider Model ID: fal-ai/esrgan - Pricing: $0.0011/second - Note: Billed per compute second via the x-fal-billable-units response header. - Source: https://fal.ai/models/fal-ai/esrgan ## Code Examples ### Upscale (/v1/images/edits) #### cURL curl -X POST \ https://api.lumenfall.ai/openai/v1/images/edits \ -H "Authorization: Bearer $LUMENFALL_API_KEY" \ -F "model=esrgan" \ -F "image=@source.png" \ -F "prompt=Add a starry night sky to this image" \ -F "size=1024x1024" # Response: # { "created": 1234567890, "data": [{ "url": "https://...", "revised_prompt": "..." }] } #### JavaScript import OpenAI from 'openai'; import fs from 'fs'; const client = new OpenAI({ apiKey: 'YOUR_API_KEY', baseURL: 'https://api.lumenfall.ai/openai/v1' }); const response = await client.images.edit({ model: 'esrgan', image: fs.createReadStream('source.png'), prompt: 'Add a starry night sky to this image', size: '1024x1024' }); // { created: 1234567890, data: [{ url: "https://...", revised_prompt: "..." }] } console.log(response.data[0].url); #### Python from openai import OpenAI client = OpenAI( api_key="YOUR_API_KEY", base_url="https://api.lumenfall.ai/openai/v1" ) response = client.images.edit( model="esrgan", image=open("source.png", "rb"), prompt="Add a starry night sky to this image", size="1024x1024" ) # { created: 1234567890, data: [{ url: "https://...", revised_prompt: "..." }] } print(response.data[0].url) ## Frequently Asked Questions ### How much does ESRGAN cost? ESRGAN starts at $0.00111 per image through Lumenfall. Pricing varies by provider. Lumenfall does not add any markup to provider pricing. ### How do I use ESRGAN via API? You can use ESRGAN through Lumenfall's OpenAI-compatible API. Send requests to the unified endpoint with model ID "esrgan". Code examples are available in Python, JavaScript, and cURL. ### Which providers offer ESRGAN? ESRGAN is available through fal.ai on Lumenfall. Lumenfall automatically routes requests to the best available provider. ## Links - Model Page: https://lumenfall.ai/models/tencent-arc-lab/esrgan - About: https://lumenfall.ai/models/tencent-arc-lab/esrgan/about - Providers, Pricing & Performance: https://lumenfall.ai/models/tencent-arc-lab/esrgan/providers - API Reference: https://lumenfall.ai/models/tencent-arc-lab/esrgan/api - Benchmarks: https://lumenfall.ai/models/tencent-arc-lab/esrgan/benchmarks - Use Cases: https://lumenfall.ai/models/tencent-arc-lab/esrgan/use-cases - Playground: https://lumenfall.ai/playground?model=esrgan - API Documentation: https://docs.lumenfall.ai