Repository navigation
Support Openrouter API Key ? #76
Answered
by
shanliuling
japhenie-tutor
asked this question in
Q&A
|
can dsh-image-gen support adding OpenRouter API Key and choose a image generation model ? |
Answered by
shanliuling
Nov 2, 2026
Replies: 1 comment 1 reply
|
It may already work through the "OpenAI / Compatible" provider. That provider lets you set your own API key and Endpoint / Base URL, so you can try:
Then use "Test connection" (测试连接) and "Fetch models" (拉取模型) in the provider settings to see whether it connects and which image models it lists. One caveat: OpenRouter serves image generation through its chat completions endpoint with image output, rather than the classic |
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Thanks for the suggestion. OpenRouter is not supported out of the box at the moment.
Our OpenAI-compatible provider currently uses OpenAI-style
/images/generationsand/images/edits. OpenRouter's dedicated Image API uses/api/v1/imagesand a different API contract, so adding the OpenRouter base URL and API key alone is not enough for image generation.Native OpenRouter support would require a dedicated adapter. It can be considered as a feature request.