Skip to content

Instance Configuration Examples

Doc Version: 1.0.0 Last Updated: 2026-07-15 Git Commit: a0139c87 Author: Lincoln

This document provides configuration examples for common AI services to help users get started quickly.

Online API Services

OpenAI GPT

FieldValue
Service Typechat
Instance Namegpt-4o
Base URLhttps://api.openai.com
Path/v1/chat/completions
Adapternormal
HeadersAuthorization: Bearer sk-xxx
Base URL:     https://api.openai.com
Path:         /v1/chat/completions
Header Name:  Authorization
Header Value: Bearer sk-proj-xxxxx

DeepSeek

DeepSeek is compatible with OpenAI API format, use normal adapter.

FieldValue
Service Typechat
Instance Namedeepseek-chat
Base URLhttps://api.deepseek.com
Path/v1/chat/completions
Adapternormal
HeadersAuthorization: Bearer sk-xxx
Base URL:     https://api.deepseek.com
Path:         /v1/chat/completions
Header Name:  Authorization
Header Value: Bearer sk-xxxxxxxx

Anthropic Claude

Claude uses a dedicated adapter with x-api-key header authentication.

FieldValue
Service Typechat
Instance Nameclaude-sonnet
Base URLhttps://api.anthropic.com
Path/v1/messages
Adapterclaude
Headersx-api-key: sk-ant-xxx
Base URL:     https://api.anthropic.com
Path:         /v1/messages
Header Name:  x-api-key
Header Value: sk-ant-api03-xxxxx

Note: The anthropic-version header is automatically injected by the adapter.


Google Gemini

Gemini is compatible with OpenAI API format, use normal adapter.

FieldValue
Service Typechat
Instance Namegemini-pro
Base URLhttps://generativelanguage.googleapis.com/v1beta/openai
Path/chat/completions
Adapternormal
HeadersAuthorization: Bearer xxx
Base URL:     https://generativelanguage.googleapis.com/v1beta/openai
Path:         /chat/completions
Header Name:  Authorization
Header Value: Bearer AIzaSyxxxxx

Alibaba Cloud Bailian (Qwen)

FieldValue
Service Typechat
Instance Nameqwen-plus
Base URLhttps://dashscope.aliyuncs.com/compatible-mode
Path/v1/chat/completions
Adapternormal
HeadersAuthorization: Bearer sk-xxx
Base URL:     https://dashscope.aliyuncs.com/compatible-mode
Path:         /v1/chat/completions
Header Name:  Authorization
Header Value: Bearer sk-xxxxxxxx

Tencent Cloud Hunyuan

FieldValue
Service Typechat
Instance Namehunyuan-chat
Base URLhttps://api.hunyuan.cloud.tencent.com
Path/v1/chat/completions
Adapternormal
HeadersAuthorization: Bearer sk-xxx
Base URL:     https://api.hunyuan.cloud.tencent.com
Path:         /v1/chat/completions
Header Name:  Authorization
Header Value: Bearer sk-xxxxxxxx

Local Inference Engines

Ollama

FieldValue
Service Typechat
Instance Nameollama-llama3
Base URLhttp://localhost:11434
Path/api/chat
Adapterollama
HeadersNone required
Base URL:     http://localhost:11434
Path:         /api/chat
Adapter:      ollama
Headers:      None required

vLLM

FieldValue
Service Typechat
Instance Namevllm-qwen
Base URLhttp://localhost:8000
Path/v1/chat/completions
Adaptervllm
HeadersNone required (unless API key configured)
Base URL:     http://localhost:8000
Path:         /v1/chat/completions
Adapter:      vllm
Headers:      None required

GPUStack

FieldValue
Service Typechat
Instance Namegpustack-llama
Base URLhttp://localhost:8080
Path/v1/chat/completions
Adaptergpustack
HeadersAuthorization: Bearer sk-xxx (if configured)
Base URL:     http://localhost:8080
Path:         /v1/chat/completions
Adapter:      gpustack
Header Name:  Authorization (optional)
Header Value: Bearer your-api-key (optional)

Xinference

FieldValue
Service Typechat
Instance Namexinference-chat
Base URLhttp://localhost:9997
Path/v1/chat/completions
Adapterxinference
HeadersNone required
Base URL:     http://localhost:9997
Path:         /v1/chat/completions
Adapter:      xinference
Headers:      None required

LocalAI

FieldValue
Service Typechat
Instance Namelocalai-chat
Base URLhttp://localhost:8080
Path/v1/chat/completions
Adapterlocalai
HeadersNone required
Base URL:     http://localhost:8080
Path:         /v1/chat/completions
Adapter:      localai
Headers:      None required

Adapter Reference

AdapterSupported ServicesAuthentication
normalOpenAI, DeepSeek, Gemini, Alibaba, TencentAuthorization: Bearer
claudeAnthropic Claudex-api-key
ollamaOllamaNone
vllmvLLMNone (optional)
gpustackGPUStackAuthorization: Bearer (optional)
xinferenceXinferenceNone
localaiLocalAINone

Embedding Service Examples

OpenAI Embedding

FieldValue
Service Typeembedding
Instance Nametext-embedding-3-small
Base URLhttps://api.openai.com
Path/v1/embeddings
Adapternormal
HeadersAuthorization: Bearer sk-xxx

Ollama Embedding

FieldValue
Service Typeembedding
Instance Namenomic-embed-text
Base URLhttp://localhost:11434
Path/api/embeddings
Adapterollama
HeadersNone required

FAQ

Q: How to configure multiple OpenAI instances?

A: Add multiple instances with different names and weights. For example:

Instance 1: gpt-4o        Weight 5
Instance 2: gpt-4o-mini   Weight 3
Instance 3: gpt-3.5-turbo Weight 2

Q: Will the API Key in headers be exposed?

A: API Keys are displayed as password fields on the page and transmitted over HTTPS. JAiRouter masks stored keys internally.

Q: Do I need to manually configure the anthropic-version header for Claude?

A: No. When you select the claude adapter, anthropic-version: 2023-06-01 is automatically injected.

Q: Local inference engines don't require authentication, do I need to configure headers?

A: No. Ollama, vLLM, Xinference and other local services don't require authentication by default, leave headers empty.