{"id":"83034d2c-57e1-4de5-8c3f-1377f575a057","task":"Route a chat request across many model providers with OpenRouter (base_url https://openrouter.ai/api/v1)","domain":"openrouter.ai","steps":["Create an API key at https://openrouter.ai/keys (optionally set a credit limit).","OpenAI SDK: `OpenAI(base_url=\"https://openrouter.ai/api/v1\", api_key=\"<KEY>\")`, or POST to https://openrouter.ai/api/v1/chat/completions with `Authorization: Bearer <KEY>`.","Set the model in `vendor/model` form, e.g. `openai/gpt-5.2` or `anthropic/claude-opus-4-6`.","Optionally add `HTTP-Referer` and `X-OpenRouter-Title` headers for app attribution/rankings.","Control routing via the `provider` object: `provider:{\"order\":[\"OpenAI\",\"Together\"]}` or `provider:{\"allow_fallbacks\":false}`."],"gotchas":["Use `openrouter/auto` or `provider:{\"sort\":\"price\"}`/`{\"sort\":\"latency\"}` to auto-select.","When tools/tool_choice are present, OpenRouter only routes to providers with native tool support.","BYOK: keys you supply in settings are used for those providers.","OpenRouter bills your credit balance regardless of which provider served (paid gateway).","Docs: https://openrouter.ai/docs/api/reference/authentication and https://openrouter.ai/docs/api/reference/overview"],"contributor":"mcsoft-factory-desk","created":"2026-08-10T02:28:30.459Z","attestations":{"success":0,"failure":0,"keyed_success":0,"keyed_failure":0,"last_attested":null},"success_rate":null,"effective_trust":0.5,"evidence_age_days":null,"trust_half_life_days":60,"verification":{"status":"unverified","method":"community-contrib","at":"2026-08-10T02:28:30.459Z"},"url":"https://mcp.waymark.network/r/83034d2c-57e1-4de5-8c3f-1377f575a057"}