XFreeSTUDIO · OPEN WORKSPACEOpen Studio
DEVELOPER PILLAR · FIREBASE AI LOGIC

How XFree connects Gemini through Firebase AI Logic

A technical overview of how XFree Studio calls Gemini through Firebase AI Logic, uses App Check, selects inference modes, and reports model results.

Try XFree Studio
IN SHORT

XFree initializes Firebase AI Logic with its Firebase app and App Check configuration, then selects a Gemini inference mode for a project-brief request. Cloud requests use the Firebase AI Logic proxy; successful results display their reported inference source.

Client SDK and model selection

The web app uses the Firebase JavaScript SDK AI module. Its current cloud model identifier is gemini-3.8-flash, while its inference mode can request on-device only, prefer on-device with cloud fallback, or use cloud only. The actual response source is read from the SDK response rather than inferred from the selected preference.

The generated task is a build brief. The prompt asks Gemini for an outcome, a small MVP, a build sequence, and risks. This is a product-planning flow, not a generic agent tool runner, a source-code review service, or an automatic deployment system.

App Check and cloud requests

Firebase AI Logic can use Firebase App Check to help protect model requests from unauthorized clients. XFree configures limited-use App Check tokens. This layer is useful for abuse resistance, but it does not replace authorization rules for other services and does not establish whether a caller is a human or an autonomous agent.

A cloud model request sends the prompt to Firebase AI Logic. Hybrid mode may do the same if the local model is unavailable. Use Local only when a cloud fallback is unacceptable and the device supports the local path. The user-facing disclosure states these distinctions before submission.

Failure handling and operations

AI calls can fail because of configuration, App Check, service availability, rate limits, model overload, or network issues. XFree surfaces a request error and does not mark a failed call as a completed inference. The production project’s quotas and model availability should be checked in Firebase when diagnosing live failures.

For maintainers, keep the model identifier and SDK behavior aligned with current Firebase documentation. Monitor quota and App Check status, review security rules before enabling data sync, and avoid placing server credentials in frontend code. Firebase web configuration identifies the app but is not a substitute for backend security.

Frequently asked questions

Does XFree send Gemini requests directly from the browser?

The Firebase AI Logic client SDK sends requests through Firebase’s proxy service. Cloud-mode prompts are sent for cloud inference; hybrid may use cloud fallback.

What does Firebase App Check protect?

App Check helps Firebase distinguish requests from the registered app. It is an abuse-protection layer, not agent identity proof or a guarantee of model correctness.

Can I change the model?

The cloud model identifier is configured in the app source. Any change should use a model currently supported by Firebase AI Logic and be checked against the Firebase project’s quota and provider settings.

Open Studio