Create your first OpenRouter API request with a simple example. Use when learning OpenRouter or testing your setup. Trigger with phrases like 'openrouter hello world', 'openrouter first request', 'openrouter quickstart', 'test openrouter'.
From openrouter-packnpx claudepluginhub nickloveinvesting/nick-love-plugins --plugin openrouter-packThis skill is limited to using the following tools:
references/errors.mdreferences/examples.mdreferences/python-example.mdreferences/try-different-models.mdreferences/typescript-example.mdreferences/your-first-request.mdGuides Next.js Cache Components and Partial Prerendering (PPR) with cacheComponents enabled. Implements 'use cache', cacheLife(), cacheTag(), revalidateTag(), static/dynamic optimization, and cache debugging.
Migrates code, prompts, and API calls from Claude Sonnet 4.0/4.5 or Opus 4.1 to Opus 4.5, updating model strings on Anthropic, AWS, GCP, Azure platforms.
Details PluginEval's skill quality evaluation: 3 layers (static, LLM judge), 10 dimensions, rubrics, formulas, anti-patterns, badges. Use to interpret scores, improve triggering, calibrate thresholds.
This skill provides a minimal working example to verify your OpenRouter integration is functioning and introduces the basic request/response pattern.
OPENROUTER_API_KEY as an environment variable or add it to your .env filehttps://openrouter.ai/api/v1/chat/completions with a simple prompt using model: "openai/gpt-3.5-turbo"choices[0].message.content and usage token countsanthropic/claude-3-haiku or google/gemma-2-9b-it:free to confirm multi-model routing worksid, model, choices, and usage fields| Error | Cause | Fix |
|---|---|---|
| 401 Unauthorized | Invalid or missing API key | Verify key starts with sk-or- and is exported correctly |
| 404 Not Found | Wrong base URL | Use https://openrouter.ai/api/v1 (not v2) |
| 400 Bad Request | Malformed JSON body | Check messages array has role and content fields |
See ${CLAUDE_SKILL_DIR}/references/errors.md for full error reference.
See ${CLAUDE_SKILL_DIR}/references/examples.md for runnable code samples.