Skip to content

a picture is worth a thousand tokens — image generation via OpenRouter#238

Open
Slyker wants to merge 1 commit into
tashfeenahmed:mainfrom
Slyker:feat/image-generation
Open

a picture is worth a thousand tokens — image generation via OpenRouter#238
Slyker wants to merge 1 commit into
tashfeenahmed:mainfrom
Slyker:feat/image-generation

Conversation

@Slyker

@Slyker Slyker commented Jun 6, 2026

Copy link
Copy Markdown
Contributor

What

Adds full image generation support via OpenRouter's free text-to-image models.

Server

  • New /api/image-models endpoint returning free-only image models
  • isFreeImageModel() shared guard between route and proxy
  • Image generation passthrough via OpenRouter with free-model enforcement
  • Provider interface extended for image capabilities (base.ts, openai-compat.ts)
  • Tests for capabilities service

Client

  • New /models/images tab with simplified image models table (copy button, no click-to-expand)
  • Playground split into Chat/Image tabs
  • Image tab features:
    • Concurrent generation with abort controllers per request
    • Pending cards with elapsed timer, prompt/model display, cancel button
    • Error cards with retry + dismiss
    • Completed cards with aspect ratio/image size info, copy prompt, use-same-settings
    • Drag & drop / paste / upload input image
    • Advanced options panel (Recraft/Sourceful-specific + Raw JSON mode)
    • Fullscreen lightbox: keyboard nav (arrows, Escape), zoom/pan (click toggle, cursor-position wheel zoom, +/-/0 keys, drag pan), zoom level indicator
    • Lightbox footer: expand/collapse prompt, copy prompt, use-same-settings, download
    • Completion indicator (green glow) on newly finished images
    • Always-visible keyboard hints bar
    • Tooltips on all icon buttons
  • Navigation tabs: Chat / Embeddings / Images

@Slyker

Slyker commented Jun 6, 2026

Copy link
Copy Markdown
Contributor Author
image image Support image-to-image too

@bgill55

bgill55 commented Jun 6, 2026

Copy link
Copy Markdown

very nice!!! Well done!

@Slyker

Slyker commented Jun 6, 2026

Copy link
Copy Markdown
Contributor Author

I dont think its perfect since its vibe coded in a corner of a screen, but it works and include some cool QOL features

@bgill55

bgill55 commented Jun 6, 2026

Copy link
Copy Markdown

you should add pollinations.ai for more free image creation. Just a thought...

@Slyker

Slyker commented Jun 6, 2026

Copy link
Copy Markdown
Contributor Author

you should add pollinations.ai for more free image creation. Just a thought...

Oh I didn't know their was another free image tokens provider I will have a look at it later thanks buddy!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants