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 (e.g. gemini-2.5-flash).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.