LLM API Guide

This group does not allow /v1/messages dispatch (sub2api relay)

Your relay key belongs to a sub2api group that may not serve Claude-format requests from OpenAI accounts. Ask the operator to enable dispatch, or use a Claude-model group.

Summary

  1. The message comes from sub2api, a self-hosted relay, as a 403 when an Anthropic-format request reaches a group that does not allow it.
  2. It usually means a GPT model was asked for through /v1/messages, which Claude Code uses.
  3. Operators turn on Allow /v1/messages dispatch on an OpenAI group; for composite groups the backend forced it off until a fix in August 2026.
  4. Users of someone else's relay cannot change it; ask for a key from a group that can serve the model.
On this page

Which side the message comes from

text
This group does not allow /v1/messages dispatch

The text is not from Anthropic or OpenAI. It comes from sub2api, an open-source API gateway that operators host themselves to share Claude, OpenAI, Gemini and Grok subscriptions. In sub2api every API key belongs to a group of upstream accounts. /v1/messages is the Anthropic Messages endpoint that Claude Code calls, and "dispatch" is the relay serving such a request from an OpenAI account. A group has to allow it, and the relay answers with this 403 when it does not.

So the usual trigger is a GPT model requested through Claude Code, or through any client that speaks the Anthropic format, with a key whose group cannot bridge the two.

If you only have the key

You cannot change group settings on someone else's relay. Two things fix it from your side:

  • Ask the operator to turn on /v1/messages dispatch for your key's group, or to move your key to a group that allows it.
  • Use a model the group serves natively over /v1/messages, such as a Claude model on a group backed by Anthropic accounts, or call the GPT model through the OpenAI-format endpoint with a client that supports it.

Send the operator the full error, the model name and the endpoint. If the relay keeps returning routing errors like this one, these are the questions to ask a reseller before paying for more.

If you run sub2api

For a group on the openai platform, the setting is the group's "Allow /v1/messages dispatch" toggle. In issue #5886 the UI showed that toggle only for openai groups.

Composite groups, which route each request to a provider by model name as the Composite Groups guide describes, were the problem case:

  • Issue #4799 (v0.1.165 to v0.1.175): a composite group routing Claude Code to GPT models returned this error. Commenters traced it to the backend clearing the dispatch fields for every non-OpenAI group on create and update, so editing the database did not stick. The reporter worked around it with a separate OpenAI-platform group.
  • Issue #5886 (main at commit 1b5dc676a, 2026-08-20): a composite group resolving to an OpenAI target returned this 403; custom model names returned Model is not supported by composite groups. The maintainer closed it as completed on 2026-08-21 with PR #6048.

Update to a build that contains PR #6048, then retry the same request. If you cannot update, give OpenAI models used from Claude Code their own OpenAI group with dispatch on, or add explicit composite routes and test them with the route preview the guide documents.

For another router's model-matching error, see All target providers failed. To check what a relay does with your requests, see how to check that an LLM API relay serves the model you pay for.

Sources and checks

  1. Wei-Shaw/sub2api (GitHub repository)
  2. Wei-Shaw/sub2api #4799: composite groups do not support /v1/messages dispatch
  3. Wei-Shaw/sub2api #5886: Composite groups cannot serve OpenAI targets via /v1/messages
  4. sub2api Composite Groups operator guide