---
name: generator-teks-ke-gambar
description: "Contoh prompt satu berkas untuk membuat aplikasi web generator teks-ke-gambar menggunakan model Google Nano Banana lewat REST API tanpa SDK."
category: implementasi
status: "Contoh prompt"
source: https://rizafahmi.com/prompts/generator-teks-ke-gambar/
raw_prompt: https://rizafahmi.com/prompts/generator-teks-ke-gambar.md
---

# Buat generator teks ke gambar

> Contoh prompt satu berkas untuk membuat aplikasi web generator teks-ke-gambar menggunakan model Google Nano Banana lewat REST API tanpa SDK.

## When to Activate

- **Category:** Implementasi
- **Status:** Contoh prompt
- **Use Case:** Contoh prompt satu berkas untuk membuat aplikasi web generator teks-ke-gambar menggunakan model Google Nano Banana lewat REST API tanpa SDK.
- **Keywords:** image-generation, rest-api, single-file, nano-banana

## Executable Prompt / Instructions

```text
Create a text to image generator. The user will provide a text input. The Google Nano Banana Model will generate four different images. We will use the REST API. Do not use any SDK. Put everything in a single file. Also, have the ability for the user to provide the API key directly within the app. Make sure the app looks like it was designed by a billion-dollar design company.
```

## Customizable Parameters

- `Google Nano Banana Model` — **Model / endpoint AI target** (contoh: *mis. Imagen 3 / Gemini Flash Image API*)
- `four different images` — **Jumlah variasi keluaran** (contoh: *mis. four different images*)

## Field Notes & Execution Context

**Konteks:** Contoh prompt untuk membuat prototipe generator gambar dengan Google Nano Banana dan REST API murni di dalam satu berkas HTML/JS tanpa ketergantungan SDK.

**Catatan:** Pembatasan `"Use the REST API. Do not use any SDK. Put everything in a single file."` sangat efektif saat ingin membuat prototipe cepat yang bisa langsung dibuka di peramban tanpa langkah *build*. Untuk bagian desain visual, ganti kalimat `"billion-dollar design company"` dengan batasan tipografi, palet warna, dan tata letak yang spesifik jika ingin hasil yang terukur.

## Provenance & Proof of Work

- **Attribution:** Contoh prompt · 27 Januari 2026
- **Proof-of-Work Repository:** [gemini-for-web-dev](https://github.com/rizafahmi/gemini-for-web-dev)
- **Interactive Workbench:** https://rizafahmi.com/prompts/generator-teks-ke-gambar/

