
Output
image
Inputs
- Reference image (required)
Example prompt
Upload any photo — ESRGAN uses a deep GAN network to produce sharp, artifact-free upscaled results.Try this prompt →
LLM-ready
API & LLM schema
Exact request contract for this model. Agents can fetch it from /api/v1/models?id=fal-ai/esrgan.
POST
/api/v1/generate13 fields · 2 required| Field | Type | Requirement | Contract |
|---|---|---|---|
model_id | constant | Required | ArtEmotion model identifier. |
extra | object | Optional | Model-specific settings may also be nested here. |
max_credits | number | Optional | Reject before submission if the estimated list price exceeds this cap. · Range: 1–… |
webhook_url | string | Optional | Format: uri |
webhook_secret | string | Optional | Optional model input. |
folder_id | string | Optional | Optional model input. |
prompt | string | Optional | Optional model input. |
model | string | Optional | Model to use for upscaling · Allowed: RealESRGAN_x4plus, RealESRGAN_x2plus, RealESRGAN_x4plus_anime_6B, RealESRGAN_x4_v3, RealESRGAN_x4_wdn_v3, RealESRGAN_x4_anime_v3 · Default: RealESRGAN_x4plus |
face | boolean | Optional | Upscaling a face · Default: false |
scale | number | Optional | Rescaling factor · Default: 2 · Range: 1–8 |
tile | number | Optional | Tile size (0 = no tile). Set to 400 or 200 if running out of GPU memory. · Default: 0 |
output_format | string | Optional | Output image format. · Allowed: png, jpeg · Default: png |
reference_image_url | string | Required | Format: uri |
Minimal request example
{
"model_id": "fal-ai/esrgan",
"reference_image_url": "https://example.com/reference_image"
}Raw JSON Schema
{
"$schema": "https://json-schema.org/draft/2020-12/schema",
"$id": "https://www.artemotion.ai/api/v1/models?id=fal-ai%2Fesrgan",
"title": "ESRGAN generation request",
"description": "Request body accepted by POST /api/v1/generate for fal-ai/esrgan.",
"type": "object",
"properties": {
"model_id": {
"type": "string",
"const": "fal-ai/esrgan",
"description": "ArtEmotion model identifier."
},
"extra": {
"type": "object",
"additionalProperties": true,
"description": "Model-specific settings may also be nested here."
},
"max_credits": {
"type": "number",
"minimum": 1,
"description": "Reject before submission if the estimated list price exceeds this cap."
},
"webhook_url": {
"type": "string",
"format": "uri",
"maxLength": 2048
},
"webhook_secret": {
"type": "string",
"maxLength": 512
},
"folder_id": {
"type": "string"
},
"prompt": {
"type": "string"
},
"model": {
"title": "Model",
"description": "Model to use for upscaling",
"default": "RealESRGAN_x4plus",
"type": "string",
"enum": [
"RealESRGAN_x4plus",
"RealESRGAN_x2plus",
"RealESRGAN_x4plus_anime_6B",
"RealESRGAN_x4_v3",
"RealESRGAN_x4_wdn_v3",
"RealESRGAN_x4_anime_v3"
]
},
"face": {
"title": "Face",
"description": "Upscaling a face",
"default": false,
"type": "boolean"
},
"scale": {
"title": "Scale",
"description": "Rescaling factor",
"default": 2,
"type": "number",
"minimum": 1,
"maximum": 8,
"multipleOf": 0.5
},
"tile": {
"title": "Tile",
"description": "Tile size (0 = no tile). Set to 400 or 200 if running out of GPU memory.",
"default": 0,
"type": "number",
"multipleOf": 1
},
"output_format": {
"title": "Output Format",
"description": "Output image format.",
"default": "png",
"type": "string",
"enum": [
"png",
"jpeg"
]
},
"reference_image_url": {
"type": "string",
"format": "uri"
}
},
"required": [
"model_id",
"reference_image_url"
],
"additionalProperties": false
}FAQ
How much does ESRGAN cost on ArtEmotion?
Credit-based pricing. You pay in ArtEmotion credits — every plan and top-up converts USD to credits at a fixed rate.
Do I get my credits back if ESRGAN fails?
Yes — failed generations are never charged. The credits are released back to your balance automatically.
Can I call ESRGAN from the API?
Yes. Use POST /api/v1/generate with model_id: "fal-ai/esrgan". See the API reference for the full schema.
Where are my generations stored?
Every output is saved to your personal Library. You can export or delete everything any time from Privacy & deletion.
Ready to generate with ESRGAN?
Start now →No commitment. New accounts get 50 free credits on signup. See pricing.