Skip to main content
Novisurf is fully OpenAI-compatible. If you’re already using the OpenAI SDK, just swap the base URL and API key — nothing else changes.

Endpoint


Authentication

Novisurf supports two ways to authenticate: X-API-Key header
Bearer token (Recommended)
Your API key is available in the Novisurf Dashboard.

Request

Headers

Body Parameters

Message Object


Examples

Basic

Streaming

OpenAI SDK (drop-in)

Python (OpenAI SDK)


Response

Non-Streaming

Streaming

Streamed responses are sent as SSE events and terminated with data: [DONE].

Error Codes