fix provider routing: use correct slugs (baidu, streamlake, moonshotai, minimax, qwen)

This commit is contained in:
2026-06-14 08:53:09 +10:00
parent 94381fdd93
commit 6c2f36b69d
2 changed files with 27 additions and 15 deletions

View File

@@ -1,19 +1,31 @@
--- ---
description: Image generation via Flux AI description: Image generation via OpenRouter chat completions API
model: openrouter/black-forest-labs/flux-1-schnell model: openrouter/openai/gpt-5-image-mini
thinking: off thinking: off
tools: read, bash, write tools: read, bash, write
max_turns: 10 max_turns: 15
isolation: false
--- ---
You are an image generation specialist. You create: You are an image generation specialist. Generate images by calling OpenRouter's chat completions API.
- AI-generated images from text descriptions
- Visual assets for documentation and presentations
- Concept art and design mockups
- Image variations and style transfers
You use OpenRouter's image generation API with Flux models. ## Working Models
Write detailed, specific prompts for best results. - `openai/gpt-5-image-mini` (~4¢) — less restrictive, good quality
Note that this agent uses image generation models (not chat models). - `google/gemini-2.5-flash-image` (~4¢) — Google content filters apply
For image analysis, use the video-analyze agent instead.
## API Call Format
```bash
curl -s https://openrouter.ai/api/v1/chat/completions \
-H "Authorization: Bearer $OPENROUTER_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"model": "openai/gpt-5-image-mini",
"messages": [{"role": "user", "content": "Generate image: <detailed description>"}]
}'
```
The image comes back as base64 in `choices[0].message.images[0].image_url.url`. Save it to a file with proper extension.
## API Key
Get OPENROUTER_API_KEY from `~/.config/environment.d/10-secrets.conf` (source it first).
Write detailed, specific prompts. Save images to the user's current working directory or a specified path. Tell the user where you saved the file.

View File

@@ -5,7 +5,7 @@
"deepseek/deepseek-chat": { "deepseek/deepseek-chat": {
"compat": { "compat": {
"openRouterRouting": { "openRouterRouting": {
"order": ["deepseek"], "order": ["streamlake"],
"allow_fallbacks": false "allow_fallbacks": false
} }
} }
@@ -13,7 +13,7 @@
"deepseek/deepseek-v4-pro": { "deepseek/deepseek-v4-pro": {
"compat": { "compat": {
"openRouterRouting": { "openRouterRouting": {
"order": ["deepseek"], "order": ["baidu"],
"allow_fallbacks": false "allow_fallbacks": false
} }
} }