Built-in AI, image generation, and email require Genie Cloud to be connected to your project. If it is not enabled yet, see Genie Cloud to set it up first.
What you get out of the box
When Genie Cloud is provisioned for your project, Genie automatically adds a set of ready-to-use credentials to your project secrets. You do not have to create them, and you do not have to paste them anywhere — Genie’s generated code reads them on its own.AI text (OpenAI & Anthropic)
Generate text, summaries, chat replies, and other AI content — and read images, PDFs, or spreadsheets you give it. Backed by OpenAI or Anthropic’s Claude models through Genie.
Image generation (Replicate)
Generate an image from a prompt, or edit an existing image — for example, changing a photo’s background or style. Ask for a logo or wordmark and Genie renders the actual requested lettering instead of leaving text out. Backed by Google’s image model through Replicate.
Email (Resend)
Send transactional email — confirmations, notifications, contact-form messages — through Resend.
ML inference (Hugging Face)
Run machine-learning models for tasks like classification or image work through Hugging Face.
You will also see matching
OPENAI_BASE_URL, ANTHROPIC_BASE_URL, REPLICATE_BASE_URL, RESEND_BASE_URL, and HF_ENDPOINT entries. These tell your app to route requests through Genie. Leave them as they are unless you are switching to your own key (see Bringing your own key below).
How it works
Your app never holds a real OpenAI, Anthropic, Replicate, or Resend key. Instead, the credentials Genie seeds are project-specific access tokens that point at Genie’s secure relay. When your app makes a request:1
Your app calls the service
Your generated code calls OpenAI, Anthropic, Replicate, Resend, or Hugging Face as normal, using the seeded credentials.
2
Genie authenticates and forwards it
The request reaches Genie, which verifies it belongs to your project and then forwards it to the real provider using Genie’s own provider key.
3
The response streams back
The provider’s reply is passed straight back to your app, unchanged. AI responses stream token by token just as they would directly.
Usage and limits
Each request your app makes through the built-in credentials is recorded — provider, endpoint, status, and timing — so Genie can monitor the service and attribute usage to your project. AI text (OpenAI or Anthropic) and image, video, or audio generation (Replicate) draw down your credits. A successful request is billed using the same per-model rate your project chat is billed with, and appears in your ledger asGenie proxy · <provider> · <model>. Track your live app’s usage under Project Settings → Usage — a day-by-day breakdown with a 7/30/90-day range toggle — or in your account transaction history.
Email (Resend) and Hugging Face inference are not metered yet and do not currently draw credits.
Billing only applies once Genie has priced a given model — a request to an unpriced model is charged nothing. As pricing rolls out to more models, usage through them starts drawing credits automatically, with no change needed on your end.
Retrieval (RAG) with embeddings
If your app needs semantic search or retrieval-augmented generation (RAG) — matching a user’s question against your own content by meaning rather than exact keywords — Genie can turn text into embeddings (vector representations) out of the box, with no separate OpenAI key required. Ask Genie for something like “let users search our FAQ by meaning” or “answer questions using our uploaded documents”, and it wires up both halves of the flow:- Turning each chunk of your content into a vector when it is ingested, and storing the result in your Genie Cloud database (which supports
pgvectorfor this). - Turning a user’s question into a vector at search time, then comparing it against your stored content to find the closest matches.
Limits of the built-in credentials
The included credentials are tuned for the common case — getting features working instantly and affordably. A few constraints come with that:AI model
The built-in OpenAI credential is limited to Genie’s default model, which is selected to be fast and cost-effective for typical app features. The built-in Anthropic credential works the same way, limited to Genie’s default Claude model. If your app requests a different model, the request is rejected. To use a specific or more powerful model, bring your own OpenAI or Anthropic key. Some more powerful models — including certain Claude models — may be limited to certain plans or accounts, so don’t assume every model is available to every project.Image model
The built-in Replicate credential is limited to a small set of Genie-selected image models (Google’s nano-banana family, used for both generating a new image and editing an existing one). If your app requests a model outside that set, the request is rejected. To use a different image model, bring your own Replicate key.Spreadsheet attachments
No AI model reads a.xlsx file directly, so when your app sends one as part of a built-in AI request, Genie automatically converts it to a plain-text table before it reaches the model — the same data, just in a format every model can already read. There’s nothing to configure; this happens for every request through the built-in credential.
Very large workbooks are trimmed so a request stays a reasonable size: up to 8 MB per file, 5 files per request, and the first 10 sheets (500 rows × 30 columns each) are included, with a note added where content had to be cut.
Email sender address
Email sent through the built-in Resend credential must use Genie’s verified sending address:email.genie-app.de is the domain Genie has verified for shared use. To send from your own address or domain — for example hello@yourcompany.com — bring your own Resend key.
Bringing your own key
You can replace any of the built-in credentials with your own at any time. This is the right move when you want a specific AI model, your own email domain, your own usage limits, or provider billing in your own account.1
Create a key with the provider
Sign up with OpenAI, Anthropic, Replicate, Resend, or Hugging Face and create an API key. For Resend, verify your sending domain in their dashboard first.
2
Open your project Secrets
In your project, open Settings → Secrets. See Secrets for details.
3
Replace the value
Edit the relevant secret —
OPENAI_API_KEY, ANTHROPIC_API_KEY, REPLICATE_API_TOKEN, RESEND_API_KEY, or HF_TOKEN — and paste your own key in place of the built-in one.4
Save
Save the secret. Genie automatically updates the matching base-URL entry to point at the provider directly, so your app talks to the provider with your key instead of going through Genie’s relay. No code changes are needed.
Switching back to the built-in credential later is done by re-running provisioning for the project (the Re-run bootstrap button in the Cloud tab re-seeds the built-in values). A dedicated one-click reset is on the roadmap.
