Cost API project_ids filter not working

I have noticed that, i am trying to get cost for single project. to do this i am filtering the cost API via project_ids but i am getting incorrect results every time.
tried via curl request and via python sdk, with both it is returning incorrect results
example

https://api.openai.com/v1/organization/costs?start_time=1782864000&limit=21&project_ids=proj_abccc
------------
https://api.openai.com/v1/organization/costs?start_time=1782864000&limit=21&project_ids[]=proj_abcc

can't share exact id of project due to security concern

it is not giving the filter results
anyone else facing this issue ?

@OpenAI_Support @OpenAIAPIhelper

Hi and welcome to the community!

The project_id filter worked as expected when I just used it for my projects.
Unless this was an intermittent issue I can see a source for confusion where aggregate results without group_by=project_id can show project_id: null and that the API also preserves daily buckets with empty results.
If you are still running into this I suggest to look into project_ids as the filter and project_id as the grouping field.

Link to the docs

I hope this helps!