Country Capital Finder (QA)
A minimal Next.js 15+ app (app router) that accepts a country name from the user and returns the capital city using OpenAI's gpt-5-mini model. The frontend posts to '/api' and displays the result with loading and error states.
Remix this app
Please log in to modify or remix this app.
Input prompt:
what is the capital of india
OpenAI API
To run the app in the sandbox, please add your OpenAI API key to the .env file.
Build your next AI startup
in hours




Trusted by 445+ founders
Save 200+ hours of dev time · One-time payment · Lifetime updates
⏳ 0 licenses left before price increase!
You've turned 3 months of work into 3 weeks man. Worth every penny.
Simple pricing
Build
unlimited products. Pay only once.
Build unlimited products. Pay only once.
Get the full codebase, included demo apps, and production setup in one purchase, then launch as many products as you want.
Core $229$299 Pay once, launch unlimited products. OpenAI only version. | Most popular Premium $249$349 Includes all demo apps, open source models & access to updates and new apps. | Enterprise $549$699 For unlimited developers, B2B solutions, and commercial projects | |
|---|---|---|---|
| Included applications | |||
| Advanced AI ChatGPT-5, Gemini 3 Pro, Claude Opus 4.5, Llama 4, Grok 4, DeepSeek | |||
| Text generationGPT-5 mini | |||
| Image generationGPT-Image-1 | |||
| Image analysisGPT-5 / Vision | |||
| Image generationNano Banana 2, Flux, Recraft | |||
| Chat with PDFGPT-5 | |||
| Text generationLLaMA 3 | |||
| Text generationClaude Sonnet 4.5 | |||
| Audio transcriptionWhisper | |||
| Text to speechElevenlabs | |||
| Features | |||
| Next.js 16Typescript & /app router | |||
| Better Auth + DrizzleAuth, DB, vector embeddings | |||
| PaymentsLemonSqueezy & Stripe | |||
| Landing pages5 landing pages | |||
| UI Components15+ UI components | |||




Trusted by 445+ founders
Save 200+ hours of dev time · One-time payment · Lifetime updates
FAQ
Frequently asked questions
Questions about access, updates, licensing, or how the codebase works? Start here.
Still have questions? Email us at [email protected]






