Fofr API
Access Fofr instantly with Puter.js, and add AI to any app in a few lines of code without backend or API keys.
// npm install @heyputer/puter.js
import { puter } from '@heyputer/puter.js';
puter.ai.txt2img("A beautiful sunset", {
model: "fofr/sticker-maker"
}).then(imageElement => {
document.body.appendChild(imageElement);
});
<html>
<body>
<script src="https://js.puter.com/v2/"></script>
<script>
puter.ai.txt2img("A beautiful sunset", {
model: "fofr/sticker-maker"
}).then(imageElement => {
document.body.appendChild(imageElement);
});
</script>
</body>
</html>
List of Fofr Models
Latent Consistency Model
fofr/latent-consistency-model
Latent Consistency Model is an implementation of LCM, a distillation technique that lets a diffusion model generate images in as few as 1 to 4 steps instead of the usual 20 to 50, cutting inference time sharply. This port is based on Dreamshaper v7, the same Stable Diffusion 1.5 fine-tune the original LCM paper distilled its released checkpoint from. Replicate lists a runtime of about 0.6 seconds per image on an A100 GPU. It supports img2img, large batch generation, and canny ControlNet conditioning. The reduced step count trades some fine detail for speed, making it suited to real-time previews, rapid prototyping, and workflows where turnaround matters more than maximum fidelity.
ImageSDXL Emoji
fofr/sdxl-emoji
SDXL Emoji is a fine-tune of Stable Diffusion XL trained on Apple's emoji set, producing new emoji-style images from text prompts. It was trained with Dreambooth LoRA combined with textual inversion (pivotal tuning), a method that pairs a LoRA-trained concept with a newly learned token. Prompts need the trigger word TOK to activate the emoji style, for example "TOK emoji of a cat wearing sunglasses". Output keeps the glossy, rounded, flat-colored look of Apple's emoji library rather than general SDXL photorealism. It suits chat apps, custom emoji packs, and other cases that call for a recognizable emoji look instead of a generic illustration.
ImageSDXL Multi ControlNet LoRA
fofr/sdxl-multi-controlnet-lora
SDXL Multi ControlNet LoRA is an SDXL image generation endpoint that accepts up to three ControlNet conditioning inputs at once, alongside custom LoRA weights loaded from Replicate. The available ControlNet types include canny edge detection, depth (both Midas and LeReS), soft edge (HED and PiDiNet), OpenPose pose estimation, QR Monster for illusion-style images, and lineart in standard and anime variants. Combining several of these, such as a depth map and a canny edge map together, gives more precise control over structure and pose than a single ControlNet alone. It also supports img2img and inpainting on top of the ControlNet inputs, plus an SDXL refiner pass. This suits use cases that need tight structural control paired with a custom trained style, such as product shots in a fixed pose or branded illustration in a specific LoRA style.
ImageSticker Maker
fofr/sticker-maker
Sticker Maker generates die-cut sticker-style images from text prompts, with bold outlines, flat colors, and a transparent background. It builds on AlbedobaseXL, an SDXL fine-tune, combined with a LoRA trained specifically for sticker output (ArtificialGuyBr's stickers LoRA) and LayerDiffuse for the transparency. Predictions typically complete in about 5 seconds on Replicate. The output is ready to use directly as a sticker asset without a separate background removal step, useful for chat stickers, print-on-demand designs, and other cases that call for a clean cutout look rather than a full photographic scene.
Frequently Asked Questions
The Fofr API gives you access to models for AI image generation. Through Puter.js, you can start using Fofr models instantly with zero setup or configuration.
Puter.js supports a variety of Fofr models, including Latent Consistency Model, SDXL Emoji, SDXL Multi ControlNet LoRA, and more. Find all AI models supported by Puter.js in the AI model list.
With the User-Pays model, users cover their own AI costs through their Puter account. This means you can build apps without worrying about infrastructure expenses.
Puter.js is a JavaScript library that provides access to AI, storage, and other cloud services directly from a single API. It handles authentication, infrastructure, and scaling so you can focus on building your app.
Yes — the Fofr API through Puter.js works with any JavaScript framework, Node.js, or plain HTML. Just include the library and start building. See the documentation for more details.