Practical algorithm for general image restoration that upscales images while reducing artifacts, with optional face enhancement
Example outputs coming soon
Details
real-esrgan
Starting from
Prices shown are in USD
Full pricing detailsProviders & Pricing (1)
Real-ESRGAN is available exclusively through Replicate, starting at $0.0025/image.
Output
Pricing Notes (1)
- • Replicate bills by hardware seconds; ~$0.0025 per typical run.
realesrgan API OpenAI-compatible
https://api.lumenfall.ai/openai/v1
real-esrgan
Code Examples
Upscale
/v1/images/editscurl -X POST \
https://api.lumenfall.ai/openai/v1/images/edits \
-H "Authorization: Bearer $LUMENFALL_API_KEY" \
-F "model=real-esrgan" \
-F "[email protected]" \
-F "prompt=Add a starry night sky to this image" \
-F "size=1024x1024"
# Response:
# { "created": 1234567890, "data": [{ "url": "https://...", "revised_prompt": "..." }] }
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: 'real-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);
from openai import OpenAI
client = OpenAI(
api_key="YOUR_API_KEY",
base_url="https://api.lumenfall.ai/openai/v1"
)
response = client.images.edit(
model="real-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)
Parameter Normalization
How we handle parameters across different providers
Not every provider speaks the same language. When you send a parameter, we handle it in one of four ways depending on what the model supports:
| Behavior | What happens | Example |
|---|---|---|
passthrough |
Sent as-is to the provider | style, quality |
renamed |
Same value, mapped to the field name the provider expects | prompt |
converted |
Transformed to the provider's native format | size |
emulated |
Works even if the provider has no concept of it | n, response_format |
Parameters we don't recognize pass straight through to the upstream API, so provider-specific options still work.
Real-ESRGAN FAQ
How much does Real-ESRGAN cost?
Real-ESRGAN starts at $0.0025 per image through Lumenfall. Pricing varies by provider. Lumenfall does not add any markup to provider pricing.
How do I use Real-ESRGAN via API?
You can use Real-ESRGAN through Lumenfall's OpenAI-compatible API. Send requests to the unified endpoint with model ID "real-esrgan". Code examples are available in Python, JavaScript, and cURL.
Which providers offer Real-ESRGAN?
Real-ESRGAN is available through Replicate on Lumenfall. Lumenfall automatically routes requests to the best available provider.
Try Real-ESRGAN in Playground
Generate images with custom prompts — no API key needed.