openrouter-research — openrouter-research install openrouter-research, image-prompt-optimizer, community, openrouter-research install, ide skills, openrouter-research api specifications, openrouter-research grok model availability, Claude Code, Cursor, Windsurf

v1.0.0
GitHub

About this Skill

Perfect for AI Agents needing advanced OpenRouter API analysis and Grok model integration for SFUMATO text LLM calls. openrouter-research is a skill that researches current OpenRouter API specifications and Grok model availability for SFUMATO.

Features

Researches OpenRouter API specifications for SFUMATO
Analyzes Grok model availability through app/tools/openrouter_tool.py
Utilizes ENV vars: OPENROUTER_API_KEY and OPENROUTER_BASE_URL
Employs httpx.A client for API interactions
Supports text-only input through prompt_service.generate_prompt() and prompt_service.revise_prompt()
Enables Grok with vision through judge_service.evaluate() for image analysis

# Core Topics

NikGor NikGor
[0]
[0]
Updated: 2/25/2026

Agent Capability Analysis

The openrouter-research skill by NikGor is an open-source community AI agent skill for Claude Code and other IDE workflows, helping agents execute tasks with better context, repeatability, and domain-specific guidance. Optimized for openrouter-research install, openrouter-research api specifications, openrouter-research grok model availability.

Ideal Agent Persona

Perfect for AI Agents needing advanced OpenRouter API analysis and Grok model integration for SFUMATO text LLM calls.

Core Value

Empowers agents to analyze OpenRouter API specifications and Grok model availability using httpx client and ENV vars like OPENROUTER_API_KEY, unlocking seamless text LLM calls through app/tools/openrouter_tool.py.

Capabilities Granted for openrouter-research

Analyzing OpenRouter API specifications for SFUMATO compatibility
Validating Grok model availability for text-only input and vision-based services
Debugging OpenRouter API integrations using ENV vars and httpx client

! Prerequisites & Limits

  • Requires OpenRouter API Key and Base URL
  • Python 3.x compatibility required for httpx client
  • Limited to SFUMATO text LLM calls through app/tools/openrouter_tool.py
Labs Demo

Browser Sandbox Environment

⚡️ Ready to unleash?

Experience this Agent in a zero-setup browser environment powered by WebContainers. No installation required.

Boot Container Sandbox

openrouter-research

Install openrouter-research, an AI agent skill for AI agent workflows and automation. Works with Claude Code, Cursor, and Windsurf with one-command setup.

SKILL.md
Readonly

OpenRouter Research

Research current OpenRouter API specifications and Grok model availability for SFUMATO.

Context

All text LLM calls in SFUMATO go through app/tools/openrouter_tool.py:

  • prompt_service.generate_prompt() — Grok, text-only input
  • prompt_service.revise_prompt() — Grok, text-only input
  • judge_service.evaluate()Grok with vision (must analyze generated image)

ENV vars: OPENROUTER_API_KEY, OPENROUTER_BASE_URL=https://openrouter.ai/api/v1 Client: httpx.AsyncClient — OpenAI-compatible API

Read existing file first if it exists:

  • app/tools/openrouter_tool.py
  • config.py

Step 1: OpenRouter API Fundamentals

  1. Fetch: https://openrouter.ai/docs/api-reference/overview
  2. Fetch: https://openrouter.ai/docs/requests
  3. Search: OpenRouter API python httpx async chat completions 2025

Capture:

  • Base URL: https://openrouter.ai/api/v1
  • Auth header format (Authorization: Bearer vs API-Key)
  • Required request headers: HTTP-Referer, X-Title
  • Chat completions endpoint: POST /v1/chat/completions
  • Request body schema: model, messages, temperature, max_tokens, stream
  • Response schema: choices[0].message.content
  • Error response format and status codes (429, 402, 503, 500)

Step 2: Available Grok Models

  1. Fetch: https://openrouter.ai/models?q=grok
  2. Search: OpenRouter xAI Grok models list 2025
  3. Fetch: https://openrouter.ai/x-ai if available

For each available Grok model, capture:

  • Full model ID string (e.g. x-ai/grok-beta, x-ai/grok-vision-beta)
  • Context window size (tokens)
  • Supports image input (vision)? — critical for judge_service
  • Cost per 1M input/output tokens

Determine the best model for each use case:

  • prompt_gen: text-only, large context
  • prompt_revise: text-only
  • judge: MUST support vision/image input

Step 3: Image Input Format for Vision Models

Since judge_service.py sends a generated image to Grok for evaluation:

  1. Search: OpenRouter vision model image input base64 format 2025
  2. Fetch: https://openrouter.ai/docs/features/vision
  3. Search: OpenAI-compatible vision API image_url content type format

Capture:

  • Message content format for image:
    json
    1{"type": "image_url", "image_url": {"url": "data:image/jpeg;base64,..."}}
    vs URL-based image reference
  • Max image size limits
  • Supported formats (JPEG, PNG, WebP)
  • Whether OpenRouter passes base64 to xAI directly or requires URL

Step 4: Error Handling and Retry Strategy

  1. Search: OpenRouter API error handling retry 429 503 2025
  2. Fetch: https://openrouter.ai/docs/api-reference/errors if available

Capture:

  • 429 rate limit: retry-after header? fixed backoff interval?
  • 402 payment/balance: raise immediately, no retry
  • 503 model unavailable: retry with backoff
  • Recommended timeout values for text calls vs vision calls
  • Max retries pattern

Output Format

Section 1: openrouter_tool.py Implementation Blueprint

python
1# Async httpx client structure 2BASE_URL = "https://openrouter.ai/api/v1" 3 4# Required headers 5headers = { 6 "Authorization": f"Bearer {api_key}", 7 "HTTP-Referer": "...", 8 "X-Title": "SFUMATO", 9 "Content-Type": "application/json", 10} 11 12# chat_completion(model, messages, temperature, max_tokens) -> str 13# vision_completion(model, text_messages_plus_image_message) -> str 14# Retry pattern for 429/503 (show how many retries, backoff) 15# Error handling: which codes to retry vs raise immediately

Section 2: Model Selection Table

Use CaseRecommended Model IDContextVisionNotes
prompt_genx-ai/grok-...NNo
prompt_revisex-ai/grok-...NNo
judgex-ai/grok-...NYESRequired

Section 3: Image Message Format

Exact Python dict structure to use when sending image to judge:

python
1{ 2 "role": "user", 3 "content": [ 4 {"type": "text", "text": "...judge prompt..."}, 5 {"type": "image_url", "image_url": {"url": "data:image/jpeg;base64,..."}} 6 ] 7}
python
1OPENROUTER_BASE_URL = "https://openrouter.ai/api/v1" 2OPENROUTER_MODEL_PROMPT_GEN = "x-ai/grok-..." 3OPENROUTER_MODEL_PROMPT_REVISE = "x-ai/grok-..." 4OPENROUTER_MODEL_JUDGE = "x-ai/grok-vision-..." # must support vision 5OPENROUTER_TIMEOUT_TEXT = 30 6OPENROUTER_TIMEOUT_VISION = 45 7OPENROUTER_MAX_RETRIES = 2

Notes

  • Never log API key, response.text for large vision calls, or base64 image data
  • Image for judge: read from data/sessions/<id>/iter_<n>.jpg, encode as base64
  • The judge call is the only one that uses vision; wrap it separately in vision_completion()
  • HTTP-Referer should be "http://localhost:5000" for local dev

FAQ & Installation Steps

These questions and steps mirror the structured data on this page for better search understanding.

? Frequently Asked Questions

What is openrouter-research?

Perfect for AI Agents needing advanced OpenRouter API analysis and Grok model integration for SFUMATO text LLM calls. openrouter-research is a skill that researches current OpenRouter API specifications and Grok model availability for SFUMATO.

How do I install openrouter-research?

Run the command: npx killer-skills add NikGor/image-prompt-optimizer/openrouter-research. It works with Cursor, Windsurf, VS Code, Claude Code, and 19+ other IDEs.

What are the use cases for openrouter-research?

Key use cases include: Analyzing OpenRouter API specifications for SFUMATO compatibility, Validating Grok model availability for text-only input and vision-based services, Debugging OpenRouter API integrations using ENV vars and httpx client.

Which IDEs are compatible with openrouter-research?

This skill is compatible with Cursor, Windsurf, VS Code, Trae, Claude Code, OpenClaw, Aider, Codex, OpenCode, Goose, Cline, Roo Code, Kiro, Augment Code, Continue, GitHub Copilot, Sourcegraph Cody, and Amazon Q Developer. Use the Killer-Skills CLI for universal one-command installation.

Are there any limitations for openrouter-research?

Requires OpenRouter API Key and Base URL. Python 3.x compatibility required for httpx client. Limited to SFUMATO text LLM calls through app/tools/openrouter_tool.py.

How To Install

  1. 1. Open your terminal

    Open the terminal or command line in your project directory.

  2. 2. Run the install command

    Run: npx killer-skills add NikGor/image-prompt-optimizer/openrouter-research. The CLI will automatically detect your IDE or AI agent and configure the skill.

  3. 3. Start using the skill

    The skill is now active. Your AI agent can use openrouter-research immediately in the current project.

Related Skills

Looking for an alternative to openrouter-research or another community skill for your workflow? Explore these related open-source skills.

View All

widget-generator

Logo of f
f

f.k.a. Awesome ChatGPT Prompts. Share, discover, and collect prompts from the community. Free and open source — self-host for your organization with complete privacy.

149.6k
0
AI

flags

Logo of vercel
vercel

flags is a Next.js feature management skill that enables developers to efficiently add or modify framework feature flags, streamlining React application development.

138.4k
0
Browser

zustand

Logo of lobehub
lobehub

The ultimate space for work and life — to find, build, and collaborate with agent teammates that grow with you. We are taking agent harness to the next level — enabling multi-agent collaboration, effortless agent team design, and introducing agents as the unit of work interaction.

72.8k
0
AI

data-fetching

Logo of lobehub
lobehub

The ultimate space for work and life — to find, build, and collaborate with agent teammates that grow with you. We are taking agent harness to the next level — enabling multi-agent collaboration, effortless agent team design, and introducing agents as the unit of work interaction.

72.8k
0
AI