KIE.AI
All Model
  • All Model
  • Old Model
language
language
  • 🇺🇸 English
  • 🇨🇳 Chinese
language
language
  • 🇺🇸 English
  • 🇨🇳 Chinese
Support
All Model
  • All Model
  • Old Model
All Model
  • All Model
  • Old Model
MarketFile Upload APICommon APIAI Agents
MarketFile Upload APICommon APIAI Agents
  1. Help
  • Overview
  • Build with KIE models
    • Install kie-models
    • What your agent can do
  • Run coding agents on KIE
    • Install kie-chat-agents
    • Claude Code
    • Codex CLI
    • Grok Build
  • Help
    • Troubleshooting
    • Changelog
  1. Help

Troubleshooting

Common problems when using the KIE skills, and how to fix them.
For agent-specific issues, each agent page (Claude Code, Codex CLI, Grok Build) also has its own Common pitfalls list.

Installation and API key#

SymptomCause / Fix
npx: command not foundNode.js is not installed. Install Node.js, then run npx skills add https://kie.ai again.
The agent doesn't seem to use the skillRestart the agent after installing. You can also name the skill in your request: "Use the kie-models skill to …".
The agent says KIE_API_KEY is missingThe variable is not set in the shell that started the agent. Export it, then restart the agent from that same shell.
401 UnauthorizedThe key is wrong or expired, or it was sent in the wrong header. KIE only accepts Authorization: Bearer <key>; a header named apikey is rejected. Check your key at kie.ai/api-key.
Windows: the variable still isn't picked upsetx only affects windows opened afterwards. Close every terminal, including those inside VS Code, Cursor and other editors, and reopen. Or set $env:KIE_API_KEY in the current window.
PowerShell: curl rejects the argumentsIn PowerShell curl is an alias for Invoke-WebRequest. Use curl.exe.
jq: command not foundInstall it: brew install jq, apt install jq or winget install jqlang.jq.

Running models (kie-models)#

SymptomCause / Fix
The agent picked a different model than you wantedName the model in your request, for example "with GPT Image 2".
The task failedOpen kie.ai/logs to see the task and its error. Ask the agent to retry with adjusted parameters.
Not enough creditsTop up on kie.ai/pricing, then ask the agent to run the task again.
A result link no longer opensGenerated files are kept for 14 days. Ask the agent to save results to a local path so you keep a copy.

Chat agents (kie-chat-agents)#

SymptomCause / Fix
Requests fail or behave oddly after connecting to an agentThe model may be an older version that supports chat only (marked "Chat only" on its model page). Switch to the latest model in that series.
model not foundThe model name is not in that agent's listing. List models from the agent's endpoint (/anthropic/v1/models, /openai/v1/models or /xai/v1/models) and use an id from it.
Request path doubled, such as /v1/v1/messages or /responses/responsesThe base URL contains the full request URL. Each agent appends its own suffix; remove it from the base URL.
Claude Code asks you to log in to an Anthropic accountThe environment variables are not in that process. Fully quit the terminal and reopen from a shell where they are exported.
Codex or Grok Build ignores your providerThe provider is in a project-level config file. Move it to ~/.codex/config.toml or ~/.grok/config.toml.
You want to use a model from another vendor's protocolThe agent and the model speak different protocols. See When protocols don't match on the Install kie-chat-agents page.

Debugging#

Claude Code: claude --debug prints the requests it sends.
Codex CLI: codex doctor reports the loaded config and whether the provider is reachable.
Grok Build: RUST_LOG=debug GROK_LOG_FILE=/tmp/grok.log grok writes a request trace.
Every KIE call shows up on kie.ai/logs.
Still stuck? Contact support@kie.ai.
Previous
Grok Build
Next
Changelog
Built with