Inaccurate page count and credit usage in parse API response #549

Open
opened 2026-02-16 00:18:13 -05:00 by yindo · 0 comments
Owner

Originally created by @bmeisburger on GitHub (Oct 2, 2025).

Describe the bug
I'm seeing wildly inaccurate page count and credit usage fields in the job result response metadata. For example, for a new parse job with a PDF that has exactly 15 pages, I get:

[GET https://api.cloud.llamaindex.ai/api/v1/parsing/job/{job_id}/result/text]
{ 
    'text': '...',
    'job_metadata':
    {
        'credits_used': 0,
        'job_credits_usage': 0,
        'job_pages': 11,
        'job_auto_mode_triggered_pages': 0,
        'job_is_cache_hit': False
    }
}

This is using parse_document_with_llm. Similar results are obtained with other PDFs (inaccurate page count, 0 credit usage despite cache miss). Incidentally, I'm also seeing much higher credit usage than expected for this parsing mode (unsure if these are related).

Files
N/A

Job ID
One example: 6382d2ba-8d2d-4089-91fb-a35bae5e17f8

Client:
Please remove untested options:

  • API
  • Frontend (cloud.llamaindex.ai)
  • Notebook

Additional context
These results were replicated across the API and frontend.

Originally created by @bmeisburger on GitHub (Oct 2, 2025). **Describe the bug** I'm seeing wildly inaccurate page count and credit usage fields in the job result response metadata. For example, for a new parse job with a PDF that has exactly 15 pages, I get: ``` [GET https://api.cloud.llamaindex.ai/api/v1/parsing/job/{job_id}/result/text] { 'text': '...', 'job_metadata': { 'credits_used': 0, 'job_credits_usage': 0, 'job_pages': 11, 'job_auto_mode_triggered_pages': 0, 'job_is_cache_hit': False } } ``` This is using `parse_document_with_llm`. Similar results are obtained with other PDFs (inaccurate page count, 0 credit usage despite cache miss). Incidentally, I'm also seeing much higher credit usage than expected for this parsing mode (unsure if these are related). **Files** N/A **Job ID** One example: `6382d2ba-8d2d-4089-91fb-a35bae5e17f8` **Client:** Please remove untested options: - API - Frontend (cloud.llamaindex.ai) - Notebook **Additional context** These results were replicated across the API and frontend.
yindo added the bug label 2026-02-16 00:18:13 -05:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: run-llama/llama_cloud_services#549