API Reference

API Overview

The NeuronEdge API is organized around REST. Our API accepts JSON-encoded request bodies, returns JSON-encoded responses, and uses standard HTTP response codes and authentication.

Base URL

text
https://api.neuronedge.ai

Authentication

All API requests require authentication via Bearer token in the Authorization header. API keys are prefixed with ne_ to distinguish them from provider keys.

http
Authorization: Bearer ne_live_your_api_key
X-Provider-API-Key: sk-your-provider-key

Learn more about authentication →

Request Headers

HeaderRequiredDescription
AuthorizationYesNeuronEdge API key (ne_...)
X-Provider-API-KeyYesYour LLM provider API key
X-NeuronEdge-PolicyNoPolicy ID to override default
X-NeuronEdge-FormatNoRedaction format: token, hash, synthetic
X-NeuronEdge-ModeNoDetection mode: real-time, balanced, thorough
X-NeuronEdge-EntitiesNoComma-separated entity types to detect

Response Headers

HeaderDescription
X-Request-IDUnique request identifier (ULID format)
X-NeuronEdge-Entities-DetectedNumber of PII entities detected
X-NeuronEdge-Detection-Time-MsDetection processing time in milliseconds
X-RateLimit-LimitYour rate limit ceiling
X-RateLimit-RemainingRemaining requests in current window
X-RateLimit-ResetUnix timestamp when limit resets

Supported Providers

NeuronEdge supports 17 LLM providers through the /v1/{provider}/chat/completions endpoint:

openaianthropicgoogleazurecohereperplexitygroqmistraltogetherfireworksanyscaledeepinfrahuggingfacereplicatebedrockbasetenai21

See provider-specific configuration →