{"id":29292743,"url":"https://github.com/bootcamptoprod/spring-ai-openrouter-integration","last_synced_at":"2025-07-06T10:08:50.774Z","repository":{"id":302945043,"uuid":"1013919373","full_name":"BootcampToProd/spring-ai-openrouter-integration","owner":"BootcampToProd","description":"A simple Spring Boot application showcasing how to integrate OpenRouter with Spring AI to use different LLM models","archived":false,"fork":false,"pushed_at":"2025-07-04T22:07:15.000Z","size":5,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2025-07-04T23:19:36.419Z","etag":null,"topics":["integrate-openrouter-with-spring-ai","openrouter","openrouter-api","openrouter-integration","spring-ai","spring-ai-openrouter","spring-ai-openrouter-integration"],"latest_commit_sha":null,"homepage":"https://bootcamptoprod.com/integrate-openrouter-with-spring-ai/","language":"Java","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/BootcampToProd.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null}},"created_at":"2025-07-04T17:35:15.000Z","updated_at":"2025-07-04T22:09:07.000Z","dependencies_parsed_at":"2025-07-04T23:19:38.337Z","dependency_job_id":"41150994-29ce-41a2-b87f-b15327fc5073","html_url":"https://github.com/BootcampToProd/spring-ai-openrouter-integration","commit_stats":null,"previous_names":["bootcamptoprod/spring-ai-openrouter-integration"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/BootcampToProd/spring-ai-openrouter-integration","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/BootcampToProd%2Fspring-ai-openrouter-integration","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/BootcampToProd%2Fspring-ai-openrouter-integration/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/BootcampToProd%2Fspring-ai-openrouter-integration/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/BootcampToProd%2Fspring-ai-openrouter-integration/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/BootcampToProd","download_url":"https://codeload.github.com/BootcampToProd/spring-ai-openrouter-integration/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/BootcampToProd%2Fspring-ai-openrouter-integration/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":263882293,"owners_count":23524463,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["integrate-openrouter-with-spring-ai","openrouter","openrouter-api","openrouter-integration","spring-ai","spring-ai-openrouter","spring-ai-openrouter-integration"],"created_at":"2025-07-06T10:08:47.890Z","updated_at":"2025-07-06T10:08:50.767Z","avatar_url":"https://github.com/BootcampToProd.png","language":"Java","funding_links":[],"categories":[],"sub_categories":[],"readme":"# 🤖 Spring AI + OpenRouter: The Universal LLM Gateway\n\nThis repository demonstrates how to integrate **OpenRouter** with **Spring AI**, allowing you to access hundreds of Large Language Models (LLMs) from providers like OpenAI, Google, Anthropic, and many more through a single, unified API. This project showcases the power of switching between different AI models by changing just one line in your configuration file, with zero code modifications.\n\n📖 **Dive Deeper**: For a complete walkthrough, detailed explanations of OpenRouter's benefits, and step-by-step instructions for building this example application, read our comprehensive blog post.\u003cbr\u003e\n👉 [Integrate OpenRouter with Spring AI: Switch Between 400+ AI Models with Zero Code Changes](https://bootcamptoprod.com/integrate-openrouter-with-spring-ai/)\n\n🎥 **Visual Learning**: Prefer video tutorials? Watch our step-by-step implementation guide on YouTube.\u003cbr\u003e\n👉 YouTube Tutorial - Coming Soon\n\n---\n\n## 📦 Environment Variables\n\nMake sure to provide this Java environment variable when running the application:\n\n-   `OPENROUTER_API_KEY`: Your secret API key from the OpenRouter.\n\n---\n\n## 💡 About This Project\n\nThis project implements a simple **Smart Chat Assistant** to demonstrate the ease of integrating OpenRouter with Spring AI. It showcases how to:\n\n*   Configure Spring AI to use any OpenAI-compatible API endpoint.\n*   Use a single `ChatClient` to access a vast array of models.\n*   Switch between different LLMs (e.g., from a free model to a paid one like GPT-4o) just by editing the `application.yml` file.\n\nThe application exposes a simple REST endpoint that takes a user's message, sends it to the configured model via OpenRouter, and returns the AI-generated response.\n\n---","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbootcamptoprod%2Fspring-ai-openrouter-integration","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fbootcamptoprod%2Fspring-ai-openrouter-integration","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbootcamptoprod%2Fspring-ai-openrouter-integration/lists"}