Cara mempublikasikan HTML dari Grok chat
Whether you use Grok on X or at grok.com, it will write you a full website and Grok Studio will preview it side-by-side with the code. But xAI doesn't host your page — the preview disappears when the chat does. Here's how to give it a permanent address for free.
Open Grok- 01
Open the code view
In Grok Studio your page shows as a live preview — switch to the code tab to see the HTML. In a plain chat answer it's in a code block.
- 02
Copy the HTML
Use the copy button on the code view or code block. If Grok wrote separate CSS or JS files, copy those too, or ask it to inline everything into one file.
- 03
Simpan sebagai index.html
Tempel kode ke editor teks apa pun — Notepad, TextEdit, VS Code — dan simpan file sebagai index.html. Namanya penting: itu yang dianggap browser sebagai homepage kamu.
- 04
Lepas ke kotak di bawah
Seret index.html (atau seluruh folder) ke kotak upload di halaman ini dan tekan publikasikan. Situs kamu langsung mendapat alamat web sendiri.
- 05
Bagikan link kamu
Selesai — kirim URL-nya ke siapa saja. Kamu bisa mengganti nama situs, memperbarui file, atau menghapusnya dari dashboard kapan pun kamu mau.
Where Grok keeps your page: Grok Studio
Grok Studio previews your page beside the chat, but xAI publishes nothing — there's no grok.com address that serves the HTML, so pasting a chat link below won't work and we'll say why. Ask Grok to put the file in a public GitHub gist if you'd rather not copy by hand; the gist's raw link imports fine.
Paste a link to the file
There's no artifact address to paste for this tool, but the box still works for a public GitHub gist — ask the chat to save your page to one, then paste the gist's raw link. For anything else, the drop box below is the way.
We only fetch links that serve the page itself. A chat share link isn't one — paste it and we'll say so rather than publish the wrong thing.
Lepas HTML Grok kamu di sini
Satu file atau seluruh folder — kamu akan mendapat link live begitu dipublikasikan.
Seret website kamu ke sini
Lepas folder atau file ZIP berisi index.html kamu — atau cukup tempel HTML dari clipboard — dan kami akan membuatnya online dalam hitungan detik. Tanpa setup, tanpa konfigurasi, tanpa pusing.
Atau biarkan Grok mempublikasikannya untukmu
Lewati proses menyalin sepenuhnya. Salin instruksi siap pakai kami, tempel ke percakapan Grok kamu, dan ia bisa mengunggah situs lewat API kami — kamu mendapat link live dan link klaim pribadi untuk mengambil alih kepemilikannya.
Lebih suka bekerja di terminal? Jalankan npx harvis — tanpa perlu akun.
Pertanyaan publikasi Grok
Can I share my Grok Studio preview directly?
No — the Studio preview only renders inside your own Grok session. There's no public link to hand out. Publishing the code here creates a real URL anyone can open.
I used Grok inside X. Is it any different?
The steps are the same: find the code block in the conversation, copy it, save it as index.html, and drop it in the box below. Where you chatted doesn't matter — only the HTML does.
Apa cara termudah mempublikasikan HTML dari Grok?
Ada tiga cara. Paling mudah: salin HTML dari Grok dan tempel ke kotak di halaman ini — kami langsung mengubahnya jadi situs live. Tanpa repot: salin instruksi AI kami ke percakapan Grok kamu dan ia akan mempublikasikan lewat API kami untukmu. Di terminal: jalankan npx harvis di folder situs itu dan langsung deploy dengan satu perintah.
Apakah saya perlu akun untuk mempublikasikan?
Publikasi lewat browser butuh akun gratis, supaya situs kamu punya rumah di dashboard. Tidak mau mendaftar? Jalankan npx harvis di terminal — dia deploy tanpa akun dan memberi kamu link klaim privat untuk nanti.
Bagaimana kalau Grok memberi saya lebih dari satu file?
Masukkan semuanya ke satu folder — index.html di paling atas, plus semua CSS, JavaScript, dan gambar yang direferensikannya — lalu seret seluruh folder itu ke kotak. Hingga 500 file dan 50 MB per situs.
Berapa biayanya, dan berapa lama situs itu tetap online?
Gratis, dan situs yang dipublikasikan tidak kedaluwarsa — situs itu tetap live sampai kamu menghapusnya dari dashboard kamu. Unggah ulang kapan saja dan link-nya tetap sama.
Menggunakan chat AI lain?
Caranya hampir sama di mana pun — pilih tool kamu untuk langkah-langkah persisnya.