Ethan AI
Ethan AI Playground

Test your API key • Learn OpenAI API format

🎮 How to use Playground

  1. Step 1: Paste your API Key (from Dashboard → API Keys)
  2. Step 2: Choose a model & configure parameters (optional)
  3. Step 3: Enter your prompt/question below
  4. Step 4: Click "Run Test" → See response on the right
  5. Step 5: Copy the code snippet (cURL or Python) to your app
📋 Request Configuration

Fill in your API key & message to test

Get from Dashboard → API Keys → Copy your key

Max Tokens (output length)

Temperature (0-2, higher=creative)

Give AI behavior instructions (e.g., "Be concise", "Speak like Jarvis")

Enter the message you want to send to AI

Sends a request to Ethan API & shows response below →

📤 API Response

Result from Ethan API server

👇 Click "Run Test" above
to see response here
💻 Use in Your App

Copy & paste these code snippets to your project

Run this in your terminal:

curl -X POST /v1/chat/completions \
  -H "Authorization: Bearer YOUR_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "model": "claude-3-5-haiku-20241022",
    "max_tokens": 1024,
    "temperature": 0.7,
    "messages": [
      {"role": "user", "content": "Hello! Tell me about yourself."}
    ]
  }'