A Lareia

Sua chave de IA

Nos apps da Lareia, parte da IA usa a sua própria chave de API: o seu aparelho fala direto com o provedor, e quem cobra é ele, na sua conta. Este guia mostra como criar a chave em cada provedor, pôr um teto de gasto, ter uma ideia do custo, guardar a chave com segurança e apagá-la.

O que é, e para que serve

Uma chave de API é um código secreto que deixa um app usar a IA de um provedor em seu nome, cobrando na sua conta. Nos apps da Lareia:

  • Lege: perguntas além das incluídas e a tradução por IA (Anthropic ou OpenAI); a voz de estúdio (ElevenLabs ou OpenAI).
  • Auctor: revisar, conversar com as personas e a reflexão do dia (Anthropic ou OpenAI); a imagem do dia (só OpenAI); a voz de estúdio (ElevenLabs ou OpenAI).
  • Prosa: perguntas além das 150 do mês, a revisão final e o resumo (Anthropic ou OpenAI).

Uma chave da OpenAI serve para texto e para voz. A chave fica só nos seus aparelhos e nunca chega aos servidores da Lareia. No app, você a cola em Conta › Suas chaves; o app faz um teste barato no provedor antes de guardá-la.

Na Anthropic (Claude)

  1. Entre em platform.claude.com, a plataforma de desenvolvedores da Anthropic, e crie uma conta.
  2. Em Settings › Billing, compre crédito pré-pago. Deixe a recarga automática desligada: assim, o gasto nunca passa do saldo.
  3. Em Settings › Limits, ponha um limite de gasto por mês.
  4. Em API keys, toque «Create key», dê um nome (por exemplo, «Lareia») e copie a chave, que começa com sk-ant-. Ela só aparece uma vez.
  5. No app, cole em Conta › Suas chaves.

Na OpenAI (ChatGPT)

  1. Entre em platform.openai.com, a plataforma de desenvolvedores da OpenAI, e crie uma conta. A assinatura do ChatGPT não serve: a API tem cobrança própria.
  2. Em Settings › Billing, adicione crédito pré-pago e deixe a recarga automática desligada.
  3. Crie um projeto só para a Lareia (Settings › Projects) e, nos limites dele, ponha um orçamento por mês, com corte ao chegar.
  4. Em API keys, dentro desse projeto, toque «Create new secret key» e copie a chave, que começa com sk-. Ela só aparece uma vez.
  5. No app, cole em Conta › Suas chaves. A mesma chave serve para texto, para a voz de estúdio e para a imagem do dia.

Na ElevenLabs (voz)

  1. Entre em elevenlabs.io e crie uma conta. O plano grátis dá uma cota pequena de créditos por mês; os planos pagos dão mais. Cada caractere narrado gasta créditos.
  2. No menu da conta, abra Developers › API Keys e toque «Create API Key».
  3. Dê um nome, deixe ligado só o que o app usa (a fala, «Text to Speech», e a lista de vozes, «Voices», só para ler) e ponha um limite de créditos na própria chave.
  4. Copie a chave e cole no app, em Conta › Suas chaves.

Pôr um teto de gasto

O teto mais firme é o crédito pré-pago com a recarga automática desligada: quando o saldo acaba, o provedor recusa o pedido, o app avisa, e nada se cobra a mais. Por cima dele, use o limite do próprio provedor: o limite mensal da Anthropic, o orçamento do projeto na OpenAI e o limite de créditos da chave na ElevenLabs. Comece baixo; dá para subir depois.

Quanto custa, por uso

São estimativas em dólar, pela tabela pública dos provedores no fim de 2026. Os preços mudam e dependem do modelo escolhido; quem cobra é o provedor, e a página de preços dele é a que vale.

  • Uma pergunta sobre um capítulo, no Lege: de US$ 0,01 a 0,05.
  • Uma pergunta sobre 1 hora de conversa, na Prosa: de US$ 0,02 a 0,10.
  • O resumo ou a revisão final de 1 hora de conversa, na Prosa: de US$ 0,05 a 0,30.
  • Revisar um dia de 1.000 palavras, no Auctor: de US$ 0,01 a 0,05.
  • Uma imagem do dia, no Auctor (OpenAI): de US$ 0,02 a 0,20.
  • 1 hora de voz de estúdio, cerca de 50.000 caracteres: na OpenAI, de US$ 0,75 a 1,50; na ElevenLabs, de 25.000 a 50.000 créditos, perto de US$ 5 a 11 nos planos pagos.

A voz de estúdio já gerada fica guardada no aparelho: ouvir de novo não se paga de novo.

Segurança

  • A chave é como uma senha com dinheiro atrás. Não a mande a ninguém e não a cole em outro lugar além do app.
  • Ninguém da Lareia vai pedir a sua chave: nem o suporte, nem um e-mail, nem uma mensagem. Se alguém pedir em nosso nome, é golpe; avise em suporte@lareia.app.
  • No app, a chave fica no Chaveiro do aparelho, cifrada (no Android, no cofre de chaves do sistema), e a tela mostra só o provedor e os 4 últimos caracteres.
  • Use uma chave só para a Lareia. Se ela vazar, revogue no provedor e crie outra: a antiga deixa de funcionar na hora.

Como apagar

  1. No app, em Conta › Suas chaves, toque «Apagar». Nos aparelhos Apple, a chave sai de todos os seus aparelhos com o mesmo iCloud.
  2. No provedor, revogue a chave: na Anthropic e na OpenAI, em API keys; na ElevenLabs, em Developers › API Keys. É isso que a desliga de vez.

Apagar o app não apaga a chave do Chaveiro, e sair da conta Lareia também não, porque a chave é sua. Para tirá-la, use «Apagar».

Primeira versão: 12 de novembro de 2026. Quando algo mudar, a data muda junto, e o que mudou fica dito aqui.

Suporte: Lege · Suporte: Auctor · Suporte: Prosa

Lareia

Your AI key

In Lareia’s apps, part of the AI uses your own API key: your device talks directly to the provider, and the provider charges your account. This guide shows how to create the key with each provider, set a spending limit, get an idea of the cost, keep the key safe and delete it.

What it is, and what it is for

An API key is a secret code that lets an app use a provider’s AI on your behalf, charging your account. In Lareia’s apps:

  • Lege: questions beyond the included ones and AI translation (Anthropic or OpenAI); the studio voice (ElevenLabs or OpenAI).
  • Auctor: review, talking with the personas and the reflection on the day (Anthropic or OpenAI); the image of the day (OpenAI only); the studio voice (ElevenLabs or OpenAI).
  • Prosa: questions beyond the month’s 150, the final review and the summary (Anthropic or OpenAI).

An OpenAI key works for both text and voice. The key stays only on your devices and never reaches Lareia’s servers. In the app, you paste it under Account › Your keys; the app makes a cheap test call to the provider before keeping it.

With Anthropic (Claude)

  1. Go to platform.claude.com, Anthropic’s developer platform, and create an account.
  2. Under Settings › Billing, buy prepaid credit. Leave auto-reload off: that way, spending never goes beyond the balance.
  3. Under Settings › Limits, set a monthly spend limit.
  4. Under API keys, tap “Create key”, give it a name (for example, “Lareia”) and copy the key, which starts with sk-ant-. It is shown only once.
  5. In the app, paste it under Account › Your keys.

With OpenAI (ChatGPT)

  1. Go to platform.openai.com, OpenAI’s developer platform, and create an account. A ChatGPT subscription does not work here: the API is billed separately.
  2. Under Settings › Billing, add prepaid credit and leave auto-recharge off.
  3. Create a project just for Lareia (Settings › Projects) and, in its limits, set a monthly budget that cuts off when reached.
  4. Under API keys, inside that project, tap “Create new secret key” and copy the key, which starts with sk-. It is shown only once.
  5. In the app, paste it under Account › Your keys. The same key works for text, the studio voice and the image of the day.

With ElevenLabs (voice)

  1. Go to elevenlabs.io and create an account. The free plan gives a small amount of credits a month; paid plans give more. Each narrated character uses credits.
  2. In the account menu, open Developers › API Keys and tap “Create API Key”.
  3. Give it a name, leave on only what the app uses (speech, “Text to Speech”, and the voice list, “Voices”, read-only) and set a credit limit on the key itself.
  4. Copy the key and paste it in the app, under Account › Your keys.

Setting a spending limit

The firmest limit is prepaid credit with auto-reload off: when the balance runs out, the provider refuses the request, the app tells you, and nothing more is charged. On top of that, use the provider’s own limit: Anthropic’s monthly limit, the project budget at OpenAI and the key’s credit limit at ElevenLabs. Start low; you can raise it later.

What it costs, per use

These are estimates in US dollars, from the providers’ public price lists at the end of 2026. Prices change and depend on the chosen model; the provider is who charges, and its pricing page is the one that counts.

  • A question about a chapter, in Lege: US$ 0.01 to 0.05.
  • A question about 1 hour of conversation, in Prosa: US$ 0.02 to 0.10.
  • The summary or final review of 1 hour of conversation, in Prosa: US$ 0.05 to 0.30.
  • Reviewing a 1,000-word day, in Auctor: US$ 0.01 to 0.05.
  • An image of the day, in Auctor (OpenAI): US$ 0.02 to 0.20.
  • 1 hour of studio voice, about 50,000 characters: with OpenAI, US$ 0.75 to 1.50; with ElevenLabs, 25,000 to 50,000 credits, around US$ 5 to 11 on paid plans.

Studio voice already generated stays stored on the device: listening again is not paid again.

Security

  • The key is like a password with money behind it. Do not send it to anyone and do not paste it anywhere other than the app.
  • Nobody from Lareia will ask for your key: not support, not an e-mail, not a message. If someone asks in our name, it is a scam; tell us at suporte@lareia.app.
  • In the app, the key stays in the device’s Keychain, encrypted (on Android, in the system keystore), and the screen shows only the provider and the last 4 characters.
  • Use a key just for Lareia. If it leaks, revoke it with the provider and create another: the old one stops working at once.

How to delete it

  1. In the app, under Account › Your keys, tap “Delete”. On Apple devices, the key leaves all your devices on the same iCloud.
  2. With the provider, revoke the key: at Anthropic and OpenAI, under API keys; at ElevenLabs, under Developers › API Keys. That is what turns it off for good.

Deleting the app does not delete the key from the Keychain, and neither does signing out of your Lareia account, because the key is yours. To remove it, use “Delete”.

First version: November 12, 2026. When something changes, the date changes with it, and what changed is said here.

Support: Lege · Support: Auctor · Support: Prosa