Design an API playground and prompt-testing sandbox for developers
product-design case · difficulty 4/5 · 30 minutes · software-tech · Google
Prompt
You are the product manager for Gemini. Design an API playground and prompt-testing sandbox for developers.
Context
Developers try models in a playground before writing code. They test prompts, tune temperature and system instructions and need to know the cost before shipping. Core tension: Creating a visual workspace to test temperature, system instructions, and token costs before deploying code. This is a conversation, follow the **CIRCLES** steps or any sensible structure of your own.
Clarifying questions
- Focus on parameter tuning or cost estimation?
- Both matter, but parameter tuning with live cost visibility; cost estimation is the differentiator.
- What is the starting point?
- Only 12% of developers who open the playground generate an API key, and many say they do not know what a feature will cost at scale.
Recommendation
**Recommendation:** Live cost panel and one-click code export with a key prompt, with side-by-side comparison next - **Who:** startup and indie developers - **Need addressed:** Test confidently and know what it will cost - **Why this option:** They are low effort and give the best lift. Cost visibility is a strong differentiator. Comparison is valuable but takes more work. - **Success metrics:** Sandbox to production conversion, Prompts tested per session, API key generation rate
Risks
- Estimated costs can be wrong if usage differs from assumptions
- Exported code could encourage hard-coded keys
Next steps
- A/B test the cost panel and export button
- Track sandbox-to-production conversion, prompts per session and key generation rate