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/v1

Chat Completions

POST/chat/completions

Create 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/models

List 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/verify

Verify 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/usage

Get current period usage statistics and costs.

GET/credits

Check 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 →

Next Steps