Skip to content

CIVITAI API Connect not working #1245

Description

@KarlVanSnail

What happened?

Hy!

I want to connect to CivitAI and i paste the API key in the form and i get an error.

"Objectreference is not set to an instance of an object."

Steps to reproduce

No response

Relevant logs

Version

2.14.0

What Operating System are you using?

Windows

Activity

  1. github-actions commented on Jul 8, 2025

    @github-actions

    This issue is stale because it has been open 60 days with no activity. Remove the stale label or comment, else this will be closed in 7 days.

  2. added
    staleStale issue or inactive for long period of time
    on Jul 8, 2025
  3. github-actions commented on Jul 15, 2025

    @github-actions

    This issue was closed because it has been stale for 7 days with no activity.

  4. deathler70 commented on Sep 16, 2025

    @deathler70

    I'm experiencing a problem connecting StabilityMatrix (v2.15.0) to CivitAI with my API key.
    Instead of connecting, I get a Japanese error: "無効なクラスです" ("Invalid class").

    I've confirmed my API key works by testing directly in PowerShell:

    $apikey = "MY_API_KEY"
    Invoke-RestMethod -Uri "https://civitai.com/api/v1/models?limit=1" -Headers @{ "Authorization" = "Bearer $apikey" }

    Response shows a valid model list (e.g., id=257749, name=Pony Diffusion V6 XL), so the key is valid.

    It seems this error is specific to StabilityMatrix v2.15.0.
    Could it be related to recent changes in the CivitAI API, or a bug in key handling?

  5. added a commit that references this issue on Jun 8, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workingstaleStale issue or inactive for long period of time

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions