SamImageGenerator
Sign In

Image widget

Add an AI image generator to your own website. Pick the defaults, copy one script tag — your visitors type a prompt and get an image.

Style

Pick one style for a fixed look, or several so your visitors can choose.

View all · 24
Format
Size

Bigger images take longer to generate.

Prompt suggestions

Up to six. Visitors tap one to fill the box.

Reference images

Public https addresses. Sent to the model alongside the prompt, so results keep your product, character or house style. Up to four.

Visitor controls

Which of these your visitors can change. Anything switched off stays fixed at the value you picked above — the size and style are always written under the box either way.

Your branding

The widget sits on your site, so it can carry your name instead of ours. Leave a field empty and it is simply not drawn.

Embed code

<script async src="https://samimagegenerator.com/widget.js"
  data-key="sig_your_key_here"
  data-styles="realistic:Realistic"
  data-aspect="1:1"
  data-resolution="1K"
  data-count="1"
  data-controls="style,format,size,prompts,image"
  data-theme="light"
  data-placeholder="Describe the image you want"
  data-button="Generate"
  data-busy="Generating…"
  data-image-label="Drop a photo here to edit it"
  data-image-clear="Remove photo"
  data-label-format="Format"
  data-label-size="Size"></script>

Preview

Format
Size

Realistic · 1:1 · 1024×1024

Powered by SamImageGenerator

Live preview — it generates for real and spends credits from our demo account, not yours.

Ready-made widgets

Each one is the real widget, already set up for a job. Open it, try it, then build your own above.

Instagram image generator widget

A working generator for square feed posts, embeddable on your own site with one script tag.

The widget on this page is the real embeddable generator, set up for Instagram feed posts. Write a sentence, pick a style chip, press the button: the picture comes back at 1:1, 1024 × 1024 pixels, from the same model the main app uses. It runs on our own key,…

Open the demo

LinkedIn image generator widget

Wide, calm images for posts and article headers — a live generator you can drop into your own page.

The widget on this page is the real embeddable generator, set up for LinkedIn post and article images. Write a sentence, pick a style chip, press the button: the picture comes back at 16:9, 1024 × 576 pixels, from the same model the main app uses. It runs on…

Open the demo

YouTube thumbnail generator widget

High-contrast 16:9 images at 2K, made to stay readable at the size a thumbnail is actually seen.

The widget on this page is the real embeddable generator, set up for YouTube video thumbnails. Write a sentence, pick a style chip, press the button: the picture comes back at 16:9, 2048 × 1152 pixels, from the same model the main app uses. It runs on our own…

Open the demo

Product photo generator widget

Square 2K product shots on clean backgrounds — the same generator, embedded in your shop or catalogue.

The widget on this page is the real embeddable generator, set up for e-commerce listing photos. Write a sentence, pick a style chip, press the button: the picture comes back at 1:1, 2048 × 2048 pixels, from the same model the main app uses. It runs on our own…

Open the demo

Blog header image generator widget

Wide, quiet header images that leave room for a headline on top of them.

The widget on this page is the real embeddable generator, set up for blog header images. Write a sentence, pick a style chip, press the button: the picture comes back at 16:9, 1024 × 576 pixels, from the same model the main app uses. It runs on our own key,…

Open the demo

Story and Reels image generator widget

Vertical 9:16 images with the subject high in the frame, where captions and stickers leave room.

The widget on this page is the real embeddable generator, set up for Instagram Stories and Reels. Write a sentence, pick a style chip, press the button: the picture comes back at 9:16, 576 × 1024 pixels, from the same model the main app uses. It runs on our…

Open the demo

The site list decides what a key is for

Leave the allowed-site list empty and the key works from your server (Authorization: Bearer). Fill it in and the key works in the browser (data-key in the embed code), only on the sites you list. A key you embed is visible in your page source, so it is refused on the server path — keep one key for each job.

Every image your visitors generate spends one credit from your account.