Skip to main content

Overview

GPT Academic is aimed at paper polishing, translation, code explanation, and other academic workflows. When connecting it to Crazyrouter, keep its OpenAI URL redirect approach, but move the default model set to the latest options already verified in production.

Configuration

Edit Configuration File

Edit config.py or config_private.py:
API_KEY = "sk-xxx"
API_URL_REDIRECT = {
    "https://api.openai.com/v1/chat/completions": "https://crazyrouter.com/v1/chat/completions"
}

# Or set directly
LLM_MODEL = "gpt-5.4"
AVAIL_LLM_MODELS = [
    "gpt-5.4",
    "claude-sonnet-4-6",
    "gemini-3-pro-preview"
]

Environment Variables

export API_KEY=sk-xxx
export API_URL_REDIRECT='{"https://api.openai.com/v1/chat/completions": "https://crazyrouter.com/v1/chat/completions"}'
export LLM_MODEL=gpt-5.4

Docker Deployment

services:
  gpt-academic:
    image: ghcr.io/binary-husky/gpt_academic
    ports:
      - "22303:22303"
    environment:
      - API_KEY=sk-xxx
      - LLM_MODEL=gpt-5.4
      - API_URL_REDIRECT={"https://api.openai.com/v1/chat/completions": "https://crazyrouter.com/v1/chat/completions"}
ScenarioModelDescription
First-pass academic workflow validationgpt-5.4Verified successfully in Crazyrouter production on March 23, 2026, and best for the OpenAI-compatible baseline
Higher-quality long-form summarizationclaude-sonnet-4-6Better for complex explanation, rewriting, and summaries
Gemini fallback pathgemini-3-pro-previewUseful as a second vendor-compatible validation path
GPT Academic’s URL redirect feature forwards OpenAI requests directly to Crazyrouter. Start by validating one minimal session with gpt-5.4, then expand the model list and plugin usage gradually.