Bring Your Own Key — BYOK

Set up your AI API key
in under 5 minutes

Metrya uses your own API key to talk to AI models. You pay the provider directly at cost — no markup, no subscription, no middleman.

Anthropic Claude OpenAI Google Gemini

Your key is stored in iOS Keychain — it never leaves your device. When you ask a question, Metrya sends your health data directly from your iPhone to the AI provider using your key. Metrya has no servers and never sees your API credentials or health data.

Anthropic Claude

Best reasoning and nuanced health analysis. Recommended for most users.

console.anthropic.com
1

Create an Anthropic account

Go to console.anthropic.com and click Sign up. You can register with Google or an email address. Verify your email if prompted.

console.anthropic.com
Anthropic Console — sign up page

Anthropic Console — sign up page

2

Add billing (required for API access)

Anthropic requires a small prepaid credit to activate API access. Go to Settings → Billing and add at least $5. This covers thousands of questions in Metrya — Claude is very inexpensive at API rates.

console.anthropic.com/settings/billing
Anthropic Console — billing page

Settings → Billing — add $5+ prepaid credit

Typical cost: Claude Sonnet 4.6 costs ~$0.015 per health question. A month of heavy use is usually under $2.
3

Create an API key

In the left sidebar, click API Keys. Then click Create Key. Give it any name (e.g., "Metrya"). Copy the key — it starts with sk-ant- and will only be shown once.

console.anthropic.com/settings/keys
Anthropic Console — API keys page

API Keys page — click "Create Key" and copy the key

4

Paste the key in Metrya

Open Metrya on your iPhone → tap the tab bar icon in the bottom right to open Settings → scroll to API Keys → find the Anthropic row → paste your key and tap Save. Metrya will validate the key automatically.

Model Speed Approx. cost per question Best for
Claude Sonnet 4.6 Balanced ~$0.015 Deep analysis, recurring insights
Claude Opus 4.6 Thorough ~$0.05 Comprehensive health reports

OpenAI

GPT-5 family only — the latest generation of OpenAI models, available in nano, mini, and full variants.

platform.openai.com
1

Create an OpenAI account

Visit platform.openai.com and click Sign up. You can use Google, Microsoft, or an email address. Verify your email to activate your account.

platform.openai.com
OpenAI Platform — sign in page

OpenAI Platform — sign in or create account

2

Add a payment method

Go to Settings → Billing in the left sidebar. Click Add payment method and add a card. Set an automatic top-up or add $10 prepaid credit. Without billing, API calls will fail.

platform.openai.com/settings/organization/billing
OpenAI Platform — billing page

Billing — add a payment method to enable API calls

Tip: Set a monthly spend limit (e.g., $5) under Billing → Limits to avoid unexpected charges while you explore.
3

Generate an API key

In the left sidebar, click API keys. Click Create new secret key, give it a name like "Metrya", and click Create secret key. Copy it immediately — keys start with sk- and cannot be shown again.

platform.openai.com/api-keys
OpenAI Platform — API keys page

API Keys — click "Create new secret key" and copy immediately

4

Paste the key in Metrya

Open Metrya → SettingsAPI Keys → find the OpenAI row → paste your sk- key and tap Save. Metrya validates the key before saving.

Model Speed Approx. cost per question Best for
GPT-5.4 mini Fast · Smart ~$0.001 Smart daily analysis, agent queries
GPT-5.4 nano Fastest ~$0.0002 Quick lookups, high-volume tracking
GPT-5 mini Balanced ~$0.001$0.25 / $2.00 per 1M tokens Best value GPT-5 — quality & speed
GPT-5 nano Fastest ~$0.0002$0.05 / $0.40 per 1M tokens Cheapest GPT-5 — high-volume tracking

Google Gemini

Google's flagship AI. Generous free tier available via AI Studio — great for trying Metrya at zero cost.

aistudio.google.com
1

Open Google AI Studio

Go to aistudio.google.com. Sign in with your Google account. No separate registration is needed if you already have a Google account.

aistudio.google.com
Google AI Studio — home page

Google AI Studio — sign in with your Google account

2

Get an API key

In the left sidebar, click Get API key. On the next screen, click Create API key. Choose Create API key in new project or select an existing Google Cloud project. The key is generated instantly.

aistudio.google.com/apikey
Google AI Studio — API key creation

Get API key — click "Create API key in new project"

Free tier: Gemini 2.5 Flash-Lite includes a generous free quota each day — ideal for testing Metrya without entering any billing details.
3

Copy your API key

After creation, your key appears in the table. Click the copy icon next to it. Gemini keys start with AIza. You can come back to this page at any time to copy or delete it.

aistudio.google.com/apikey
Google AI Studio — copy API key

API key table — click the copy icon to copy your key

4

Paste the key in Metrya

Open Metrya → SettingsAPI Keys → find the Gemini row → paste your AIza... key and tap Save. The key is validated and stored securely in iOS Keychain.

Model Speed Approx. cost per question Best for
Gemini 2.5 Flash-Lite Very fast Free / ~$0.0001 Daily use, free tier testing
Gemini 2.5 Flash Balanced ~$0.0003 Long-context health analysis
Gemini 2.5 Pro Thorough ~$0.001 Deep reasoning, complex reports
Gemini 3.1 Flash Fast ~$0.0005 Next-gen quality at low cost
Gemini 3.1 Pro (Preview) Thorough ~$0.002 Highest-capability Gemini available