API Playground - Online Debug Tool
Test various AI models online, quickly validate API features, and generate code examples.
Model selection
Parameters
PreciseBalancedCreative
10020004000
Preset prompts
Enter prompt
Response
The response will appear here
Generated code
curl https://api.example.com/v1/chat/completions \
-H "Content-Type: application/json" \
-H "Authorization: Bearer YOUR_API_KEY" \
-d '{
"model": "gpt-4o",
"messages": [
{
"role": "user",
"content": "Hello, please introduce yourself."
}
],
"temperature": 0.7,
"max_tokens": 2000
}'Usage tips
- • Higher temperature yields more creative responses
- • Max tokens affects response length
- • Different models have different strengths
- • You can copy code into your project
Model comparison
| Model | Type | Speed | Cost | Features |
|---|---|---|---|---|
| GPT-4o | Chat | Fast | Medium | Latest model, vision supported |
| Claude 3.5 Sonnet | Chat | Fast | Medium | Strong coding capabilities |
| FLUX 1.1 Pro | Image | Very fast | Low | High-quality image generation |