Generative AI application development is the work of turning a large language model into a dependable business application: connecting it to your data, constraining what it may say and do, measuring its answers against real cases, and running it at a known cost. The model is the easy part. The evaluation set, the data access and the guardrails decide whether the app survives its first month with real users.
This guide covers the types of GenAI apps businesses build, a reference architecture, the development lifecycle, model choice, build and run costs, and why pilots stall. It is written from a delivery company's view: the numbers about our practice are our own measurements from shipped projects.
What is generative AI application development?
Definition. Generative AI application development is the design, build, evaluation and operation of software in which a generative model (text, code, image or speech) produces part of the output. It includes data and retrieval, prompt and context design, guardrails, evaluation, cost control and the user interface, not only the model call.
The distinction from classic software is that the core component is probabilistic. The same input can produce different outputs, and a fluent answer can be wrong. NIST's Generative AI Profile calls that risk "confabulation": confidently stated but false content. Every design choice below exists to contain it.
Five types of generative AI apps businesses build
| Type | Example | Main failure mode | What to evaluate |
|---|---|---|---|
| Assistants and copilots | An internal assistant that answers questions about KPIs and tasks | Invented numbers | Every figure traced to a source |
| Knowledge apps (RAG) | Search and Q&A over policies, contracts, manuals | Wrong or missing document retrieved | Retrieval recall, citation correctness |
| Document AI | Extracting fields from clinical notes, invoices, forms | Silent extraction errors | Field-level accuracy against labeled samples |
| Content and code generation | Reports, letters, product copy, code | Plausible but off-policy output | Rubric scores, policy checks, human review rate |
| Voice and multimodal | Meeting transcription, voice assistants, image analysis | Mis-heard names and terms | Word error rate, entity accuracy, latency |
Start with one type. Teams that try to build a general "AI platform" first usually ship nothing a user depends on.
Reference architecture for a generative AI application
Seven layers, from the user down:
- User interface. Chat, form, document panel or voice. Show sources and confidence; make it easy to flag a bad answer.
- Guardrails. Input checks (prompt injection, personal data), output checks (policy, format, unverified numbers), and rate and cost limits.
- Orchestration. The code that decides which steps run: a single model call, a fixed chain, or an agent loop. Anthropic's advice in Building effective agents holds here: find "the simplest solution possible, and only increasing complexity when needed."
- Context and retrieval. Search over your documents and databases, plus the instructions and examples the model sees. This layer usually decides quality. Our context engineering guide goes deeper.
- Tools. Narrow, permissioned functions the model can call, such as "get KPI by unit and month." Read-only by default.
- Model layer. One or more models behind a router, so you can switch providers or fall back.
- Evaluation and observability. Traces of every call, cost per request, and an evaluation suite that runs on every change.
Layers 2 and 7 are the ones cost-cutting projects drop. They are also the ones auditors ask about first.
The development lifecycle, step by step
1. Frame the use case and the metric
One process, one owner, one number. "Cut time to draft a consolidated monthly report from two days to two hours" is a use case. "Use AI in reporting" is not. Also write down what the app must never do.
2. Check data readiness and governance
Find out where the data lives, who may see it, whether it may leave your network, and how fresh it must be. Most delays we see come from here, not from the model. If the data must stay in your jurisdiction, decide now between a cloud region, a private deployment or open-weight models on your own hardware.
A short readiness checklist we use in week one:
- Can we get a read-only export or API for every source the app needs, this month?
- Which fields are personal, confidential or classified, and must they be masked before the model sees them?
- Who owns each source, and who signs off on the data path?
- How stale may an answer be: real time, daily, monthly?
- Do users have different permissions, and must the app respect them per user?
If any answer is "we don't know," that is your first work item, not the prompt.
3. Build a two-week prototype
Build the thinnest end-to-end version with real data and real users watching. Its job is to expose wrong assumptions: missing data, unclear policy, users who want something else.
4. Write the evaluation suite before the pilot
Collect real cases with expected answers: typical questions, edge cases, adversarial inputs, and questions the app should refuse. Score them automatically where you can and with calibrated human or model judges where you cannot. Fix the scoring method before you start tuning, or you will grade your own homework. On one of our projects an internal self-score of 69% and 75% fell to 56% and 63% under the official scorer. We now use only pre-agreed scorers. Our guide to AI agent evaluation covers the methods.
5. Pilot, then promote to production
Pilot with a small group behind guardrails. Track evaluation scores, user flags, latency and cost per request daily. Promote when scores are stable across several releases, not after one good day. In production, run the evaluation suite as a gate on every prompt, model or retrieval change.
The operating practices that keep a GenAI app healthy after launch (often called LLMOps):
- Version everything. Prompts, retrieval settings and model versions live in Git next to the code, with the evaluation scores that justified each change.
- Release like software. Ship behind a flag to a small share of users first, compare scores and user flags, then widen. Keep a one-step rollback.
- Trace every call. Store inputs, retrieved context, outputs, latency and cost, with personal data masked, so any bad answer can be replayed.
- Sample production. Score a sample of real conversations every week with the same judges as the offline suite. Add new failure cases to the evaluation set.
- Watch the provider. Model updates change behavior. Pin versions and re-run the suite before you accept an upgrade.
Choosing a model in 2026: API, open weights or fine-tuning
| Option | Choose it when | Trade-offs |
|---|---|---|
| Frontier model via API | You need the best reasoning and fast delivery; data may be processed by the provider in an approved region | Per-token cost; provider dependency; data residency review |
| Open-weight model, self-hosted | Data must stay on your hardware; volume is high and predictable; latency matters | You run GPUs and inference servers; smaller models need more context engineering |
| Fine-tuned model | You need a fixed format or style at high volume, or a small model to match a large one on a narrow task | Training data and evaluation effort; retraining when needs change |
| RAG on any of the above | Answers must reflect current, citable company knowledge | Retrieval quality becomes the main risk |
RAG vs fine-tuning. Retrieval-augmented generation, introduced by Lewis et al. in 2020, gives the model relevant documents at question time, which keeps answers current and citable. Fine-tuning changes the model's behavior, not its knowledge of last week's policy. Use RAG for facts, fine-tuning for form. Most of our production systems use retrieval and a model router; few need fine-tuning.
For sovereign deployments we run open-weight models on the client's own servers behind the same router, so the application code does not change when the model does.
What generative AI application development costs
Build cost. Agency guides give wide ranges. F22 Labs, for example, puts builds at $20,000 to $60,000 for basic apps, $60,000 to $150,000+ for mid-level apps with RAG and integrations, and $150,000 to $300,000+ for advanced enterprise systems, with maintenance at 15 to 30% of the build cost per year. Use such ranges as a sanity check, not a quote. The real drivers are the number of integrations, the size of the evaluation set, compliance requirements and how much autonomy the app has.
Run cost. Few cost guides do the token math. Do it before you choose an architecture:
- Estimate requests per day. Example: 2,000 conversations.
- Estimate tokens per request, including retrieved context, which is usually most of it. Example: 6,000 input and 800 output tokens.
- Multiply: 12 million input and 1.6 million output tokens per day.
- Apply your model's current per-million-token prices, then add retrieval, hosting and monitoring.
The biggest lever is usually context size, not model choice. Retrieving five precise passages instead of twenty loose ones cuts input tokens by three quarters and often improves answers at the same time.
Other levers that cut run cost without hurting quality:
- Routing. Send simple, high-volume requests to a small model and reserve the frontier model for hard ones. Your evaluation set tells you where the line is.
- Caching. Cache stable instructions and frequent retrievals. Many providers bill cached input tokens at a discount.
- Batch offline work. Overnight summarization or classification does not need real-time pricing.
- Cap the loop. If the app can call tools, set a maximum number of steps and a cost budget per request. The OWASP list calls the failure mode "unbounded consumption."
Why generative AI pilots stall, and how to avoid it
- No metric. If nobody agreed what "better" means, nobody can say the pilot worked. Fix: one number, set before the build.
- No evaluation set. Quality is judged by anecdotes from the last demo. Fix: real cases, fixed scorer, run on every change.
- Data access arrives late. Security review of the data path starts after the prototype. Fix: start it in week one.
- Guardrails bolted on. The OWASP Top 10 for LLM Applications lists prompt injection, sensitive information disclosure, excessive agency and unbounded consumption among the top risks. Design for them from the start.
- No owner after launch. Models, prompts and data drift. Fix: a named owner, a monthly evaluation review, and a budget for maintenance.
- Too many use cases at once. A platform with ten half-finished assistants convinces nobody. Fix: ship one, measure it, then reuse its retrieval, guardrails and evaluation harness for the second.
- Wrong tool for the job. Some problems are better served by rules, search or a classic model. A partner who never says "don't use GenAI here" is selling, not advising.
Build in-house, hire a US agency, or go hybrid
| Model | Strengths | Weaknesses | Fits |
|---|---|---|---|
| In-house team | Domain knowledge; long-term ownership | Slow to hire AI engineers; no factory tooling on day one | Core products with multi-year roadmaps |
| US agency | Same time zone; local contracting and legal | High rates; often staffed with generalists | Smaller, well-defined builds |
| Hybrid: US entity with offshore R&D | US contracting and accountability; lower cost; work continues across time zones | Needs clear specs and strong evidence of quality | Fixed-deadline products; teams that want both speed and cost control |
Questions that separate real GenAI delivery teams from demo shops:
- Show us an evaluation report from a past project. What was the scorer, and who fixed it?
- How many automated tests did your last GenAI app ship with?
- How do you stop the model from inventing numbers, names or citations?
- How do you handle prompt injection through uploaded documents?
- Where will our data be processed, stored and logged?
- What will this cost per month to run at our volume, and how did you calculate it?
Whatever you choose, make the contract say that you own the prompts, evaluation sets, test suites and traces, not only the code. For a buyer's view of offshore options, see our guide to choosing an AI development company in Vietnam.
How YITEC does it
We build GenAI applications through our AI Software Factory: AI agents plan, build and test under human gates, so the evaluation and test artifacts are produced as part of the build, not added at the end. YITEC is a US company with its R&D lab in Hanoi.
AI answers with every number traced. The government KPI platform we built for a central-government steering office (Resolution 57) includes an AI assistant and a real-time voice assistant over data from 81 government units. The assistant has no shell, file or network tools. Every number in an answer must trace to a tool result or to the user's own input; an untraced statistic is retried, then masked as "[unverified]." The platform went from first commit to public production in about 27 hours. Its test suite includes about 850 end-to-end browser tests and 147 voice tests. See the government KPI platform.
Versioned prompts with evaluation sets. For a US healthcare startup we turned a prototype into an AI prior-authorization platform: models read clinical notes, match insurer policy and draft appeal letters. It runs on 149 versioned prompt files with evaluation sets and about 18,800 automated tests. Our pipeline shipped about 330 reviewed, AI-assisted pull requests in five weeks.
Measured improvement, not vibes. For Vietnamese meeting transcription, we built rival approaches in parallel and judged them with a scorer fixed before the experiment. Word error rate fell from 30.8% to 10.7% in about three days, and correct names and terms rose from 26.5% to 75.4% once the system read the meeting's documents first.
Speed to a working pilot. For an industrial group we stood up ERP, team chat and AI agents behind one sign-on in under two weeks, with agents acting under each employee's own permissions.
What you keep at handover: the code, the prompts, the evaluation sets and scores, the test suites, and the traces. If your use case needs the app to take actions rather than produce content, read agentic AI vs generative AI and our guide to agentic AI development. To scope a GenAI application with real evals from week one, see our services or contact us.
FAQ
How do you develop a generative AI application?
How much does it cost to build a generative AI app?
Do I need to fine-tune a model for my generative AI app?
What is the difference between RAG and fine-tuning?
How long does it take to build a generative AI application?
How do I choose a generative AI development company?
Sources
- Lewis et al.: Retrieval-Augmented Generation for Knowledge-Intensive NLP Tasks (NeurIPS 2020)
- NIST AI 600-1: AI Risk Management Framework, Generative AI Profile (Jul 2024)
- OWASP Top 10 for LLM Applications 2025
- F22 Labs: How much does a generative AI app cost? (updated Jul 2026)
- Anthropic: Building effective agents



