API Reference
NexusFlow integrates logic into three classes of compatible protocols and one async task interface. OpenAI, Anthropic Messages, and Gemini-compatible requests all share the same model routing, billing, and monitoring pipeline.
Three Protocol Compatibility
OpenAI, Anthropic Messages, and Gemini-compatible share one set of keys, billing, and monitoring.
Streaming Response
Chat interface supports SSE streaming output, suitable for real-time interaction with low-latency experience.
Async Tasks
Image and video use a unified task interface, suitable for high-latency and high-concurrency scenarios.
Pre-launch Checklist
Configure rate limiting, error codes, and monitoring dashboards to help you identify traffic risks before going live.
Compatible Protocols
OpenAI
/v1/chat/completionsRecommended by default, compatible with OpenAI SDK.
Anthropic Messages
/v1/messagesReuse the Anthropic SDK and Messages format.
Gemini-compatible
/v1beta/models/{model}:generateContentReuse the Gemini GenerateContent format.
Public Gateway Protocol Boundaries
AvailableOpenAI Chat / Anthropic Messages / Gemini-compatibleText, reasoning, vision understanding, coding, and professional models should be called via supported_protocols.
AvailableOpenAI Embeddings / Image Generations / NexusFlow TasksEmbedding, image, and video models use the corresponding interface based on capability.
This page only lists currently available public APIs that can be directly requested at https://nexusflow.vip.
Basic Information
Base URL
https://nexusflow.vipAuthentication Method
Authorization: Bearer sk-air-xxxRequest Format
Content-Type: application/jsonResponse Format
JSON / Server-Sent Events / Task StatusRecommended Integration Methods
Chat
Use /v1/chat/completions by default, compatible with OpenAI SDK.
Protocol
When you already have an Anthropic or Gemini client, use the corresponding compatible interface directly.
Tasks
Image and video models should use /v1/tasks and /v1/tasks/:id first; images also support the OpenAI-style /v1/images/generations.