NexLLM API Reference: Endpoints and Base URL Guide
Last edited: 16 Nov 2026 (Asia/Hong Kong) NexLLM provides a unified, OpenAI-compatible REST API that lets you access GPT, Claude, and Gemini models through a single base URL. You can drop NexLLM into any project already using the OpenAI SDK — just swap the base URL and your NexLLM API key, and your existing code keeps working without any other changes.Base URL
Every request you make goes to the following base URL:To use NexLLM with the OpenAI SDK, set
base_url="https://www.nexllm.ai/v1" and pass your NexLLM API key as api_key. No other configuration changes are required.Supported Endpoints
The table below lists every endpoint NexLLM exposes. All paths are relative to the base URL above.Native Format Support
In addition to the OpenAI-compatible endpoints above, NexLLM also supports provider-native request formats:Claude native format — Send requests to
POST /v1/messages using the x-api-key: sk-... header and anthropic-version: 2023-06-01 header. This lets you use the Anthropic Messages API format directly, without converting to OpenAI-style payloads.Gemini native format — Send requests to
GET /v1beta/models/{model}:generateContent?key=sk-... using the standard Gemini query-parameter authentication. Replace {model} with the model name (for example gemini-2.5-flash). This format puts the key in the URL. Prefer the OpenAI-compatible Authorization: Bearer header when you can, and avoid copying this URL into tickets, browsers, or logs. See Authentication.Explore the API
Authentication
Learn how to authenticate your requests using the
Authorization header or native provider headers.Chat Completions
Generate conversational AI responses with full streaming support.
Embeddings
Convert text into vector embeddings for semantic search and RAG pipelines.
Image Generation
Generate and edit images from natural language prompts.
Audio
Transcribe audio files to text or synthesize speech from text.
Models
Retrieve the full list of models available to your API key.