Models / Image editing

Real-ESRGAN - API, Playground & Pricing

Real-ESRGAN upscales a photo or illustration 2x to 8x and restores detail, running on FlyMy.AI GPUs and billed by the second of run time. Run it in the playground, call its API, or let Claude Code, Codex or Cursor run it through one FlyMy.AI MCP. No Tencent ARC API key: runs are billed to your FlyMy.AI balance.

Provider
Tencent
Category
Image editing / Upscaling
Price
$5.00 / hr
Returns
output
Commercial use
Allowed
Model ID
flymyai/real-esrgan
Real-ESRGAN by Tencent: upscaling sample, upscale images 2x to 8x
Real-ESRGAN sample from the FlyMy.AI catalog

$ YOUR NEXT RUN

Claude CodeCodexCursorAny agent

Use Real-ESRGAN in your assistant

Paste this prompt into Claude Code, Codex, Cursor or any agent. It reads the guide and helps you connect.

Read https://flymy.ai/skill.md and https://flymy.ai/models/real-esrgan.md. Help me connect the FlyMy.AI MCP to this assistant, then run Real-ESRGAN (flymyai/real-esrgan) for this task: Upscale the image I attach 4x with Real-ESRGAN and send me the link.
Open FlyMy.AIDownload brief

What Real-ESRGAN does

Real-ESRGAN is the widely used open restoration model from Tencent ARC: it enlarges an image while cleaning compression artifacts and noise. Send image and a scale_factor from 2 to 8 and get the larger file back.

Real-ESRGAN inputs

Every input of flymyai/real-esrgan as its live schema lists them. Returns output (file).

InputType, values and default
# image
file required Allowed: image file, as a URL or upload
# scale_factor
number optional Allowed: 2.0 to 8.0 Default: 2.0

Ask your agent

Requests to paste as they are, once the FlyMy.AI MCP is connected.

“Upscale the image I attach 4x with Real-ESRGAN and send me the link.”runs flymyai/real-esrgan
“Enlarge this old product photo 2x with Real-ESRGAN and clean up the compression artifacts.”runs flymyai/real-esrgan
“Run Real-ESRGAN on these three thumbnails at 4x so I can print them.”runs flymyai/real-esrgan

Real-ESRGAN price

$5.00 per hour of run time, billed per second. Billed per second of run time on RTX4090x1, $5.00 an hour. Billed to your FlyMy.AI balance; no seats, no subscription and no minimum.

Real-ESRGAN vs similar models

Popular image editing models beside it, with prices from billing and settings from each live schema.

ModelProviderKindPriceDefault run
Real-ESRGANTencentUpscaling$5.00 / hr$5.00 / hr
Topaz Image Upscale PrecisionTopaz LabsUpscalingfrom $0.08 / run$0.08
MAI-Image 2.7 EditMicrosoftImage editingfrom $0.0349 / run$0.0431
SeedVR2 Image UpscaleByteDanceUpscalingfrom $0.001 / run$0.004

Real-ESRGAN API

The same model from your own code or from an agent. Send your FlyMy.AI API key in the X-API-KEY header; get a key in your account.

cURL

Form fields, not JSON; files go as uploads or public URLs. The answer is a prediction_id; read the result at https://api.flymy.ai/api/v1/flymyai/real-esrgan/predict/async/result/?request_id=<prediction_id>.

curl -X POST https://api.flymy.ai/api/v1/flymyai/real-esrgan/predict/async/ \
  -H "X-API-KEY: $FLYMYAI_API_KEY" \
  -F "image=@photo.jpg"

Python

The FlyMy.AI SDK sends the same fields; a file input also takes a public URL.

# pip install flymyai
import os

from flymyai import client

fma = client(apikey=os.environ["FLYMYAI_API_KEY"])
response = fma.predict(
    model="flymyai/real-esrgan",
    payload={
        "image": "https://example.com/photo.jpg"
    },
)
print(response.output_data)

JavaScript / TypeScript

The FlyMy.AI SDK sends the same fields; a file input also takes a public URL.

// npm install flymyai-js-client
import { FlyMyAI } from "flymyai-js-client";

const client = new FlyMyAI({ apiKey: process.env.FLYMYAI_API_KEY });
const response = await client.predict(
  {
    "image": "https://example.com/photo.jpg"
  },
  "flymyai/real-esrgan",
);
console.log(response.output_data);

MCP

Your agent calls get_model_schema, then run_model with:

{
  "endpoint_id": "flymyai/real-esrgan",
  "input": {
    "image": "https://example.com/photo.jpg"
  }
}

Questions about Real-ESRGAN

Do I need a Tencent ARC API key for Real-ESRGAN?

No. Real-ESRGAN runs on FlyMy.AI GPUs, so you need no Tencent ARC key or plan: sign in to FlyMy.AI once and each run is billed to your FlyMy.AI balance.

How much does Real-ESRGAN cost?

$5.00 per hour of run time, billed per second. There is no subscription or minimum; the price comes from FlyMy.AI billing and was checked on 2026-11-18.

Can I try Real-ESRGAN before I write code?

Yes. Open Real-ESRGAN in the FlyMy.AI playground at https://app.flymy.ai/models/flymyai/real-esrgan, fill in its inputs and run it; the same run is one API call later, billed the same way.

How do I use Real-ESRGAN in Claude Code, Codex or Cursor?

Add the FlyMy.AI MCP with one command and sign in, then ask in plain words, for example: "Upscale the image I attach 4x with Real-ESRGAN and send me the link." Your agent reads the inputs with get_model_schema and runs flymyai/real-esrgan with run_model.

What does Real-ESRGAN need as input?

Real-ESRGAN requires image; it also takes 1 optional input, each listed on this page with its allowed values and default.

Can I call Real-ESRGAN from my own code?

Yes. Send form fields to https://api.flymy.ai/api/v1/flymyai/real-esrgan/predict/async/ with your FlyMy.AI API key in the X-API-KEY header.

Go to the source

From the FlyMy.AI model catalog of 2026-11-18: inputs from each model's live schema, prices from FlyMy.AI billing. Requests are examples to paste, not recorded runs.