API Endpoints
Complete reference for all Fusion AI API endpoints. Our API follows REST principles and OpenAI compatibility standards.
Base URL
https://api.fusionai.com/v1Chat Completions
POST
/chat/completionsCreate a chat completion with automatic model routing via NeuroSwitch™ or specify your preferred provider.
Example Request
curl -X POST https://api.fusionai.com/v1/chat/completions \
-H "Authorization: Bearer YOUR_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"messages": [
{"role": "user", "content": "Explain quantum computing"}
],
"provider": "neuroswitch",
"stream": false
}'Models
GET
/modelsList all available models and their capabilities.
Example Request
curl -X GET https://api.fusionai.com/v1/models \ -H "Authorization: Bearer YOUR_API_KEY"
GET
/models/{model_id}Get details about a specific model including pricing and capabilities.
Authentication
POST
/auth/verifyVerify your API key and get account information.
Example Request
curl -X POST https://api.fusionai.com/v1/auth/verify \ -H "Authorization: Bearer YOUR_API_KEY"
Usage & Billing
GET
/usageGet current period usage statistics and costs.
GET
/creditsCheck your current credit balance and transaction history.
Error Responses
All endpoints return standard HTTP status codes. Error responses include detailed messages and error codes.
View Error Reference →