Skip to content

Github copilot Sonnet 4 - AI_APICallError the requested model is not supported #1125

Closed

Description

@franz-see

I tried Sonnet 4 from Github Copilot and it does not work

Is this supported?

Thanks

Activity

  1. changed the title [-]Github copilot - AI_APICallError the requested model is not supported[/-] [+]Github copilot Sonnet 4 - AI_APICallError the requested model is not supported[/+] on Jul 18, 2025
  2. self-assigned this
    on Jul 18, 2025
  3. thdxr commented on Jul 18, 2025

    @thdxr
    Member

    you need the highest github plan for non-gpt models

  4. npmSteven commented on Jul 22, 2025

    @npmSteven

    Hello, I think this issue should be reopened.

    I’ve tested this on both the Copilot Pro and Pro+ plans (re-authenticated each time), but I still get the error:

    "The requested model is not supported"

    This happens with:

    • Claude Sonnet 4
    • Gemini 2.5 Pro (Preview)
    • o4-mini
    • Gemini 2.0 Flash
    • o1 (Preview)

    Models that are working for me:

    • Claude Sonnet 3.7
    • Claude Sonnet 3.7 Thinking
    • GPT-4.1
    • o3-mini
    • Clause Sonnet 3.5
    • GPT-4o

    I'd assume both plans should work as they offer prett much the same models expect Pro+ offers o3 and Opus 4
    https://github.com/features/copilot/plans

  5. npmSteven commented on Jul 22, 2025

    @npmSteven

    I found out what the issue was. If you’ve subscribed to GitHub Copilot but have never used it in VS Code with the extension, you’ll get this message prompting you to enable access to the third-party model (You'll need to allow it for Anthropic and Gemini) to do that you'll need to select one of the providers models and send a message and then it'll prompt you.

    Image

    Alternatively, you can go to your settings and enable them https://github.com/settings/copilot/features

    It might be worth adding this to FAQ, but I could just be an edge case

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions