Quickstart Guide

Get up and running with Fusion AI in under 5 minutes. From API key to first response.

1

Get Your API Key

First, you'll need to get an API key from your Fusion AI dashboard. This key will authenticate your requests.

Free Tier Included

New accounts come with free credits to test the platform. No credit card required to get started.

Click "Create New Key" and give it a name
Copy and securely store your API key (starts with sk-fusion-)
2

Test Your First Call

Let's make your first request to the Fusion AI API using cURL. Replace YOUR_API_KEY with your actual key.

Basic Chat Request

curl -X POST https://api.mcp4.ai/chat \
  -H "Authorization: Bearer YOUR_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "prompt": "Explain machine learning in simple terms",
    "provider": "neuroswitch"
  }'

Expected Response

{
  "prompt": "Explain machine learning in simple terms",
  "response": {
    "text": "Machine learning is like teaching a computer to recognize patterns and make predictions..."
  },
  "provider": "openai",
  "model": "gpt-4",
  "tokens": {
    "total_tokens": 156,
    "input_tokens": 12,
    "output_tokens": 144
  },
  "timestamp": "2024-01-01T12:00:00.000Z"
}
3

Understanding NeuroSwitch

Notice how you sent the request to "neuroswitch" but got a response from "openai"? That's NeuroSwitch in action!

What Happened?

  • NeuroSwitch analyzed your prompt
  • Determined GPT-4 was optimal for this request
  • Routed automatically to OpenAI
  • Returned the result with transparency

Try Different Prompts

Code question: May route to Claude
Creative writing: May route to GPT-4
Math problem: May route to Gemini
4

Choose Your Provider (Optional)

Want to target a specific provider? Just change the provider parameter:

OpenAI Direct

{
  "prompt": "Your question",
  "provider": "openai",
  "model": "gpt-4"
}

Claude Direct

{
  "prompt": "Your question",
  "provider": "claude",
  "model": "claude-3-sonnet"
}

NeuroSwitch (Smart)

{
  "prompt": "Your question",
  "provider": "neuroswitch"
}

What's Next?

Need Help?

Having trouble getting started? We're here to help!