Authorization header. NexLLM also supports native provider authentication formats for Claude and Gemini, which use different header conventions.
Standard Authentication
Include your API key in theAuthorization header as a Bearer token on every request:
Example: curl
Example: OpenAI SDK (Python)
Configure the OpenAI client with your NexLLM API key and base URL — all subsequent calls are authenticated automatically:Native Provider Authentication
If you prefer to use provider-native request formats, NexLLM supports their authentication conventions as well.Claude Native Format
Instead of theAuthorization header, pass your key in the x-api-key header. You must also include the anthropic-version header:
Gemini Native Format
Pass your API key as akey query parameter on the Gemini-format endpoint: