CodeFormer

Community
Image Generation

Robust face-restoration model using a transformer-based codebook prior. Handles severe degradation, occlusion, and old-photo restoration with adjustable fidelity-quality tradeoff.

Generate with CodeFormer
Describe what you want and pick a size — the image renders inline.
Sign in to try this model with €5 free credits.
Sign in
Result appears here
TL;DR·Last updated May 16, 2026

CodeFormer is image generation AI model from Community, priced at €0.000 per 1M input tokens with a unknown context window.

Try CodeFormer
Sign in to generate — 50 free credits on sign-up

Pricing

Price per Generation
Per generation€0.002

API Integration

Use our OpenAI-compatible API to integrate CodeFormer into your application.

Install
npm install railwail
JavaScript / TypeScript
import railwail from "railwail";

const rw = railwail("YOUR_API_KEY");

const images = await rw.run("codeformer", "A beautiful sunset over Tokyo");
console.log(images[0].url);

// Or use the image() method for full control
const res = await rw.image("codeformer", "A cat in space", {
  size: "1024x1024",
  n: 1,
});
console.log(res.data[0].url);
Specifications
Price
€0.002
Developer
Community
Category
Image Generation
Supported Formats
image
Tags
replicate
face-restore
upscaling
open-source

Frequently asked questions

Start using CodeFormer today

Get started with free credits. No credit card required. Access CodeFormer and 100+ other models through a single API.