GifproGifpro

Instant AI Art! Generate Images with Replicate API

CODE PREVIEW

P

Prompt

A sleek dark-themed UI showing a text input and a generated image of a futuristic city, with a loading spinner and the Replicate logo subtly placed.

Replicate APIを使って、ブラウザから直接AI画像を生成する方法を解説。シンプルなUIとサーバーレス関数で、プロンプトを送信→Replicateのstable-diffusionモデル呼び出し→画像URL取得。APIキーはクライアントに露出させません。

Prompt Overview

Generate stunning AI images directly from your browser using Replicate's API. This tutorial shows how to build a minimal image generator with a simple UI and backend integration. The frontend sends a prompt to a serverless function that calls Replicate's stable-diffusion model and returns the image URL. No API keys exposed on the client!

Was this prompt helpful?

Comments

Comments appear after moderation

Homeヘルプ