Customize your input with more control.
Customize your input with more control.
Hint: Drag and drop image files from your computer, images from web pages, paste from clipboard (Ctrl/Cmd+V), or provide a URL. Accepted file types: jpg, jpeg, png, webp, gif, avif, heic, heif

Customize your input with more control.
Your request will cost $0.05 per image.
Your request will cost $0.05 per image.
Transform your photos into enchanting Studio Ghibli-inspired artwork with Ghiblify, a specialized AI model that captures the distinctive aesthetic of acclaimed Japanese animation. Perfect for creators, developers, and animation enthusiasts looking to add magical charm to their images.
Ghiblify leverages advanced machine learning to analyze and transform regular photographs into artwork that embodies the beloved Studio Ghibli style. The model understands lighting, composition, and artistic elements characteristic of Ghibli films, delivering consistent and high-quality transformations.
Transform any image with the distinctive characteristics of Studio Ghibli animation:
Setting up Ghiblify is straightforward. First, install your preferred client library:
For JavaScript/TypeScript:
bashnpm install --save @fal-ai/client
For Python:
bashpip install fal-client
Configure your API key before making requests:
JavaScript:
javascriptimport { fal } from "@fal-ai/client"; fal.config({ credentials: "YOUR_FAL_KEY_HERE" });
Python:
pythonimport fal_client as fal import os os.environ["FAL_KEY"] = "YOUR_FAL_KEY_HERE"
Here's how to transform an image using Ghiblify:
JavaScript:
javascriptimport { fal } from "@fal-ai/client"; const result = await fal.subscribe("fal-ai/ghiblify", { input: { image_url: "https://your-image-url.com/photo.jpg" } }); console.log(result.data.image.url);
Python:
pythonimport fal_client as fal result = fal.subscribe("fal-ai/ghiblify", { "image_url": "https://your-image-url.com/photo.jpg" }) print(result.image.url)
javascript{ "image": { "url": "https://generated-image-url.com/image.png", "content_type": "image/png", "file_name": "ghiblified_image.png", "file_size": 4404019, "width": 1024, "height": 1024 } }
Ghiblify supports multiple input methods:
javascriptinput: { image_url: "https://publicly-accessible-image.com/image.jpg" }
javascriptinput: { image_url: "data:image/jpeg;base64,/9j/4AAQSkZJRgABAQAAAQ..." }
javascriptconst file = new File([imageData], "image.jpg", { type: "image/jpeg" }); const url = await fal.storage.upload(file); const result = await fal.subscribe("fal-ai/ghiblify", { input: { image_url: url } });
For production applications, use the queue API:
javascript// Submit request const { request_id } = await fal.queue.submit("fal-ai/ghiblify", { input: { image_url: "https://your-image-url.com/photo.jpg" }, webhookUrl: "https://your-webhook-endpoint.com/results" }); // Check status const status = await fal.queue.status("fal-ai/ghiblify", { requestId: request_id, logs: true }); // Get result when complete const result = await fal.queue.result("fal-ai/ghiblify", { requestId: request_id });
Make the most of Ghiblify with these recommended practices:
javascripttry { const result = await fal.subscribe("fal-ai/ghiblify", { input: { image_url: "your-image-url-here" } }); // Process successful result } catch (error) { console.error("Generation failed:", error); // Handle error appropriately }
For production applications, implement these recommended patterns:
Cache results when possible to optimize performance and costs:
javascriptconst cache = new Map(); async function getGhiblifiedImage(imageUrl) { const cacheKey = imageUrl; if (cache.has(cacheKey)) { return cache.get(cacheKey); } const result = await fal.subscribe("fal-ai/ghiblify", { input: { image_url: imageUrl } }); cache.set(cacheKey, result); return result; }
Performance characteristics:
Common issues and solutions:
Authentication errors:
Generation failures:
For detailed pricing information, visit fal.ai/pricing or contact sales for enterprise solutions.
Get help and learn more:
Start transforming your images into Ghibli-style artwork today with Ghiblify. Create your API key and explore the possibilities of this unique artistic AI model.