File size: 3,020 Bytes
425d315
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
{
  "version": 1,
  "accounts": {
    "ollama-local": {},
    "google-primary": {
      "api_key_env": "GEMINI_API_KEY"
    },
    "openai-primary": {
      "api_key_env": "OPENAI_API_KEY"
    },
    "anthropic-primary": {
      "api_key_env": "ANTHROPIC_API_KEY"
    }
  },
  "batch_token_budgets": {
    "google-primary": {
      "adapter": "google_gemini_batch",
      "tier": "1",
      "safety_ratio": 0.75,
      "estimator": "gemini_local_conservative",
      "verified_at": "2026-07-31",
      "source_url": "https://ai.google.dev/gemini-api/docs/rate-limits",
      "models": {
        "gemini-3.6-flash": 3000000,
        "gemini-3.5-flash": 3000000,
        "gemini-3.5-flash-lite": 10000000,
        "gemini-3.1-flash-lite": 10000000
      }
    },
    "openai-primary": {
      "adapter": "openai_batch",
      "tier": "1",
      "safety_ratio": 0.75,
      "estimator": "tiktoken_json",
      "encoding": "o200k_base",
      "verified_at": "2026-07-31",
      "source_url": "https://developers.openai.com/api/docs/models",
      "models": {
        "gpt-5.6-sol": 3000000,
        "gpt-5.6-terra": 3000000,
        "gpt-5.6-luna": 20000000,
        "gpt-5.5": 3000000,
        "gpt-5.5-pro": 1000000,
        "gpt-5.4": 3000000,
        "gpt-5.4-mini": 20000000,
        "gpt-5.4-nano": 20000000,
        "gpt-5.4-pro": 1350000,
        "gpt-5.2": 3000000,
        "gpt-5.2-pro": 1350000,
        "gpt-5.1": 3000000,
        "gpt-5": 3000000,
        "gpt-5-mini": 20000000,
        "gpt-5-nano": 20000000,
        "gpt-5-pro": 1350000,
        "gpt-4.1": 1350000,
        "gpt-4.1-2025-04-14": 1350000,
        "gpt-4.1-mini": 2000000,
        "gpt-4.1-mini-2025-04-14": 2000000,
        "gpt-4.1-nano": 2000000,
        "gpt-4o": 90000,
        "gpt-4o-mini": 2000000,
        "o1": 1350000,
        "o1-pro": 1350000,
        "o3": 90000,
        "o3-2025-04-16": 90000,
        "o3-mini": 1000000,
        "o4-mini": 1000000,
        "o4-mini-2025-04-16": 1000000
      }
    }
  },
  "apis": {
    "ollama-local": {
      "adapter": "openai_chat",
      "model_family": "Ollama",
      "base_url": "http://127.0.0.1:11434",
      "endpoint_template": "/v1/chat/completions"
    },
    "google-gemini-batch": {
      "adapter": "google_gemini_batch",
      "model_family": "Gemini",
      "quota_scope": "api",
      "base_url": "https://generativelanguage.googleapis.com",
      "endpoint_template": "/v1beta/models/{model}:batchGenerateContent",
      "auth_header": "x-goog-api-key"
    },
    "openai-batch": {
      "adapter": "openai_batch",
      "model_family": "OpenAI",
      "quota_scope": "api",
      "base_url": "https://api.openai.com",
      "endpoint_template": "/v1/batches",
      "auth_header": "Authorization"
    },
    "anthropic-batch": {
      "adapter": "anthropic_batch",
      "model_family": "Claude",
      "quota_scope": "api",
      "base_url": "https://api.anthropic.com",
      "endpoint_template": "/v1/messages/batches",
      "auth_header": "x-api-key"
    }
  }
}