> For the complete documentation index, see [llms.txt](https://docs.lingoql.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.lingoql.com/sub0/speed-up-with-sub0-ai.md).

# Speed up with Sub0 AI

Sub0 AI is your built-in backend assistant. It helps you generate production-ready database models and APIs in minutes.

Describe what you want to build. Sub0 AI handles the syntax, structure, and starting point.

***

### From idea to backend

Sub0 AI can generate:

* Complete Sub0 database models
* API specifications
* Validated payload schemas
* Relationships, indexes, and policies

All from a plain-English prompt.

***

### How It Works

1. Describe your backend in plain English
2. Sub0 AI generates your database models
3. Sub0 AI generates your API specifications
4. You review, adjust (if needed), and deploy

No boilerplate. No setup. No guesswork.

***

### Environment variables

When Sub0 AI generates API specs:

* All required **environment variables** are automatically detected
* Variables are **created and recorded** in the **Custom Env** section
* Secrets and configuration values are never hardcoded

You don’t need to manually track or remember environment keys.

***

### Example Prompt

> Build a backend for a SaaS app with users, subscriptions, and payments.\
> Include authentication, webhooks for payments, and scheduled billing checks.

Sub0 AI handles:

* Models
* Relationships
* Endpoints
* Webhooks
* Cron jobs
* Required env variables

***

### Safe by Default

Everything generated by Sub0 AI:

* Follows Sub0’s execution guarantees
* Respects policy and access controls
* Uses deterministic resource limits
* Is fully editable after generation

You are always in control.

***

### When to Use LingoAI

Sub0 AI is useful when:

* Starting a new project
* Prototyping fast
* Exploring a new data model
* Generating boilerplate APIs
* Onboarding new team members

***

### Human + AI, Not Magic

Sub0 AI does not lock you in. It accelerates the starting point.

You can:

* Modify generated models
* Edit API specs
* Extend workflows
* Add custom logic

***

**In short:**\
Sub0 AI turns intent into working backend foundations, so you can focus on shipping.


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.lingoql.com/sub0/speed-up-with-sub0-ai.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
