Minimal PHP cURL script for Gemini API: deprecated model names return 404 errors
chiba-labo · reddit · 2026-10-12
A developer shared a copy-paste-ready PHP cURL script for calling the Gemini API with the current gemini-3.6-flash model, noting that many existing tutorials reference deprecated model names like gemini-1.5-flash that now return 404 errors. The post includes the full minimal script (endpoint setup, JSON payload, response parsing) plus troubleshooting tips: use an active model name and enable extension=curl in php.ini. A longer guide covers file placement, hosting setup, and web app integration.
More from Apps
- LocalLightChat: a lightweight Open WebUI alternative now with Agents, MCP and RAG — PromptInjection_ · 2026-10-12
- Mac 剪贴板管理器 Just Copy 内置 MCP:把剪贴板历史喂给 AI 助手 — meezus_truth · 2026-10-12
- Former Plaud exec raises $26M for Ambi, an AI app that listens in the background — TechCrunch AI · 2026-10-12
- NASA Worldview lets you browse 1000+ global satellite imagery layers for free — tom_doerr · 2026-10-12
- RustGIS v0.1.0 ships: pure-Rust open-source GIS with 1,000+ tools and an AI assistant — giswqs · 2026-10-12
- VType Linux runs WeChat's official Android IME engine in Fcitx5 with cross-device sync — lxfater · 2026-10-12