🧠 AI Playground
Test the UPIP AI API in real-time. No coding required.
Try It Now
Need an API key?
Get one free in 30 seconds →
Your API Key
💬 Text
🎨 Image
💻 Code
Example Prompts (Click to use)
Explain quantum computing in simple terms
Write a Python function to calculate fibonacci
Summarize the benefits of AI in healthcare
Your Prompt
Model
Auto (Cheapest)
Gemini 1.5 Flash
Gemini 1.5 Pro
Claude 3.5 Haiku
Claude 3.5 Sonnet
Aya 35B (Local, FREE)
✨ Generate
Image Prompt
🎨 Generate Image
API Example (cURL)
curl -X POST YOUR_DOMAIN/api/ai-gateway/v1/chat/completions \ -H "Authorization: Bearer YOUR_API_KEY" \ -H "Content-Type: application/json" \ -d '{ "messages": [ {"role": "user", "content": "Hello!"} ], "model": "gemini-1.5-flash", "max_tokens": 500 }'
Python Example
import requests api_key = "YOUR_API_KEY" url = "YOUR_DOMAIN/api/ai-gateway/v1/chat/completions" response = requests.post( url, headers={ "Authorization": f"Bearer {api_key}", "Content-Type": "application/json" }, json={ "messages": [ {"role": "user", "content": "Hello!"} ], "model": "gemini-1.5-flash", "max_tokens": 500 } ) data = response.json() print(data['choices'][0]['message']['content']) print(f"Cost: ${data['usage']['cost']}")
Response
Your response will appear here...
Tokens Used
-
Cost
-
Time
-