openrouter provider call #912
Replies: 9 comments
-
10x price difference for same token count. Would be great to be able to specify a whitelist of providers for a specific openrouter model. |
Beta Was this translation helpful? Give feedback.
-
Beta Was this translation helpful? Give feedback.
-
|
You can do this with a shell script. I can share for you, also have you gotten this to work properly with qwen/qwen3-coder on openrouter, I keep getting an API error and the API key is valid. I get Note that a curl of this works... |
Beta Was this translation helpful? Give feedback.
-
this works for me: export OPENAI_API_KEY="sk-or-v1-..."
export OPENAI_BASE_URL="https://openrouter.ai/api/v1"
export OPENAI_MODEL="qwen/qwen3-coder"@davidgarix you can use the default provider sort in OpenRouter's settings for temporary
|
Beta Was this translation helpful? Give feedback.
-
@mrgoonie : But still this wont give you full control as we expect. What if the price, throughput, latency change often? In that case, I expect specific provider name in the dropdown instead of those category specific dropdowns |
Beta Was this translation helpful? Give feedback.
-
|
@davidgarix yes, i totally understand, that's why i said "for temporary" 😅 |
Beta Was this translation helpful? Give feedback.
-
|
Yes it's so strange that it doesn't work for us. Has the exact same call. Sigh.
Sent via Superhuman iOS ( ***@***.*** )
…On Sat, Jul 26, 2025 at 04:14, Goon < ***@***.*** > wrote:
*mrgoonie* left a comment (QwenLM/qwen-code#70) (
#70 (comment) )
@davidgarix ( https://github.com/davidgarix ) yes, i totally understand,
that's why i said "for temporary" 😅
—
Reply to this email directly, view it on GitHub (
#70 (comment) ) ,
or unsubscribe (
https://github.com/notifications/unsubscribe-auth/ATK6MOOPNVLVQGCT3E4M2TL3KNPJFAVCNFSM6AAAAACCGCXXGOVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZTCMRRGYZTIMRYHE
).
You are receiving this because you commented. Message ID: <QwenLM/qwen-code/issues/70/3121634289
@ github. com>
--
You received this message because you are subscribed to the Google Groups
"Architects and Developers" group.
To unsubscribe from this group and stop receiving emails from it, send an
email to ***@***.***
To view this discussion visit https://groups.google.com/a/tne.ai/d/msgid/dev/QwenLM/qwen-code/issues/70/3121634289%40github.com
(
https://groups.google.com/a/tne.ai/d/msgid/dev/QwenLM/qwen-code/issues/70/3121634289%40github.com?utm_medium=email&utm_source=footer
).
|
Beta Was this translation helpful? Give feedback.
-
|
The shell script. Note it depends on various ./lib helper functions but you get the idea
https://github.com/richtong/bin/blob/main/qwen.sh
Sent via Superhuman iOS ( ***@***.*** )
…On Sat, Jul 26, 2025 at 13:39, Rich Tong < ***@***.*** > wrote:
Yes it's so strange that it doesn't work for us. Has the exact same call.
Sigh.
Sent via Superhuman iOS ( ***@***.*** )
On Sat, Jul 26, 2025 at 04:14, Goon < ***@***.*** > wrote:
> *mrgoonie* left a comment (QwenLM/qwen-code#70) (
> #70 (comment) )
>
>
> @davidgarix ( https://github.com/davidgarix ) yes, i totally understand,
> that's why i said "for temporary" 😅
>
>
>
> —
> Reply to this email directly, view it on GitHub (
> #70 (comment) ) ,
> or unsubscribe (
> https://github.com/notifications/unsubscribe-auth/ATK6MOOPNVLVQGCT3E4M2TL3KNPJFAVCNFSM6AAAAACCGCXXGOVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZTCMRRGYZTIMRYHE
> ).
> You are receiving this because you commented. Message ID: <QwenLM/qwen-code/issues/70/3121634289
> @ github. com>
>
>
>
>
>
> --
> You received this message because you are subscribed to the Google Groups
> "Architects and Developers" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to ***@***.***
> To view this discussion visit https://groups.google.com/a/tne.ai/d/msgid/dev/QwenLM/qwen-code/issues/70/3121634289%40github.com
> (
> https://groups.google.com/a/tne.ai/d/msgid/dev/QwenLM/qwen-code/issues/70/3121634289%40github.com?utm_medium=email&utm_source=footer
> ).
>
>
|
Beta Was this translation helpful? Give feedback.
-
I am sorry but no. For qwen 3 coder, I want to use Alibaba as the provider, even though it is more expensive, not some fp8 or fp4 provider with fairly poor results. I cannot see a way to do that from tools. I should be able to provide that as part of the OPENAPI_MODEL. This is a show stopper for me. |
Beta Was this translation helpful? Give feedback.





Uh oh!
There was an error while loading. Please reload this page.
-
What would you like to be added?
When we use "qwen" it should allow user to call specific provider for specific model via open-router API - something like below
#sample .zshrc file looks like this once we enable this feature
#OpenRouter API
export OPENAI_API_KEY="xxxxxx"
export OPENAI_BASE_URL="xxxx"
Qwen3coder () {
OPENAI_MODEL="qwen/qwen3-coder"
OPENROUTER_PROVIDER_ORDER="DeepInfra,Fireworks"
qwen "$@"
}
Why is this needed?
this feature give good control over cost control instead of randomly calling providers using open-router API
for example - in the attache image you can see "grok-3-mini" model might call "XAI" or "XAI-FAST" - we are not sure when we end up in "XAI-FAST"; which typically increase the cost compare to "XAI".. thats the reason we need provider parameter in place like model parameter in our .zshrc or .env file .
Additional context
No response
Beta Was this translation helpful? Give feedback.
All reactions