# thelastapi > One API for what a new business needs online: hosting, a Postgres database, sign-in, email, AI, payments (thelastapi is the merchant) and US company formation, with usage, limits and keys in one place. Built for builders and their AI agents. ## Start here (agents) 0. Setting up for the first time? Follow https://thelastapi.dev/get-started.md: the CLI, the skills and the MCP connection, once per machine. 1. Log in: run `npx @vibiz/cli login`. It prints a link and a code: show the link to the person and ask them to open it and click Authorize (a thelastapi account is opened for them if they have none). Running it again keeps waiting on the same code. Never ask for a key in the chat. 2. Or connect the remote MCP server, nothing to install: `claude mcp add --transport http vibiz https://thelastapi.dev/mcp` (Cursor and Codex: the same URL). The client opens the same sign-in on first use. In Claude or ChatGPT the person adds that URL as a custom connector, and you deploy with `vibiz_deploy { files }`. 3. Build: `npx @vibiz/cli init ""` in the app folder (`--template nextjs-saas` for a starter app), `npx @vibiz/cli dev` for the development env, `npx @vibiz/cli deploy` to go live at .vibiz.app. 4. You hold an agent key: everything in development, deploys, AI. Live money, real filings and production secrets are the person's: errors carry `details.next_step` to pass on. Every page is also plain markdown: add `.md` to its URL. Everything in one file: https://thelastapi.dev/llms-full.txt. API base URL: https://thelastapi.dev/v1. ## Getting started - [What is thelastapi](https://thelastapi.dev/docs/introduction.md): One API and one key for what a new business needs online, built for builders and their AI agents. - [Quickstart](https://thelastapi.dev/docs/quickstart.md): Start in Claude or ChatGPT with nothing to install, start from your coding agent with one prompt, or open an account, log in the CLI, create a project and deploy it yourself. - [Use one service](https://thelastapi.dev/docs/use-one.md): Use just one thelastapi service - sign-in, a database, payments, email, AI, analytics, files, web data - from an app hosted anywhere, a plain site, a mobile app's backend or a script. - [Keys and environments](https://thelastapi.dev/docs/keys.md): Full-access, Limited and app keys; production and development; who may do what. - [Billing and credits](https://thelastapi.dev/docs/billing.md): Prepaid credits per account, how usage draws them down, adding credits by card, auto-recharge, and what happens at zero. ## Products - [Hosting](https://thelastapi.dev/docs/hosting.md): Deploy a folder, or the files themselves from a chat, to .vibiz.app. Edit a live site by sending only what changed. Previews, instant promote and rollback. - [Domains](https://thelastapi.dev/docs/domains.md): Every app gets .vibiz.app. Buy a domain of its own from your credits, registered to you, and use it (or app., api.…) on any of your projects with no DNS to set. - [Database](https://thelastapi.dev/docs/database.md): A Postgres database per project, plus an empty development branch agents can use without touching production data. - [Sign-in](https://thelastapi.dev/docs/sign-in.md): Email and password, verification, magic links and social sign-in per project and environment, with allowed email domains. - [Email](https://thelastapi.dev/docs/email.md): Send from @.vibiz.app; a real inbox at your own domain (hello@yourcompany.com), read here and replied to as itself, or forwarded; and email your users - contacts, newsletters, announcements and automations - with one-click unsubscribe and deliverability built in. - [AI](https://thelastapi.dev/docs/ai.md): An OpenAI-compatible gateway to every major lab's models, for chat, embeddings, images, video, speech and transcription, metered per call. - [Files](https://thelastapi.dev/docs/files.md): A drive per project. Every image, video and audio the AI generates is saved there by itself with a permanent link, next to the files your app and agents upload. - [Payments](https://thelastapi.dev/docs/payments.md): Take one-time payments and subscriptions from the first call. thelastapi is the merchant; the owner verifies their identity only to withdraw. - [App Store and Google Play](https://thelastapi.dev/docs/app-store.md): In-app purchases on iOS and Android through your own RevenueCat account, set up from your catalog in one call, with one "is this user premium?" answer across web and the stores. - [Social](https://thelastapi.dev/docs/social.md): Connect the business's own social and ad accounts, publish and schedule posts with media, read analytics, and run ad campaigns, with the owner approving what goes out. - [Phone](https://thelastapi.dev/docs/phone.md): A US phone number for your agent or your business: receive and send texts, place calls that speak a message or are held by a voice agent, and answer incoming calls, paid from credits. - [Company formation](https://thelastapi.dev/docs/company.md): Form a US LLC or C-Corp in any state, with the registered agent, the EIN and the formation documents. Agents draft; the owner files. - [Analytics and replay](https://thelastapi.dev/docs/analytics.md): Cookieless web analytics on by default, server-side events, and session replay with masking. - [Mission Control and health checks](https://thelastapi.dev/docs/mission-control.md): Every business on one board, a row of steps from its domain to its sales, with health from checks that run every hour. - [Search](https://thelastapi.dev/docs/search.md): Every production deploy sends the site's new and changed pages to IndexNow, and with the account's own Google Search Console connected each site is verified, its sitemap submitted and its indexed pages and searches read every day. - [Public profiles](https://thelastapi.dev/docs/profiles.md): A build-in-public page at thelastapi.dev/ with your businesses and the numbers you choose to share. Private until you turn it on. - [Web data: scrape, search, SEO, ads library](https://thelastapi.dev/docs/actions.md): Scrape or crawl a site, search the web, screenshot a page, SEO data (who ranks, keyword volume and ideas, a site's traffic and backlinks, page audits, mentions in AI answers), competitor ads from the Meta Ad Library, Google Maps places and reviews, Instagram and TikTok, product prices and LinkedIn companies - one call each, billed per call, every run kept. - [Design: learn a site's design system](https://thelastapi.dev/docs/design.md): web.design reads a website's design - colors, type scale, radii, spacing, component styles, section layout and screenshots - and hands back a Tailwind v4 theme, a shadcn/ui theme, CSS variables and a brief your agent follows, so the apps it builds look good from the first screen. - [Usage and limits](https://thelastapi.dev/docs/usage.md): What the account used and what it cost, per tool, model, project, key or end user, and how close it is to today's limits. - [Connectors](https://thelastapi.dev/docs/connectors.md): Add any HTTP API to a project from one manifest or an OpenAPI spec; thelastapi keeps its key sealed, puts it in the app's env and proxies calls with approvals. - [Export](https://thelastapi.dev/docs/export.md): Take your app anywhere, or keep a backup: its code, its database as SQL, and a guide to the variables it runs with. ## Agents - [Agents](https://thelastapi.dev/docs/agents.md): Give Claude, ChatGPT, Claude Code, Codex or Cursor the thelastapi tools over MCP, use the CLI, read the docs tool, and install the agent skills. - [CLI](https://thelastapi.dev/docs/cli.md): Every vibiz command, exactly as `vibiz --help` prints it, with the environment variables it reads. - [Agent skills](https://thelastapi.dev/docs/skills.md): Installable SKILL.md bundles that teach Claude Code, Codex and Cursor how to use thelastapi, one per product. - [Console links](https://thelastapi.dev/docs/console-urls.md): Every console page takes its view in the URL, and API results carry console_url, so agents send people straight to the right page. ## Reference - [API reference](https://thelastapi.dev/docs/api.md): Every route of the thelastapi HTTP API, generated from the routes the API registers. - [Errors](https://thelastapi.dev/docs/errors.md): Every error code, its HTTP status, what it means and what to do next. - [@vibiz/app](https://thelastapi.dev/docs/app-sdk.md): The client a running app uses, on one key - env, AI, email, actions, events, payments and webhooks. ## Agent guides - [Payments: how money moves](https://thelastapi.dev/docs/guides/payments.md): Fees, the 7-day hold, who may refund or withdraw, and the agent flow for selling a plan. - [Payments in the app (@vibiz/app)](https://thelastapi.dev/docs/guides/app-payments.md): Checkout, subscription checks and the customer portal from the app's server, with @vibiz/app or plain HTTP. - [Webhooks: thelastapi tells the app when someone pays](https://thelastapi.dev/docs/guides/webhooks.md): Set the webhook URL, verify the Vibiz-Signature on the raw body, dedupe on event id, and test it. - [In-app purchases on iOS and Android](https://thelastapi.dev/docs/guides/app-store.md): Sell in an Expo, React Native or Swift app through the owner's own RevenueCat account, and gate on the server with vibiz.payments.hasActive. - [Company formation: cost and what is needed](https://thelastapi.dev/docs/guides/company.md): What a US LLC or C-Corp costs through thelastapi (in cents), what a draft needs, and who may file. - [Keys and environments](https://thelastapi.dev/docs/guides/keys.md): Full-access, Limited and app keys, what each may do, the development environment, and where the project id is. - [Usage, cost and limits](https://thelastapi.dev/docs/guides/usage.md): What was spent, today's ceilings and when they reset, and how to read the usage breakdown. - [Custom connectors: the user’s own APIs through thelastapi](https://thelastapi.dev/docs/guides/connectors.md): Add any HTTP API from an OpenAPI spec or a short manifest, set its key per environment, and call it through thelastapi with approvals for risky operations. - [Social: posting, approvals and ads](https://thelastapi.dev/docs/guides/social.md): How an agent posts and schedules to the business's own accounts, what the owner approves, per-platform options, and ad changes in the ad account's minor units. - [Console links](https://thelastapi.dev/docs/guides/console-urls.md): Every web console page and the query parameters it takes, so an agent can hand a person a link that opens exactly the right view. ## Agent skills - [vibiz](https://thelastapi.dev/skills/vibiz/SKILL.md): Start here for thelastapi - what it can do (hosting, Postgres, sign-in, email and a business inbox, newsletters, AI models, files, payments, analytics with session replay, web data and design, social, connectors, company formation, domains), which skill covers each, how to log in or connect the MCP server, the one-key model (VIBIZ_APP_KEY), credits and spend limits, and the rules every thelastapi task follows (console links, owner-only steps). Use when starting with thelastapi, when someone asks what thelastapi can do or which service fits, or when no other vibiz-* skill matches. - [vibiz-ai](https://thelastapi.dev/skills/vibiz-ai/SKILL.md): Use AI models through thelastapi - chat with GPT, Claude, Gemini, Kimi, DeepSeek and every major lab's models by id, generate images (Nano Banana, GPT Image) or edit a photo (image_url), make videos (or animate a photo), run any image or video model by its id on credit (Kling, Seedance, Veo, face swap, lip sync, upscalers), text to speech and transcription, from an agent (MCP tools, CLI) or from an app with one key (OpenAI-compatible, new OpenAI(vibiz.ai)) - with per-call prices, the daily spend ceiling, project budgets and the account's own Google or fal key. Use when an app needs an LLM, images, video or voice, when you need to generate or edit an image, a video or audio for a project, when someone asks for a specific image/video model, or someone asks what a model costs or which models they can call. - [vibiz-analytics](https://thelastapi.dev/skills/vibiz-analytics/SKILL.md): Set up and read a thelastapi project's visitor analytics (cookieless pageviews, sources, countries, devices, custom and server-side events) together with session replay (masked recordings of what went wrong for visitors - JS errors, rage and dead clicks, abandoned forms - with insights and private links to watch a session), on thelastapi hosting or any other site. Use when someone wants analytics, to track visits or events, asks how their site is doing, where visitors come from, or what is going wrong for users - and always set up replays along with analytics. - [vibiz-auth](https://thelastapi.dev/skills/vibiz-auth/SKILL.md): Set up and change sign-in for a thelastapi project - email and password, verification, magic links, Google, GitHub or Vercel sign-in, allowed email domains, and the callback URLs to register. Use when a thelastapi project's users need to sign in or its sign-in settings need changing. - [vibiz-broadcasts](https://thelastapi.dev/skills/vibiz-broadcasts/SKILL.md): Email a thelastapi project's users and subscribers - contacts from the app at signup, safe CSV imports, newsletters and announcements (broadcasts) with a review step, and automations such as onboarding sequences and trial reminders - with one-click unsubscribe, sending pace and spam protection built in. Use when a business wants to email its users about its software, send a newsletter or product update, or set up an onboarding or re-engagement sequence. - [vibiz-company](https://thelastapi.dev/skills/vibiz-company/SKILL.md): Form the US company behind a thelastapi project (LLC or C-Corp, any state) - read the fee catalog in cents, quote the total, draft the filing and fix its problems, and hand the real submission to the owner. Use when someone asks what forming an LLC or corporation costs through thelastapi, or wants to incorporate the business behind their app. - [vibiz-connectors](https://thelastapi.dev/skills/vibiz-connectors/SKILL.md): Connect a thelastapi project to any outside HTTP API (a CRM, a weather or shipping API, an internal service) as a custom connector - import its OpenAPI spec or write a short manifest, set its key per environment, and call it through thelastapi with approvals for risky operations. Use when a thelastapi app or agent needs a third-party API that thelastapi doesn't provide itself. - [vibiz-database](https://thelastapi.dev/skills/vibiz-database/SKILL.md): Work with a thelastapi project's Postgres database - get the development DATABASE_URL, run migrations, inspect tables and run read-only queries, without ever touching production rows. Use when a thelastapi project needs schema changes, queries, seed data or a look at its data. - [vibiz-deploy](https://thelastapi.dev/skills/vibiz-deploy/SKILL.md): Create a thelastapi project and deploy it - vibiz init, the development env for local work, deploy to .vibiz.app (a folder, or the files themselves from a chat), edit a live site by reading its code and deploying only the changed files, previews, promote and instant rollback, run the app on another host with one key, or export it (code, database, env guide) to take it elsewhere. Use when an app should go live on thelastapi or a thelastapi project needs a new deployment or a rollback. - [vibiz-design](https://thelastapi.dev/skills/vibiz-design/SKILL.md): Make the UI you build look good from the first screen - learn a website's design system with thelastapi Stack (web.design - colors, type scale, radii, spacing, component styles, section layout, screenshots) and apply its Tailwind v4, shadcn/ui or CSS theme and brief, capture a page section by section (real HTML + CSS and a picture of each) and rebuild from it, or find similar companies to use as inspiration when there is no reference; or, with no reference, follow a short default design checklist. Use when building or redesigning a page, an app's UI, a landing page or a dashboard, when the person names a site they like ("make it look like Linear"), or when they have an existing site or brand the new app should match. - [vibiz-email](https://thelastapi.dev/skills/vibiz-email/SKILL.md): Write emails that look good (a tested HTML template), give a personal agent one email address (name@agent.vibiz.app), or send email from a thelastapi project's own address (@.vibiz.app) - add the email resource, send from the app with @vibiz/app or HTTP, and stay within 50 emails per project per day - run the business's own inbox (hello@theirdomain.com kept in thelastapi; read, reply and send as it, with received mail treated as untrusted) - or forward that address to the owner's own inbox. Use when a thelastapi project needs to send welcome, receipt or notification emails, or the business wants email at its own domain, or asks to check or answer its mail. - [vibiz-files](https://thelastapi.dev/skills/vibiz-files/SKILL.md): Store and find files in a thelastapi project's Files (a drive per project with permanent links) - find an image, video or audio you or the app generated earlier, upload a logo or product photo and get its link, import a file from a URL, private files with signed links, and file uploads from the app with one key. Use when you need a file's permanent URL, want to reuse something generated before, or an app needs to store user uploads, avatars or downloads. - [vibiz-payments](https://thelastapi.dev/skills/vibiz-payments/SKILL.md): Sell with thelastapi payments - take money with no identity check and no Stripe account (thelastapi is the merchant; KYC only when the owner withdraws) or through the owner's own Stripe account, sell in iOS and Android apps (App Store and Google Play in-app purchases through the owner's own RevenueCat account, no thelastapi fee), create a plan, add a checkout or Upgrade button, wire and verify payment webhooks, check subscriptions, and answer questions about fees (2% thelastapi fee plus card processing), the 7-day hold, refunds and withdrawing. Use when a thelastapi project (a vibiz.json in the folder, or the vibiz MCP tools) needs to take money or someone asks what a payment leaves them. - [vibiz-phone](https://thelastapi.dev/skills/vibiz-phone/SKILL.md): Give a personal agent or a thelastapi project a US phone number - search and buy one from credits, receive texts at once, send texts once carriers approve the number, place calls that speak a message and hang up, for instance to phone someone when work is done, or have a voice agent hold a two-way call or answer incoming calls and leave a transcript and summary - with STOP honoured and inbound text and transcripts treated as untrusted. Use when an agent or app should have a phone number, text someone, call someone, make a booking or ask something by phone, or answer calls. - [vibiz-social](https://thelastapi.dev/skills/vibiz-social/SKILL.md): Post and schedule to a thelastapi project's own social accounts (Instagram, TikTok, LinkedIn, X, YouTube, Pinterest, Threads, Facebook, Bluesky…), read post analytics, pause, resume, re-budget or boost ad campaigns, and create Google Ads Search, Display and Performance Max campaigns, with the owner approving anything live. Use when someone wants to publish, schedule, connect a social or ad account, run Google Ads, or check how posts and campaigns perform for the business behind their app. - [vibiz-use-one](https://thelastapi.dev/skills/vibiz-use-one/SKILL.md): Use just one thelastapi service (sign-in, database, payments, email, AI, analytics, replay, files, web data, connectors, social, company) from an app NOT hosted on thelastapi - another host, a plain HTML site, a mobile app's backend, a cron job or a script - creating a project with only that resource, adding the app's domain as running elsewhere, and giving the app its one key. Use when someone wants one thelastapi feature without deploying on thelastapi, or the app already runs somewhere else. - [vibiz-web-data](https://thelastapi.dev/skills/vibiz-web-data/SKILL.md): Get data from the web with thelastapi - scrape a page or crawl a whole site to markdown, search the web or the news, screenshot a page, SEO data (who ranks on Google for a keyword, keyword search volume and CPC, keyword ideas, a site's organic traffic and competitors, backlinks, an on-page SEO audit, how often ChatGPT and Google AI Overviews mention a brand), pull competitor ads from the Facebook / Meta Ad Library, find businesses on Google Maps, read Google or Trustpilot reviews, Instagram and TikTok profiles and hashtag posts, product prices from any shop, and public LinkedIn company pages. Use when someone wants to scrape, crawl, search the web, do SEO or keyword research, check rankings or backlinks, audit a page, track AI search visibility, research competitors or their ads, find leads or places, collect reviews, check product prices, or look at an Instagram/TikTok profile, and the vibiz CLI or MCP tools are available. ## Blog Guides for builders and their agents, each also as markdown (add `.md`). Feed: https://thelastapi.dev/blog/rss.xml. ### AI models - [One API key for GPT, Claude and Gemini: how a unified AI API works](https://thelastapi.dev/blog/one-api-key-gpt-claude-gemini.md): Call GPT, Claude, Gemini, DeepSeek and Kimi with one key and one OpenAI-compatible endpoint: how it works, what it costs and the code to start. - [A pay-as-you-go AI API with no monthly fee](https://thelastapi.dev/blog/pay-as-you-go-ai-api.md): Pay for AI models per token or generation with no monthly subscription fee using thelastapi's prepaid, OpenAI-compatible gateway. - [Add AI features to your SaaS without vendor lock-in](https://thelastapi.dev/blog/ai-features-without-vendor-lock-in.md): Add AI features to your SaaS without lock-in by using an OpenAI-compatible gateway that lets you switch models with an environment variable. - [An AI API with a usage dashboard per model](https://thelastapi.dev/blog/ai-usage-dashboard-per-model.md): Track token spend and request volume per model across multiple AI labs in one unified dashboard, CLI tool, and metered API with thelastapi. - [An embeddings API for RAG: one key, two vector sizes](https://thelastapi.dev/blog/embeddings-api-for-rag.md): Generate vector embeddings for RAG with an OpenAI-compatible API, choosing between 1536 and 3072 dimensions under one unified key. - [An OpenAI-compatible endpoint for DeepSeek and Qwen](https://thelastapi.dev/blog/openai-compatible-deepseek-qwen.md): Use an OpenAI-compatible endpoint at /v1/ai to run DeepSeek and Qwen models with standard OpenAI SDKs, exact model routing, and per-call costs. - [Call Claude and Gemini from the OpenAI Node.js SDK](https://thelastapi.dev/blog/claude-gemini-openai-node-sdk.md): Point the OpenAI Node.js SDK to thelastapi's gateway to call Claude and Gemini using standard chat completions, streaming, and tool calls. - [Change the base URL to call other AI models from OpenAI code](https://thelastapi.dev/blog/change-base-url-other-ai-models.md): Change your OpenAI client base URL to point at an OpenAI-compatible gateway to call Claude, Gemini, and DeepSeek without rewriting code. - [curl examples: chat completions with different models](https://thelastapi.dev/blog/curl-chat-completions-different-models.md): Send chat completions to GPT, Claude, Gemini, and DeepSeek using curl by swapping the model parameter on one OpenAI-compatible endpoint. - [Do AI API gateways log your prompts? Questions to ask first](https://thelastapi.dev/blog/do-ai-gateways-log-prompts.md): LLM API aggregators record operational metrics for billing, but whether they store raw prompt text depends on their logging design and settings. - [Do you need separate accounts for OpenAI, Anthropic and Google?](https://thelastapi.dev/blog/separate-accounts-openai-anthropic-google.md): No: an OpenAI-compatible gateway lets you call OpenAI, Anthropic, Google and over 400 models with one account, one key and unified billing. - [Function calling across GPT, Claude and Gemini with one API](https://thelastapi.dev/blog/function-calling-multiple-models.md): Run function calling across GPT, Claude, and Gemini with one OpenAI-compatible endpoint, a single tools schema, and unified cost tracking. - [GPT vs Claude vs Gemini API pricing per million tokens](https://thelastapi.dev/blog/gpt-claude-gemini-api-pricing.md): Compare GPT, Claude, and Gemini API token pricing per million tokens across fast, balanced, reasoning, and flagship model tiers. - [How much does it cost to add GPT to a SaaS app?](https://thelastapi.dev/blog/cost-to-add-gpt-to-saas.md): Adding GPT to a SaaS app costs $0.10 to $0.50 per million tokens for standard chat, with prepaid credits and safety caps starting at $5 per day. - [How to access multiple AI models with a single API](https://thelastapi.dev/blog/access-multiple-ai-models-single-api.md): Access GPT, Claude, Gemini, DeepSeek, and 400+ AI models using a single OpenAI-compatible API key and base URL with thelastapi. - [How to choose a multi-model API in 2026: a checklist](https://thelastapi.dev/blog/choosing-a-multi-model-api.md): A checklist for choosing a unified LLM API in 2026: exact model routing, OpenAI compatibility, transparent per-call billing, and hard spend caps. - [How to cut your LLM API bill: tiers, max_tokens and budgets](https://thelastapi.dev/blog/cut-llm-api-bill.md): Cut your LLM API bill in half by routing routine tasks to cheaper model tiers, restricting max_tokens, and setting project and user spend caps. - [How to handle rate limits on LLM APIs](https://thelastapi.dev/blog/handle-llm-rate-limits.md): Avoid Claude API rate limit errors by handling Retry-After headers, managing token throughput, and configuring daily spending limits. - [How to set spending limits across AI providers](https://thelastapi.dev/blog/spending-limits-ai-providers.md): Set spending limits across AI providers by routing calls through one gateway with account safety caps, project daily budgets, and per-user limits. - [How to use Claude with the OpenAI Python SDK](https://thelastapi.dev/blog/claude-with-openai-python-sdk.md): Call Claude models with the OpenAI Python SDK by routing requests through thelastapi gateway at /v1/ai with your project or account API key. - [JSON mode and structured output with any model](https://thelastapi.dev/blog/json-mode-structured-output-any-model.md): Use JSON mode and structured output across OpenAI, Claude, Gemini, and DeepSeek via thelastapi's unified, OpenAI-compatible AI gateway. - [Kimi API access: call Moonshot AI models with an OpenAI client](https://thelastapi.dev/blog/kimi-api-access.md): Call Moonshot AI's Kimi models through an OpenAI-compatible gateway at /v1/ai using model ids like moonshotai/kimi-k3.1-pro with one key. - [LangChain with a multi-model OpenAI-compatible gateway](https://thelastapi.dev/blog/langchain-multi-model-gateway.md): Connect LangChain to multiple AI models using an OpenAI-compatible gateway with a single base URL, one API key, and zero model swapping. - [LLM API errors explained: 429, 503 and context length](https://thelastapi.dev/blog/llm-api-errors-429-503.md): An LLM API 429 error means you exceeded a request, token, or budget limit; inspect the error details and Retry-After header to fix it. - [OpenAI-compatible API for Claude and Gemini: change one base URL](https://thelastapi.dev/blog/openai-compatible-api-claude-gemini.md): Point your OpenAI client to https://thelastapi.dev/v1/ai to run Claude and Gemini models alongside GPT using one base URL and a single API key. - [Per-user AI budgets: stop one user from burning your AI bill](https://thelastapi.dev/blog/per-user-ai-budgets.md): Set per-user daily AI budgets with thelastapi by tagging requests with your user ID and configuring end_user_daily_budget_usd on your project. - [Self-hosted LiteLLM vs a hosted LLM gateway for a small team](https://thelastapi.dev/blog/litellm-vs-hosted-llm-gateway.md): A self-hosted proxy like LiteLLM offers internal infrastructure control, while a hosted gateway eliminates multi-vendor keys, ops, and billing chores. - [Streaming chat completions with server-sent events through one API](https://thelastapi.dev/blog/streaming-chat-completions-sse.md): Stream chat completions from GPT, Claude, Gemini, and DeepSeek via standard Server-Sent Events through one unified OpenAI-compatible endpoint. - [The cheapest LLM API for a student or school project](https://thelastapi.dev/blog/cheapest-llm-api-student-project.md): For a student project, the cheapest LLMs are vibiz/fast and vibiz/smart-mini at $0.10 per million input tokens, with built-in daily spending caps. - [The cheapest way to use GPT and Claude through an API](https://thelastapi.dev/blog/cheapest-way-gpt-claude-api.md): Use GPT and Claude for less: pick the cheapest tier that does the job, cap max_tokens and budgets, and see the exact cost of every call. - [The simplest way to switch between LLM providers in code](https://thelastapi.dev/blog/switch-llm-providers-in-code.md): Switch between LLM providers in code by pointing the OpenAI SDK to an OpenAI-compatible gateway and changing only the model string. - [Track AI API spend per client, project and end user](https://thelastapi.dev/blog/track-ai-spend-per-client.md): Track AI API spend per client, project and end user by attaching user identifiers, routing through scoped keys and querying grouped usage data. - [Use @ai-sdk/openai with Claude, Gemini and more](https://thelastapi.dev/blog/ai-sdk-openai-provider-any-model.md): Point @ai-sdk/openai to an OpenAI-compatible gateway to run Claude, Gemini, and DeepSeek models through standard AI SDK functions with one key. - [Use GPT and Claude in n8n with one API key](https://thelastapi.dev/blog/n8n-gpt-claude-one-key.md): Route GPT and Claude in n8n through a single OpenAI-compatible base URL and API key, keeping one balance and switching models per node. - [Use OpenAI directly or a model gateway? A practical comparison](https://thelastapi.dev/blog/openai-direct-vs-model-gateway.md): Compare calling OpenAI directly against using a multi-model gateway: evaluate SDK compatibility, billing overhead, model selection, and fallback risks. - [Use your own Gemini API key or Google Cloud credits through a gateway](https://thelastapi.dev/blog/use-your-own-gemini-key.md): Use your Google Cloud credits or Gemini API key through an OpenAI-compatible gateway without changing your codebase or risking surprise fallbacks. - [What is an AI API aggregator, and when do you need one?](https://thelastapi.dev/blog/what-is-an-ai-api-aggregator.md): An AI API aggregator routes requests to multiple AI model providers through one unified endpoint, single API key, and consolidated billing account. - [Which LLM is the best value for money in 2026?](https://thelastapi.dev/blog/best-value-llm-2026.md): GPT-6 Luna and Claude Haiku 5.5 offer the best value for general tasks at $0.10 per million input and $0.50 per million output tokens. - [Which model is cheapest for a customer support chatbot?](https://thelastapi.dev/blog/cheapest-model-support-chatbot.md): For a customer support chatbot, vibiz/fast (GPT-6 Luna) and vibiz/smart-mini (Claude Haiku 5.5) are cheapest at $0.10 per million input tokens. - [Why your AI gateway should never swap models silently](https://thelastapi.dev/blog/no-silent-model-fallback.md): Automatic failover in an LLM API gateway should never silently swap models because output drift, broken tool calls, and unexpected costs break production. ### Images, video and voice - [One API for image, video and voice AI models](https://thelastapi.dev/blog/one-api-image-video-voice-models.md): Generate images, render 720p video clips, synthesize speech, and transcribe audio using one API key and OpenAI-compatible routes. - [A speech-to-text API for 99 languages](https://thelastapi.dev/blog/speech-to-text-api-99-languages.md): Transcribe 99 languages and generate spoken audio using one OpenAI-compatible endpoint, a single API key, and shared billing with thelastapi. - [A text-to-speech API: voices, formats and price per 1,000 characters](https://thelastapi.dev/blog/text-to-speech-api-pricing.md): Text-to-speech costs $0.04 per 1,000 characters with vibiz/voice and vibiz/voice-lite, featuring nine voices, streamed MP3/PCM, and auto file saves. - [A text-to-video API: a six-second clip from a prompt](https://thelastapi.dev/blog/text-to-video-api.md): Add AI video generation to your app with one API key using asynchronous jobs, generating 6-second clips with sound for $0.54 per render. - [A vertical 9:16 video API for Shorts, Reels and TikTok](https://thelastapi.dev/blog/vertical-video-api-shorts-reels.md): Generate vertical 9:16 AI videos for Shorts, Reels, and TikTok using thelastapi jobs endpoint or the CLI, with permanent storage included. - [An AI photo editing API that starts from your photo](https://thelastapi.dev/blog/ai-photo-editing-api-reference-image.md): Pass reference photos directly to image models via an OpenAI-compatible API to edit backgrounds, face features, or combine multiple images on one key. - [An image generation API for developers: Nano Banana and GPT Image on one key](https://thelastapi.dev/blog/image-generation-api-developers.md): Generate and edit images using Nano Banana and GPT Image on one OpenAI-compatible key with built-in asset storage and exact per-call pricing. - [An image-to-video API to animate a product photo](https://thelastapi.dev/blog/image-to-video-api-product-animation.md): Submit a product photo to an image-to-video job API to render smooth 720p promotional clips with permanent file storage on a single API key. - [Call Kling, Seedance and Veo by model id through one API](https://thelastapi.dev/blog/kling-seedance-veo-one-api.md): Call Kling, Seedance, Veo and other video generation models through one API and CLI, with per-call metering and permanent asset storage. - [Combine a person and a product in one image with an API](https://thelastapi.dev/blog/combine-person-and-product-image-api.md): Combine a person and a product using the AI image API by passing both photo URLs to POST /v1/ai/images/generations with image_urls and an edit prompt. - [Consistent characters with an image API](https://thelastapi.dev/blog/consistent-characters-image-api.md): Generate consistent characters with an image API by passing reference image URLs alongside your prompt to preserve facial features and style across scenes. - [Face swap, upscaling and background removal by model id](https://thelastapi.dev/blog/face-swap-upscale-api-by-model-id.md): Run face swap, upscaling, and background removal models by model id through one OpenAI-compatible endpoint with permanent image hosting built in. - [Generate product photos for an online store with an API](https://thelastapi.dev/blog/ai-product-photos-api-ecommerce.md): Generate AI product photos and studio backdrops with an API using thelastapi, the OpenAI SDK, and permanent image hosting in project Files. - [GPT Image vs Nano Banana: cost per image and when to use which](https://thelastapi.dev/blog/gpt-image-vs-nano-banana-cost.md): Nano Banana 2.1 costs about $0.034 per image while GPT-5.4 Image 2 costs about $0.04. Compare pricing, text rendering, and image editing features. - [How much does AI video generation cost per clip via API?](https://thelastapi.dev/blog/ai-video-api-cost-per-clip.md): AI video generation via API costs $0.54 per 6-second clip ($0.09 per second) for vibiz/video, with other models billed at live rates per second. - [How to use Nano Banana with an API key](https://thelastapi.dev/blog/nano-banana-api-key.md): You can use Nano Banana with a single API key by calling the OpenAI-compatible image endpoint at /v1/ai/images/generations or using the CLI. - [Script, voice and video: an automated short-video pipeline with one API](https://thelastapi.dev/blog/script-voice-video-pipeline.md): Build an automated short-video pipeline generating scripts, voiceovers, and 9:16 clips using one API key, one SDK, and permanent file storage. - [Where to keep AI-generated images, with permanent links](https://thelastapi.dev/blog/store-ai-generated-images-permanent-links.md): Store AI-generated images with permanent links by generating them under a project on thelastapi, where files save automatically to Files. ### Built for agents - [One API key for an AI agent: hosting, database, email, payments and models](https://thelastapi.dev/blog/one-api-key-for-ai-agent.md): Give your AI agent one API key to manage hosting, database, email, payments, and AI models with built-in permission safeguards. - [Agent skills (SKILL.md) for Claude Code, Codex and Cursor](https://thelastapi.dev/blog/agent-skills-skill-md.md): Agent skills use SKILL.md files to teach Claude Code, Codex, and Cursor project workflows, installed globally or per project with the CLI. - [Agent-friendly APIs: errors that say what to do next](https://thelastapi.dev/blog/agent-friendly-api-errors.md): API error design for AI agents requires machine-readable reason codes, explicit missing permissions, and actionable next steps in every response. - [Can you use Claude Code with other models? What a gateway can and cannot do](https://thelastapi.dev/blog/claude-code-other-models.md): Claude Code runs on Claude, but an API gateway lets it run other models and third-party APIs through MCP tools without handling raw secret keys. - [Connect a remote MCP server to Claude, ChatGPT, Cursor and Codex](https://thelastapi.dev/blog/connect-remote-mcp-server.md): Connect the remote MCP server to Claude, ChatGPT, Cursor, and Codex over HTTP with OAuth to build, deploy, and manage apps with nothing installed. - [Deploy a website from Claude or ChatGPT with nothing installed](https://thelastapi.dev/blog/deploy-website-from-claude-chatgpt.md): Deploy a website directly from ChatGPT with nothing installed by connecting the remote MCP connector and asking ChatGPT to build and publish it. - [Full access vs Limited API keys for AI agents](https://thelastapi.dev/blog/full-access-vs-limited-agent-keys.md): API keys for AI agents should use Limited access to let models build, test, and deploy without risking production secrets or live money. - [Generate images and video from Claude Code](https://thelastapi.dev/blog/ai-video-from-claude-code.md): Use AI video and image models directly from Claude Code by connecting the thelastapi MCP server or using the CLI to generate and store assets. - [Give an agent web research tools: search, scrape and crawl](https://thelastapi.dev/blog/agent-web-research-tools.md): Give your AI agent web search, page scraping, and site crawling with one key using thelastapi via the CLI, Model Context Protocol, or HTTP. - [How to stop an AI agent from overspending](https://thelastapi.dev/blog/stop-ai-agent-overspending.md): Stop AI agents from overspending by enforcing daily account caps, per-project AI budgets, and Limited API keys that block unapproved live spending. - [Let an AI agent build and deploy a full-stack app](https://thelastapi.dev/blog/agent-build-deploy-full-stack-app.md): Give an AI agent access to thelastapi via MCP or CLI to let it provision hosting, database, sign-in, and deploy a full-stack app safely. - [llms.txt: making your docs readable by AI agents](https://thelastapi.dev/blog/llms-txt-docs-for-agents.md): An llms.txt file provides clean markdown documentation for AI agents, cutting context bloat and helping coding tools inspect your APIs accurately. - [Owner approvals: a human in the loop for agents that post, spend and file](https://thelastapi.dev/blog/human-in-the-loop-agent-approvals.md): Human-in-the-loop approvals keep AI agents productive while preventing accidental live charges, unauthorized filings, and unwanted public posts. - [Should an AI agent hold production secrets?](https://thelastapi.dev/blog/should-ai-agents-hold-production-secrets.md): AI agents should never hold production secrets. Use limited keys, isolated dev environments, and out-of-band secret links to keep live systems safe. - [The vibiz CLI cheat sheet: every command you will use in week one](https://thelastapi.dev/blog/vibiz-cli-cheat-sheet.md): A complete cheat sheet of every vibiz CLI command you need in week one to authenticate, configure environments, manage databases, and deploy. - [Use GPT and Claude in Cursor or Cline with one key](https://thelastapi.dev/blog/one-key-cursor-cline-models.md): Use GPT and Claude in Cursor, Cline, or Roo Code with one key by routing custom OpenAI requests through thelastapi gateway at thelastapi.dev/v1/ai. - [What is MCP, and how do you give Claude Code real tools?](https://thelastapi.dev/blog/what-is-mcp-claude-code-tools.md): MCP connects Claude Code to external tools; with thelastapi, run one command to give it hosting, databases, email, payments, and AI APIs. - [Which LLM API is best for agentic tool use?](https://thelastapi.dev/blog/best-api-for-agentic-tool-use.md): For agentic tool use, Claude Sonnet 5.5 handles complex multi-step workflows while GPT-6 Luna offers fast, low-cost execution with structured JSON. ### Hosting and deploys - [The cheapest way to host a website and database for a side project](https://thelastapi.dev/blog/cheapest-hosting-database-side-project.md): The cheapest way to host a side project website and database is with thelastapi, where hosting is $0 today and Postgres provisions in one command. - [A public live page for building in public](https://thelastapi.dev/blog/public-live-page-build-in-public.md): Turn on a public live page to share verified visitor counts, deploy history, and sales activity while keeping revenues and secrets private. - [Add a custom domain with automatic HTTPS](https://thelastapi.dev/blog/custom-domain-automatic-https.md): Add a custom domain with automatic HTTPS to your thelastapi project using `vibiz domains add` or the API, configure DNS, and SSL provisions itself. - [Deploy a Next.js app with a database and sign-in in one command](https://thelastapi.dev/blog/deploy-nextjs-app-database-sign-in.md): Deploy a Next.js app with a database and sign-in in one command using vibiz deploy, with serverless Postgres and auth provisioned automatically. - [Deploy a static site with one command](https://thelastapi.dev/blog/deploy-static-site-one-command.md): Deploy a static site from your terminal in seconds with the vibiz deploy command, automatic HTTPS, preview builds, and instant rollbacks. - [Deploy from CI with one command and one key](https://thelastapi.dev/blog/deploy-from-ci.md): Deploy to production from GitHub Actions using one secret key and the vibiz deploy command, with automatic content hashing and built-in rollbacks. - [Edit a live site by deploying only what changed](https://thelastapi.dev/blog/edit-live-site-deploy-changed-files.md): Deploy only the files that changed using thelastapi's content-hashed hosting, terminal CLI, MCP agent tools, or direct HTTP API calls. - [Every project gets its own web address on day one](https://thelastapi.dev/blog/project-address-vibiz-app.md): Every project gets a free https://.vibiz.app address on day one with HTTPS included, active for as long as the project exists. - [Export your app and leave any time: code, database and env](https://thelastapi.dev/blog/export-app-code-database-env.md): Export app code, a Postgres database snapshot, and environment variables anytime with the vibiz CLI or API to keep backups or migrate hosts. - [Host a landing page that ChatGPT or Claude wrote](https://thelastapi.dev/blog/host-landing-page-made-by-ai.md): Host a website generated by ChatGPT or Claude using the thelastapi connector or CLI, with free vibiz.app subdomains, rollback, and custom domains. - [Know when your site goes down, a deploy fails or sales stop](https://thelastapi.dev/blog/know-when-your-site-goes-down.md): Automate website uptime and health checks across hosting, deploys, traffic, and payments using thelastapi's built-in Mission Control. - [Preview deployments and instant rollback, explained](https://thelastapi.dev/blog/preview-deployments-instant-rollback.md): Preview deployments build your site at an isolated URL to test changes safely, while instant rollbacks switch traffic back to a previous live version. - [Run your app on another host with one key](https://thelastapi.dev/blog/run-app-on-another-host-one-key.md): Use thelastapi backend services from any external server, container, or platform by passing a single environment variable: VIBIZ_APP_KEY. - [Version history for your website: see what changed and roll back](https://thelastapi.dev/blog/website-version-history.md): See your website deployment history, view file diffs, and roll back instantly to any past version using the CLI, console, or API. ### Postgres database - [Serverless Postgres for side projects: one database per project](https://thelastapi.dev/blog/postgres-database-per-project.md): Provision an isolated serverless Postgres database per project with a development branch and plain DATABASE_URL support across any host. - [A development database branch agents cannot break](https://thelastapi.dev/blog/development-database-branch-agents.md): A development database branch gives your tools and agents an isolated Postgres copy with your production schema, migration ledgers, and zero live rows. - [Back up your Postgres database as SQL](https://thelastapi.dev/blog/backup-postgres-as-sql.md): Run vibiz export --db to export your entire Postgres database as a compressed SQL snapshot ready for psql or save tables to CSV. - [Export Postgres tables to CSV](https://thelastapi.dev/blog/export-postgres-tables-csv.md): Export your Postgres database tables to CSV files using the vibiz CLI or API, with automatic table bundling, headers, and environment controls. - [Get a Postgres DATABASE_URL in one command](https://thelastapi.dev/blog/get-database-url-one-command.md): Run vibiz dev to get a working Postgres DATABASE_URL written directly to .env.development.local with your schema ready for migrations. - [Inspect tables and run read-only SQL from the CLI](https://thelastapi.dev/blog/read-only-sql-queries-cli.md): Run read-only SQL queries and inspect Postgres tables directly from the command line using the read view API or a local database branch. - [Postgres vs Firebase for a new app](https://thelastapi.dev/blog/postgres-vs-firebase-new-app.md): Choose Postgres for relational data, standard SQL queries, and zero lock-in; choose Firebase for quick document storage with built-in client SDKs. - [Run database migrations safely with an AI agent](https://thelastapi.dev/blog/database-migrations-with-ai-agent.md): Run safe database migrations with an AI agent by using isolated development branches with schema-only clones and scoped Limited API keys. - [Seed data in a development branch, not in production](https://thelastapi.dev/blog/seed-data-development-branch.md): Seed development databases safely using an isolated branch with empty tables, keeping test fixtures away from production rows. - [Use a managed Postgres database from an app hosted anywhere](https://thelastapi.dev/blog/postgres-from-any-host.md): You can run a managed Postgres database on thelastapi and connect to it from any server, container, or platform using a standard DATABASE_URL. - [Use Postgres from Next.js with Drizzle or Prisma](https://thelastapi.dev/blog/postgres-nextjs-drizzle-prisma.md): Connect Next.js to Postgres with Drizzle or Prisma using DATABASE_URL from thelastapi, complete with isolated dev branches for safe migrations. - [Why agents should never touch production rows](https://thelastapi.dev/blog/agents-never-touch-production-rows.md): AI agents should never touch production database rows to prevent privacy breaches, accidental data destruction, and unrecoverable user state changes. ### Sign-in - [How to add sign-in to a Next.js app](https://thelastapi.dev/blog/add-sign-in-nextjs-app.md): Add sign-in to a Next.js app with one command using thelastapi to manage user sessions, email auth, and Google or GitHub logins. - [Add GitHub sign-in to your app](https://thelastapi.dev/blog/add-github-sign-in.md): Learn how to add GitHub sign-in to your application using thelastapi, from configuring your GitHub OAuth app to handling sessions in code. - [Add Google sign-in to your app without your own OAuth app](https://thelastapi.dev/blog/add-google-sign-in.md): Add Google sign-in to your app with a single command using shared credentials on thelastapi, skipping Google Cloud console setup entirely. - [Add sign-in to an app hosted anywhere](https://thelastapi.dev/blog/sign-in-app-hosted-anywhere.md): Add authentication to an app hosted anywhere by creating an auth resource, registering your domain with --elsewhere, and loading env vars via one key. - [Auth for side projects: build it or use a service?](https://thelastapi.dev/blog/auth-build-vs-buy-side-project.md): For a side project, using an authentication service is almost always better than building auth yourself from scratch. - [Email and password sign-in with verification codes](https://thelastapi.dev/blog/email-password-sign-in-verification.md): Enable email and password sign-in with one-time verification codes using thelastapi auth settings, shared email delivery, or custom SMTP. - [Magic link sign-in without building it yourself](https://thelastapi.dev/blog/magic-link-sign-in.md): Implement magic link authentication with a managed sign-in service, configurable link lifetimes, and automated session cookies without building auth code. - [OAuth callback URLs explained](https://thelastapi.dev/blog/oauth-callback-urls-explained.md): An OAuth callback URL is the endpoint in your application where an identity provider redirects users with an authorization code after they sign in. - [Restrict sign-up to your company's email domain](https://thelastapi.dev/blog/restrict-sign-up-email-domain.md): Restrict sign-up to your company's email domain by setting allowed_email_domains with the CLI or API to block unauthorized user registrations. - [See who signed up: your users, without a production query](https://thelastapi.dev/blog/see-who-signed-up.md): List the users of your app on thelastapi by reading your project database with a read-only key or exporting your data, without risking production writes. - [Separate development and production sign-in](https://thelastapi.dev/blog/separate-dev-production-sign-in.md): Separate development and production sign-in by isolating user tables, session cookies, and allowed origins across distinct environments. - [Use your own OAuth app for Google sign-in](https://thelastapi.dev/blog/own-oauth-app-google-sign-in.md): Use your own Google OAuth client ID and secret in thelastapi to show your company's name and branding on the Google sign-in consent screen. ### Payments - [Take payments online without opening a merchant account](https://thelastapi.dev/blog/take-payments-without-merchant-account.md): Take card payments online immediately using thelastapi as the merchant, with no merchant account setup, processor keys, or upfront identity checks. - [A customer portal where users cancel or change their card](https://thelastapi.dev/blog/customer-portal-cancel-change-card.md): Generate a hosted billing portal URL with vibiz.payments.portal(userId, { return_url }) to let subscribers update their card or cancel anytime. - [Add a subscription checkout to a SaaS](https://thelastapi.dev/blog/subscription-checkout-saas.md): Add recurring subscription checkout to your SaaS using @vibiz/app or direct API calls with hosted checkout links, webhooks, and billing portals. - [An Upgrade button and an "is this user premium?" check](https://thelastapi.dev/blog/upgrade-button-is-user-premium.md): Check if a user has an active subscription with a single server-side call to vibiz.payments.hasActive, using your user ID and plan lookup key. - [In-app purchases for iOS and Android apps, with one premium check](https://thelastapi.dev/blog/in-app-purchases-ios-android.md): Connect iOS and Android in-app purchases to thelastapi to check user premium status with a single backend call across mobile and the web. - [Let an AI agent set up payments safely](https://thelastapi.dev/blog/ai-agent-set-up-payments-safely.md): AI agents can create products, checkouts, and webhooks safely because live money moves, refunds, and withdrawals are locked behind owner permissions. - [Merchant of record vs payment processor for a small SaaS](https://thelastapi.dev/blog/merchant-of-record-vs-processor.md): A merchant of record acts as the legal seller for your software, while a payment processor simply routes card charges through your own company entity. - [Payment fees explained: what a $100 sale leaves you](https://thelastapi.dev/blog/payment-fees-100-sale.md): A $100 sale leaves you with $94.80 after a $3.20 card processing fee and a $2.00 platform fee, with zero fees when withdrawing to your bank. - [Payouts: the 7-day hold and withdrawing to your bank](https://thelastapi.dev/blog/payouts-hold-withdraw.md): Live payments clear after a 7-day hold, moving from pending to available balance so you can withdraw to your bank account without payout fees. - [Put your brand on the checkout page](https://thelastapi.dev/blog/brand-your-checkout-page.md): Customize your checkout page branding with your own logo, brand colors, fonts, and border styles using the thelastapi payments API or CLI. - [Refunds and disputes: how they work and what they cost](https://thelastapi.dev/blog/refunds-disputes-explained.md): Refunds return purchase amounts while forfeiting processing fees, whereas disputes deduct the charge plus a $15 fee while the bank investigates. - [Sell a one-time product with a hosted checkout link](https://thelastapi.dev/blog/sell-one-time-product-checkout-link.md): Generate a hosted checkout link for a one-time digital product using the CLI, an API call, or the SDK, with no merchant account setup required. - [Sell from a static site with a checkout link](https://thelastapi.dev/blog/sell-from-static-site.md): To accept payments on a static website, call the checkout API from a backend route to generate a single-use hosted checkout link and redirect the buyer. - [Sell in multiple currencies](https://thelastapi.dev/blog/sell-in-multiple-currencies.md): Accept payments in 35 currencies using thelastapi by defining localized prices or checkouts that settle directly into your project USD balance. - [Test payments in development without real money](https://thelastapi.dev/blog/test-payments-development-mode.md): Test card payments in development using test card numbers, simulated charges, and instant webhooks without real money or bank accounts. - [Verify payment webhooks safely](https://thelastapi.dev/blog/verify-payment-webhooks.md): To verify a payment webhook signature safely, compute an HMAC-SHA256 hash of the timestamp and raw body, comparing it with timing-safe equality. ### Email - [Send transactional email from your app without touching DNS](https://thelastapi.dev/blog/send-transactional-email-no-dns.md): Send transactional email from your app instantly using a verified project address, with DKIM, SPF, and DMARC aligned and zero DNS setup required. - [A business inbox at your own domain: hello@yourcompany.com](https://thelastapi.dev/blog/business-inbox-own-domain.md): Set up a real business inbox at your own domain to receive, read, and reply as hello@yourcompany.com using the console, CLI, or an AI agent. - [A newsletter tool for a small business: contacts, lists and broadcasts](https://thelastapi.dev/blog/newsletter-tool-small-business.md): thelastapi provides a small business newsletter tool with contact management, segmentation, and broadcasts for $0.001 per email. - [Add a newsletter signup form to any site](https://thelastapi.dev/blog/newsletter-signup-form-any-site.md): Add a newsletter signup form to any website using a plain HTML snippet, a CORS-enabled JSON endpoint, or the server-side SDK. - [DKIM, SPF and DMARC: email deliverability basics, done for you](https://thelastapi.dev/blog/dkim-spf-dmarc-deliverability.md): SPF, DKIM, and DMARC are three DNS-based email authentication records that prove your messages are genuine and keep them out of the spam folder. - [Double opt-in and unsubscribe links: newsletter compliance basics](https://thelastapi.dev/blog/double-opt-in-unsubscribe.md): Double opt-in confirms email subscribers with a verification link, while compliant unsubscribe links ensure recipients can leave in one click. - [Email automations: a welcome series triggered by events](https://thelastapi.dev/blog/email-automation-welcome-series.md): Build an automated welcome email series triggered by user events, branch on user engagement, and manage delivery without third-party email tools. - [Email sending limits explained: 50 a day per project, and why](https://thelastapi.dev/blog/email-sending-limits.md): thelastapi caps transactional email at 50 sends per project per UTC day to protect sender reputation, resetting daily with options for larger volume. - [Forward hello@yourdomain.com to the inbox you already use](https://thelastapi.dev/blog/forward-domain-email-to-gmail.md): Forward domain email like hello@yourdomain.com directly to Gmail using thelastapi forwarding rules, DNS verification, and zero extra subscriptions. - [Give an AI agent its own email address](https://thelastapi.dev/blog/ai-agent-email-address.md): Give an AI agent its own email address to send and receive messages using a single CLI command, custom domain mailboxes, or REST endpoints. - [Import a newsletter list from CSV, safely](https://thelastapi.dev/blog/import-newsletter-list-csv.md): Import email lists safely by running a dry run first, filtering dead domains and syntax errors, and importing only opted-in contacts. - [Let an AI agent read and answer support email safely](https://thelastapi.dev/blog/agent-reads-replies-support-email.md): Connect an AI agent to a support mailbox safely using scoped permissions, prompt injection safeguards, idempotency keys, and strict send caps. - [Marketing vs transactional email: which tool sends what](https://thelastapi.dev/blog/marketing-vs-transactional-email.md): Transactional email delivers 1:1 action receipts; marketing email delivers 1:many broadcasts, requiring separate domains to protect deliverability. - [Send a welcome email from a Next.js app](https://thelastapi.dev/blog/welcome-email-nextjs.md): Send a welcome email from Next.js using the @vibiz/app SDK and one server-side API call, with aligned DKIM, SPF, and DMARC out of the box. ### Web data and SEO - [Scrape a website to markdown with one API call](https://thelastapi.dev/blog/scrape-website-to-markdown-api.md): Scrape any web page to clean markdown using the vibiz CLI or a single POST call to /v1/actions/web.scrape with your unified thelastapi key. - [A backlink checker API: who links to a site](https://thelastapi.dev/blog/backlink-checker-api.md): Query backlinks for any domain or URL with a single API call, returning referring domains, link metrics, anchors, and dofollow status. - [A keyword research API: search volume, CPC and competition](https://thelastapi.dev/blog/keyword-research-api-volume-cpc.md): Query Google search volume, CPC, and competition for up to 1,000 keywords per call using thelastapi's keyword research API and CLI. - [A web search API for AI agents and apps](https://thelastapi.dev/blog/web-search-api-ai-agents.md): Give AI agents and LLMs real-time web search with one API call, structured JSON outputs, recency filters, and per-call cost tracking. - [An on-page SEO audit from one API call](https://thelastapi.dev/blog/on-page-seo-audit-api.md): Run an on-page SEO audit for any URL with a single API call to inspect metadata, page speed, word count, link structure, and prioritized issues. - [Check a competitor's organic traffic and top keywords](https://thelastapi.dev/blog/competitor-organic-traffic.md): Check any competitor's organic traffic estimate, ranking keywords, and top organic rivals with one API call or CLI command using seo.domain. - [Collect Google Maps and Trustpilot reviews with an API](https://thelastapi.dev/blog/google-trustpilot-reviews-api.md): Collect reviews from Google Maps or Trustpilot with one API call using thelastapi's unified reviews action via HTTP, SDK, or the vibiz CLI. - [Crawl a whole site to markdown for RAG](https://thelastapi.dev/blog/crawl-site-markdown-rag.md): Crawl a website to clean markdown for RAG using thelastapi web.crawl action, with path filtering and character limits in one API call. - [Find businesses on Google Maps with an API](https://thelastapi.dev/blog/google-maps-businesses-api-leads.md): Find Google Maps business data with the places.search API. Extract names, addresses, phone numbers, websites, ratings, and hours in structured JSON. - [Get new pages indexed faster with IndexNow](https://thelastapi.dev/blog/indexnow-get-pages-indexed-faster.md): IndexNow instantly notifies search engines when pages are added or updated, and thelastapi triggers it automatically after every production deploy. - [Instagram and TikTok profile and hashtag data with an API](https://thelastapi.dev/blog/instagram-tiktok-profile-data-api.md): Fetch Instagram and TikTok profiles, follower counts, and hashtag posts using the thelastapi social actions with a single API call or CLI command. - [Keep every scrape: run history for web data calls](https://thelastapi.dev/blog/web-data-run-history.md): Every web data call automatically saves its input, output, duration, and cost to a searchable run history available via CLI, API, and console. - [Keyword ideas with volume and difficulty from one call](https://thelastapi.dev/blog/keyword-ideas-api.md): Generate keyword ideas with monthly search volume, CPC, competition, and difficulty in one API call using the seo.keyword_ideas action. - [Public LinkedIn company page data with an API](https://thelastapi.dev/blog/linkedin-company-page-data.md): Fetch structured public LinkedIn company data like employee counts, industry, headquarters, and followers with one API call using thelastapi. - [Screenshot a web page with an API](https://thelastapi.dev/blog/screenshot-webpage-api.md): Capture full-page or viewport website screenshots using a single API call, CLI command, or SDK method that returns clean PNG image URLs. - [See competitors' Facebook and Instagram ads from the Meta Ad Library](https://thelastapi.dev/blog/competitor-facebook-instagram-ads.md): Query the public Meta Ad Library using thelastapi's unified API or CLI to inspect competitor ad copy, creative, dates, and active platforms. - [Track how often ChatGPT and Google AI Overviews mention your brand](https://thelastapi.dev/blog/track-chatgpt-ai-overviews-mentions.md): Track brand and domain mentions across ChatGPT and Google AI Overviews using the vibiz CLI, HTTP API, or @vibiz/app. - [Track product prices from any online shop](https://thelastapi.dev/blog/track-product-prices-any-shop.md): Track product prices, stock status, and catalog metadata from any online store using the ecommerce.product action in the thelastapi web data API. - [Turn a website's design system into a Tailwind theme](https://thelastapi.dev/blog/copy-website-design-system-tailwind.md): Run vibiz design --tailwind to inspect any website's styles and generate a Tailwind v4 @theme configuration, CSS tokens, and an agent brief. - [Who ranks on Google for a keyword: a SERP API](https://thelastapi.dev/blog/serp-api-who-ranks-keyword.md): Find who ranks on Google for any keyword with the seo.serp action via CLI, HTTP API, or TypeScript SDK, returning clean JSON search results. ### Analytics and replay - [Session replay for a small site: masked, cheap and useful](https://thelastapi.dev/blog/session-replay-small-site.md): Session replay for a small site records user bugs and friction with client-side masking, low storage costs, and a single script tag. - [Abandoned forms: see where users give up](https://thelastapi.dev/blog/abandoned-forms-where-users-give-up.md): Track abandoned forms by combining custom milestone events with masked session replay frames that photograph exactly where visitors drop off. - [Add analytics to any site with one tag](https://thelastapi.dev/blog/add-analytics-any-site-one-tag.md): Add web analytics and session replay to any website by pasting a single script tag into your HTML head, with no cookies and zero configuration. - [Ask your agent "how is my site doing?" and get a real answer](https://thelastapi.dev/blog/ask-agent-how-is-my-site-doing.md): Give your AI agent tools like vibiz_health and vibiz_analytics to check website uptime, traffic drops, and visitor errors using real data. - [Cookieless web analytics: what it measures and what it does not](https://thelastapi.dev/blog/cookieless-web-analytics.md): Cookieless analytics tracks pageviews, sources, devices, and custom events without cookies or storing IP addresses. - [Find rage clicks and dead clicks on your site](https://thelastapi.dev/blog/find-rage-clicks-dead-clicks.md): Find rage clicks and dead clicks using session replay, inspect UI freeze frames, and catch user frustration before it hurts conversions. - [Google Search Console data next to your analytics](https://thelastapi.dev/blog/search-console-data-next-to-analytics.md): Connect Google Search Console to your analytics to see clicks, impressions, and index status next to visitor traffic without separate dashboards. - [See the JavaScript errors your visitors actually hit](https://thelastapi.dev/blog/see-js-errors-visitors-hit.md): Track JavaScript errors your users hit by enabling session replay to catch front-end crashes and see exact visual snapshots of what broke. - [See what a visitor saw: replay frames as screenshots](https://thelastapi.dev/blog/replay-frames-what-visitor-saw.md): Turn session replays into static PNG screenshots at key moments like errors and rage clicks with the CLI or API to diagnose bugs fast. - [Server-side event tracking from your backend](https://thelastapi.dev/blog/server-side-event-tracking.md): Track server-side analytics events by calling vibiz.user(userId).track() with @vibiz/app to record accurate conversions without cookies or client drops. - [Session replay with consent first](https://thelastapi.dev/blog/session-replay-consent-first.md): Record session replays under GDPR by setting require_consent: true on your project and calling vibiz('replay', 'start') once visitors opt in. - [Where your visitors come from: sources, countries and devices](https://thelastapi.dev/blog/visitor-sources-countries-devices.md): Find where your website traffic sources come from across referrers, countries, and devices without cookies or stored IPs. ### Phone and social - [Give an AI agent a phone number: texts, calls and a voice agent](https://thelastapi.dev/blog/give-ai-agent-phone-number.md): Give an AI agent a US phone number to send and receive texts, make spoken reminder calls, and hold live two-way voice conversations with one API key. - [An AI receptionist that answers incoming calls](https://thelastapi.dev/blog/ai-receptionist-answer-calls.md): Set up an AI receptionist for your small business to answer incoming calls, speak with customers, and record transcripts using thelastapi. - [An AI voice agent that makes phone calls](https://thelastapi.dev/blog/ai-voice-agent-phone-calls.md): Place two-way AI phone calls with thelastapi using a single API call, with automatic transcripts, call summaries, and strict compliance safeguards. - [Buy a US phone number with an API](https://thelastapi.dev/blog/buy-us-phone-number-api.md): Buy a US phone number with the vibiz CLI or API, link it to a project, and start receiving texts and placing voice calls right away. - [Create a Google Ads Search campaign from the command line](https://thelastapi.dev/blog/google-ads-search-campaign-api.md): Create Google Ads Search campaigns from the command line or REST API with custom budgets, keywords, and copy, created paused for review. - [Let an AI agent run your social media, with you approving](https://thelastapi.dev/blog/ai-agent-social-media-owner-approval.md): Run an AI agent as your social media manager safely by using approval queues and Limited API keys to review posts before they publish. - [Post to Instagram, TikTok and LinkedIn from one API](https://thelastapi.dev/blog/post-instagram-tiktok-linkedin-one-api.md): Publish to Instagram, TikTok, and LinkedIn in one API call with thelastapi, including per-network options, media uploads, and approval guardrails. - [Read social post analytics with an API](https://thelastapi.dev/blog/social-post-analytics-api.md): Read impressions, reach, likes, comments, shares, saves, and clicks across your connected social accounts using the thelastapi social analytics API. - [Receive text messages in your app](https://thelastapi.dev/blog/receive-texts-in-your-app.md): Buy a US number, listen for the phone.message.received webhook event, and read incoming SMS segments directly in your application code. - [Reminder calls: ring someone and speak a message](https://thelastapi.dev/blog/reminder-calls-speak-message.md): Place automated reminder calls with an API using thelastapi to ring US numbers, speak text notifications, and handle call status cleanly. - [Schedule social media posts with an API](https://thelastapi.dev/blog/schedule-social-posts-api.md): Schedule social media posts across multiple networks using the thelastapi Social API, CLI commands, ISO timestamps, and built-in owner approvals. - [Send SMS from your app: carrier approval explained](https://thelastapi.dev/blog/send-sms-from-app-carrier-approval.md): Send SMS from your app over 10DLC by completing carrier brand registration, sample message verification, and opt-out compliance. ### Company and domains - [Form a US LLC or C-Corp from your terminal: costs and steps](https://thelastapi.dev/blog/form-us-llc-c-corp-terminal.md): You can form a US LLC or C-Corp directly from your terminal or API using thelastapi for state fees plus a flat $149 service fee. - [Add a DNS TXT record to verify your domain](https://thelastapi.dev/blog/add-dns-txt-record-verification.md): Add a DNS TXT record to verify your domain with thelastapi CLI, the HTTP API, or the console to prove ownership for external services. - [Buy a domain name with an API or one command](https://thelastapi.dev/blog/buy-domain-name-api.md): Buy and configure a domain name via the CLI or HTTP API using thelastapi credits, with automatic DNS and SSL for your apps. - [Connect a domain you already own](https://thelastapi.dev/blog/connect-domain-you-own.md): Connect a domain you already own to your website using the vibiz CLI, configure the required DNS records, and enable automatic HTTPS. - [Domain auto-renew and transfer codes, explained](https://thelastapi.dev/blog/domain-auto-renew-transfer-code.md): A domain transfer code is an authorization string that proves ownership when moving a domain to a new registrar, paired with auto-renew settings. - [Getting an EIN for your new company](https://thelastapi.dev/blog/get-ein-new-company.md): To get an EIN, submit Form SS-4 to the IRS directly or include it when forming an LLC or C-Corp. Here is what is needed and how the process works. - [LLC vs C-Corp for a SaaS: what to think about (not legal advice)](https://thelastapi.dev/blog/llc-vs-c-corp-saas.md): Choose an LLC to bootstrap a SaaS with pass-through taxation, or a C-Corp to raise venture capital, issue stock options, and sell shares. - [Put app. and api. subdomains on different projects](https://thelastapi.dev/blog/subdomain-for-app-api.md): Point subdomains like app. and api. to different projects in one command using account-level domains, with automatic HTTPS and zero manual DNS. - [What a registered agent is and why your company needs one](https://thelastapi.dev/blog/registered-agent-explained.md): A registered agent is an individual or authorized entity appointed to receive official legal notices, service of process, and state mail for a business. - [What it costs to form a US company: state fees plus one service fee](https://thelastapi.dev/blog/cost-to-form-us-company.md): Forming an LLC costs the state filing fee plus a single $149 service fee, with registered agent service and standard EIN filing included. ### The one-key stack - [One key for your whole app: the one-API stack for indie builders](https://thelastapi.dev/blog/one-key-whole-app-stack.md): Run hosting, a Postgres database, sign-in, and payments through one API and one key. Manage your entire stack without account sprawl. - [A backend for a mobile app without writing a backend](https://thelastapi.dev/blog/backend-for-mobile-app.md): Build a complete mobile app backend without managing servers using thelastapi for database, sign-in, file uploads, AI, and in-app purchases. - [A daily spend cap: protection from runaway API costs](https://thelastapi.dev/blog/daily-spend-cap-runaway-costs.md): Prevent runaway API costs by enforcing daily spend caps at the account and project level that cut off metered requests the moment limits are reached. - [Build a SaaS in a weekend: database, sign-in, payments, email, deploy](https://thelastapi.dev/blog/build-saas-weekend.md): Build and deploy a full-stack SaaS in a single weekend using one API key for Postgres, sign-in, recurring payments, email, and hosting. - [Call your own APIs through one gateway, with their keys sealed](https://thelastapi.dev/blog/call-your-own-apis-sealed-keys.md): Route your third-party APIs through one gateway with sealed keys: define the endpoint, store the secret write-only, and call it via SDK or CLI. - [Development vs production environments for small teams](https://thelastapi.dev/blog/development-vs-production-environments.md): A development environment keeps unreleased code, test records, and sandboxed keys isolated from the live customer data and money in production. - [File uploads for your app, with permanent links](https://thelastapi.dev/blog/file-uploads-permanent-links.md): Upload files through one API and get an unguessable permanent URL back immediately, with zero bucket configuration or complex asset hosting setups. - [Import an OpenAPI spec and call it from your app or agent](https://thelastapi.dev/blog/import-openapi-spec-connector.md): Import an OpenAPI 3 spec using the vibiz CLI to turn any API into a secured connector your app or AI agent can call with one unified key. - [No lock-in: how to take your app elsewhere](https://thelastapi.dev/blog/take-your-app-elsewhere.md): Avoid vendor lock-in by using standard Postgres, OpenAI-compatible AI, portable env files, and full database and code exports with the vibiz CLI. - [One env var for everything: VIBIZ_APP_KEY explained](https://thelastapi.dev/blog/vibiz-app-key-explained.md): A single environment variable, VIBIZ_APP_KEY, powers your entire backend—connecting database, sign-in, AI, email, files, payments, and analytics. - [Prepaid credits: how usage-based billing works here](https://thelastapi.dev/blog/prepaid-credits-explained.md): thelastapi uses prepaid credits drawn at the exact moment of each billable call, backed by daily safety caps to protect against runaway spend. - [Private files with signed links](https://thelastapi.dev/blog/private-files-signed-links.md): Upload private files or toggle existing files to private to get signed URLs that expire after one hour, protecting assets from unauthorized access. - [Running a business with agents: what they should and should not do alone](https://thelastapi.dev/blog/what-agents-should-and-shouldnt-do.md): AI agents should handle development, deploys, and data scraping alone, but humans must retain control over live money, secrets, and legal filings. - [Stop juggling API keys: one key instead of ten services](https://thelastapi.dev/blog/stop-juggling-api-keys.md): Instead of managing separate API keys across ten vendors, you can run hosting, Postgres, auth, email, payments, and AI from a single key. - [The cheapest stack for a side project in 2026](https://thelastapi.dev/blog/cheapest-stack-side-project-2026.md): The cheapest tech stack for a side project in 2026 is a prepaid one-API platform with free baseline hosting, Postgres, sign-in, and analytics. - [Use just one service from an app hosted anywhere](https://thelastapi.dev/blog/use-one-service-any-app.md): Use any single thelastapi service from an app hosted anywhere by creating a project with only that resource and passing one secret: VIBIZ_APP_KEY.