APIMaster.ai

Android Studio Quail 1 API Key Setup — Agent Third-Party Key Guide

Configure APIMaster.ai as a third-party API in Android Studio Quail 1 Agent. Add an OpenAI-compatible remote provider in Model Providers for GPT, Claude, Gemini, and more.

Android Studio Quail 1 (2026.1.1 stable) includes Agent and AI chat with support for third-party remote models. Follow Google’s Use a remote model flow: add APIMaster.ai as an OpenAI-compatible provider under Model Providers.

Get API Key first. Keys stay in local Android Studio settings only. Use the connectivity test if requests fail.


Prerequisites

  1. Android Studio Quail 1 installed (2026.1.1+; upgrade via Help → Check for Updates).
  2. APIMaster API Key from the console.
  3. Familiarity with available model ids on the marketplace (the list appears after Refresh).

Step 1 — Open Model Providers and add a provider

  1. Open Settings / Preferences (File → Settings on Windows/Linux; Android Studio → Settings on macOS).
  2. Expand Tools → AI and select Model Providers.
  3. Click + (Add).
  4. Choose Third-Party Remote Provider.

Android Studio Model Providers — add APIMaster.ai


Step 2 — APIMaster connection details

Fill in the provider form:

Field Value
Description APIMaster.ai (or any label you prefer)
URL https://apimaster.ai/v1 (include /v1)
URL Schema OpenAI-compatible
API key Your APIMaster key

Click Refresh to fetch available models from APIMaster.

In Available models, enable the models you want (multiple allowed), for example:

  • gpt-5.4 / gpt-5.5 / gpt-5.6-sol
  • claude-opus-4-8 / claude-sonnet-4-6
  • gemini-2.5-pro / gemini-3.5-flash

Click OK to save.

Notes:

  • URL Schema must be OpenAI-compatible (APIMaster uses OpenAI Chat Completions).
  • If Refresh returns an empty list, verify the key, network, and model access on the marketplace.
  • Third-party models support Chat and Agent; some Android Studio–specific AI features may require Google’s built-in models (Google docs).

Step 3 — Select an APIMaster model in Agent

  1. Open the Agent panel (or AI chat) on the right.
  2. Click the model picker at the bottom-right (dropdown next to the current model).
  3. Under APIMaster.ai, pick an enabled model (e.g. gpt-5.6-sol, claude-opus-4-8).
  4. Use Manage Models… to return to Model Providers and adjust providers or enabled models.

Android Studio Agent — select APIMaster model


Step 4 — Test Agent chat

  1. Send a test message (e.g. hello world or an Android dev question).
  2. A normal reply means setup works; billing follows the selected model via APIMaster.

Android Studio Agent chat verification


Example model ids

After Refresh, the list reflects your account. Common ids:

model id Notes
gpt-5.4 / gpt-5.5 / gpt-5.6-sol GPT
claude-haiku-4-5 Claude Haiku
claude-sonnet-4-6 / claude-sonnet-5 Claude Sonnet
claude-opus-4-8 Claude Opus
gemini-2.5-pro / gemini-3.5-flash Gemini
deepseek-v4-pro DeepSeek

See the marketplace for the full catalog; Refresh uses GET /v1/models.


Troubleshooting

Issue Fix
401 / Invalid API Key Re-paste key; confirm it is active in the console
Empty list after Refresh URL must be https://apimaster.ai/v1; check key, network, and model access
Agent still uses Gemini Switch to a model under APIMaster.ai in the picker
404 / model not found Uncheck invalid ids in Model Providers, Refresh, reselect
Some AI features missing Third-party models mainly support Chat / Agent (Google docs)
No Model Providers menu Requires Quail 1 (2026.1.1+); path: Tools → AI → Model Providers

Checklist

  • Android Studio Quail 1 (2026.1.1+) installed
  • APIMaster.ai added under Tools → AI → Model Providers
  • URL = https://apimaster.ai/v1, URL Schema = OpenAI-compatible
  • API key = APIMaster key
  • Refresh done; desired models enabled
  • APIMaster model selected in Agent; chat works

Related