Skip to main content

How it works

Groups are the main routing mechanism in AIOHub. When you send an API request, AIOHub reads the groups assigned to the API key, checks the requested model, and selects a matching upstream channel. An API key can belong to multiple groups. You can choose auto to let AIOHub pick from active groups based on the current routing configuration. Choose a specific group, such as codex, anthropic, gemini, or opensource-economy, when you need a fixed route family.

What groups affect

  • Model availability: different groups expose different model sets.
  • Channel routing: the same model can route through different upstream channels.
  • Price differences: the same model can have different ratios by group.
  • Resilience: auto and cross-group retry can switch between available channels.
1

Check available groups

Use the console to view current groups and the models available under each group.
2

Assign by use case

Create separate API keys for separate tools. For example, use codex or codex-passthrough for Codex CLI, gemini for Gemini CLI, and anthropic or a Claude-specific group for Claude Messages clients.
3

Validate availability

After creating the API key, call /v1/models and confirm the visible model list matches the client you plan to use.

Notes

  • You can update an API key’s groups in the console or through the API key management endpoint without changing the sk- value.
  • Group settings may change when upstream providers update their offerings.
  • auto is a routing control value, not a fixed group. Actual routing still depends on visible models, channel status, and balance.