Structured AI output in Flutter: Gemini, OpenAI, Claude
by Qihu Zhang dev.to
5 min read
Short answer: all three APIs can return JSON that matches a schema you send. Each wants the schema in its own dialect: Gemini takes upper-case type names, OpenAI's strict mode needs every property required and additionalProperties: false, and Claude needs additionalProperties: false on every object. Write the schema once and convert it per vendor, or use gemini_openai_claude, which does the conve…
Topics AI in Flutter apps
More like this
- Article 5 min read
Building an Edge AI Vision Pipeline with Jetson, ROS 2 and TensorRT
by vmodal_ai
Build an edge vision pipeline with camera capture, preprocessing, inference, postprocessing, and ROS 2 publication. NVIDIA's Jetson software stack includes GPU-accelerated AI tooling, and TensorRT can...
Read on dev.to - Article 13 min read
Flutter AI Chat Without Exposing Your OpenAI API Key
by Muhammad Naeem
Short answer: Never put an OpenAI, Gemini or Claude API key inside a Flutter app, because anyone can pull it out of the install file. Put a small backend in between: the app calls your server, your se...
Read on dev.to
Article 6 min readLet your AI agent test your Flutter app with Tapir, on the web and at iPhone size
by Anılcan Çakır
Flutter 3.50 was announced on 11 November with official agent plugins, and one of their rules hot reloads the app through the MCP server every time the agent edits a file under lib/. That's good. But...
Read on dev.to
Article 9 min readBuilding a streaming AI chat app in Flutter with zero state-management dependencies
by Stephen Color
Every Flutter AI-chat demo I've seen starts with the same pubspec.yaml: dependencies: provider: ^6.1.2 flutter_markdown: ^0.7.0 # + dio, freezed, json_annotation, ... That is a perfectly reasonable pl...
Read on dev.to