{"id":26795944,"url":"https://github.com/walterpinem/ai-translator-app-openrouter-api","last_synced_at":"2026-04-28T09:36:27.274Z","repository":{"id":284950441,"uuid":"956596673","full_name":"walterpinem/ai-translator-app-openrouter-api","owner":"walterpinem","description":"AI-powered Translator web application utilizing the OpenRouter API and freely available AI models, integrated with Python and Streamlit frameworks","archived":false,"fork":false,"pushed_at":"2025-03-28T14:34:32.000Z","size":7,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-03-28T15:29:31.998Z","etag":null,"topics":["openrouter","openrouter-api","python","python-3","python-script","python3","streamlit","streamlit-webapp","translator","translator-app","translator-text","translator-tool"],"latest_commit_sha":null,"homepage":"https://walterpinem.com/ai-translator-app-openrouter-api/","language":"Python","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/walterpinem.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}},"created_at":"2025-03-28T14:22:57.000Z","updated_at":"2025-03-28T14:34:35.000Z","dependencies_parsed_at":"2025-03-28T15:40:55.462Z","dependency_job_id":null,"html_url":"https://github.com/walterpinem/ai-translator-app-openrouter-api","commit_stats":null,"previous_names":["walterpinem/ai-translator-app-openrouter-api"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/walterpinem/ai-translator-app-openrouter-api","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/walterpinem%2Fai-translator-app-openrouter-api","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/walterpinem%2Fai-translator-app-openrouter-api/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/walterpinem%2Fai-translator-app-openrouter-api/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/walterpinem%2Fai-translator-app-openrouter-api/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/walterpinem","download_url":"https://codeload.github.com/walterpinem/ai-translator-app-openrouter-api/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/walterpinem%2Fai-translator-app-openrouter-api/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":262503158,"owners_count":23321182,"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":["openrouter","openrouter-api","python","python-3","python-script","python3","streamlit","streamlit-webapp","translator","translator-app","translator-text","translator-tool"],"created_at":"2025-03-29T18:16:35.127Z","updated_at":"2026-04-28T09:36:27.210Z","avatar_url":"https://github.com/walterpinem.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# AI Translator App Using OpenRouter API\nAI-powered Translator web application utilizing the OpenRouter API and freely available AI models, integrated with Python and Streamlit frameworks.\n\n### Prerequisites\nBefore we begin, make sure you have the following:\n*   **Python 3.6+** installed on your machine.\n*   Basic knowledge of Python programming.\n*   Familiarity with Streamlit for building web applications.\n*   An API key from OpenRouter. You can sign up and get one [here](https://openrouter.ai/).\n\n### Setting Up the Environment\nFirst, let’s install the necessary Python packages. Open your terminal and run:\n\n`pip install streamlit requests python-dotenv`\n\n### Environment Variables\nTo keep your API key secure, we’ll use a .env file. In your project directory, create a `.env` file:\n\n`touch .env`\n\n`OPENROUTER_API_KEY=your_openrouter_api_key`\n\n### Defining Available AI Models\nAs of the time of writing this readme file, these are the list of free AI models available on OpenRouter:\n\n```ini\n# Free AI models\nAI_MODELS = [\n    \"google/gemini-2.5-pro-exp-03-25:free\",\n    \"google/gemma-3-1b-it:free\",\n    \"google/gemma-3-4b-it:free\",\n    \"google/gemma-3-12b-it:free\",\n    \"google/gemma-3-27b-it:free\",\n    \"google/gemini-2.0-flash-lite-preview-02-05:free\",\n    \"google/gemini-2.0-pro-exp-02-05:free\",\n    \"google/gemini-2.0-flash-thinking-exp:free\",\n    \"google/gemini-2.0-flash-thinking-exp-1219:free\",\n    \"google/gemini-2.0-flash-exp:free\",\n    \"google/learnlm-1.5-pro-experimental:free\",\n    \"google/gemini-flash-1.5-8b-exp\",\n    \"google/gemma-2-9b-it:free\",\n    \"deepseek/deepseek-chat-v3-0324:free\",\n    \"deepseek/deepseek-r1-zero:free\",\n    \"deepseek/deepseek-r1-distill-llama-70b:free\",\n    \"deepseek/deepseek-r1:free\",\n    \"deepseek/deepseek-chat:free\",\n    \"meta-llama/llama-3.3-70b-instruct:free\",\n    \"meta-llama/llama-3.2-3b-instruct:free\",\n    \"meta-llama/llama-3.2-1b-instruct:free\",\n    \"meta-llama/llama-3.2-11b-vision-instruct:free\",\n    \"meta-llama/llama-3.1-8b-instruct:free\",\n    \"meta-llama/llama-3-8b-instruct:free\",\n    \"qwen/qwen2.5-vl-3b-instruct:free\",\n    \"qwen/qwen2.5-vl-32b-instruct:free\",\n    \"qwen/qwq-32b:free\",\n    \"qwen/qwen2.5-vl-72b-instruct:free\",\n    \"deepseek/deepseek-r1-distill-qwen-32b:free\",\n    \"deepseek/deepseek-r1-distill-qwen-14b:free\",\n    \"qwen/qwq-32b-preview:free\",\n    \"qwen/qwen-2.5-coder-32b-instruct:free\",\n    \"qwen/qwen-2.5-72b-instruct:free\",\n    \"qwen/qwen-2.5-vl-7b-instruct:free\",\n    \"qwen/qwen-2-7b-instruct:free\",\n    \"allenai/molmo-7b-d:free\",\n    \"bytedance-research/ui-tars-72b:free\",\n    \"featherless/qwerky-72b:free\",\n    \"mistralai/mistral-small-3.1-24b-instruct:free\",\n    \"open-r1/olympiccoder-7b:free\",\n    \"open-r1/olympiccoder-32b:free\",\n    \"rekaai/reka-flash-3:free\",\n    \"moonshotai/moonlight-16b-a3b-instruct:free\",\n    \"nousresearch/deephermes-3-llama-3-8b-preview:free\",\n    \"cognitivecomputations/dolphin3.0-r1-mistral-24b:free\",\n    \"cognitivecomputations/dolphin3.0-mistral-24b:free\",\n    \"mistralai/mistral-small-24b-instruct-2501:free\",\n    \"sophosympatheia/rogue-rose-103b-v0.2:free\",\n    \"nvidia/llama-3.1-nemotron-70b-instruct:free\",\n    \"mistralai/mistral-nemo:free\",\n    \"mistralai/mistral-7b-instruct:free\",\n    \"microsoft/phi-3-mini-128k-instruct:free\",\n    \"microsoft/phi-3-medium-128k-instruct:free\",\n    \"openchat/openchat-7b:free\",\n    \"undi95/toppy-m-7b:free\",\n    \"huggingfaceh4/zephyr-7b-beta:free\",\n    \"gryphe/mythomax-l2-13b:free\"\n]\n```\n\nThe list of freely available AI models will update regularly, so check on [OpenRouter](https://openrouter.ai/models?max_price=0) for more updates.\n\n### Running the Streamlit App\n`streamlit run app.py`\n\nFor more explanation on part by part of the script, please refer to [Create an AI Translator App with OpenRouter API, Python, and Streamlit](https://walterpinem.com/ai-translator-app-openrouter-api/).\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fwalterpinem%2Fai-translator-app-openrouter-api","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fwalterpinem%2Fai-translator-app-openrouter-api","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fwalterpinem%2Fai-translator-app-openrouter-api/lists"}