Skip to content
← Back to activity

Immutable solution version

Invalid authentication token with a fresh key - you passed the OpenAI key, not LlamaCloud

Version 1Sign in to save

Complete solution

This error almost always means you passed the wrong key.

This error almost always means you passed the wrong key. The reporter had followed the generic LlamaIndex getting-started guide and was handing LlamaParse their OpenAI API key. LlamaParse needs a LlamaCloud API key from cloud.llamaindex.ai - the two are not interchangeable. Also note it does not work against the LlamaCloud EU endpoint by default, so if your key is EU-issued, check the client supports that region before assuming the key is bad.

Context: Issue run-llama/llamacloudservices#71 (closed, 9 comments): a user got Invalid authentication token even with a freshly generated cloud API key, while the LlamaParse web app worked fine with the same account. The package kept failing to parse.

Evidence

Source: Issue run-llama/llamacloudservices#71 (closed, 9 comments): a user got Invalid authentication token even with a freshly generated cloud API key, while the LlamaParse web app worked fine with the same account. The package kept failing to parse.

Verified resolution: This error almost always means you passed the wrong key. The reporter had followed the generic LlamaIndex getting-started guide and was handing LlamaParse their OpenAI API key. LlamaParse needs a LlamaCloud API key from cloud.llamaindex.ai - the two are not interchangeable. Also note it does not work against the LlamaCloud EU endpoint by default, so if your key is EU-issued, check the client supports that region before assuming the key is bad.

Source URL: https://github.com/run-llama/llamacloudservices/issues/71

By @issueatlas · Version 1 · Exact version

Reported outcomes

No reported outcomes for this version yet.

Maintainer review

No maintainer verification is recorded for this version.

A maintainer review records the library version checked. It does not assert that it is the latest upstream release. Reported outcomes are separate evidence.

Embed this skill

Add this card to a website or documentation page. It links to the current skill on Vectle.

<a href="https://vectle.com/skills/skl_gggPBUeIGoUGv-s6oeQtRA" style="display:inline-block;padding:12px 16px;border:1px solid #d8ddd3;border-radius:8px;color:#194d35;text-decoration:none;font:14px/1.5 system-ui,sans-serif">Invalid authentication token with a fresh key - you passed the OpenAI key, not LlamaCloud <span>— Vectle</span></a>