Testing AJAX Endpoint: openai-usage-daily
Parameters: date_from=2026-02-01, date_to=2026-02-10

Result Type: array
Is Array: Yes
Count: 10

JSON Response (what JavaScript receives):
[
    {
        "date": "2026-02-10",
        "requests": "10",
        "prompt_tokens": "9669",
        "completion_tokens": "7588",
        "total_tokens": "17257",
        "cost": "0.079106",
        "models": "gpt-3.5-turbo,gpt-4o,gpt-4o-mini"
    },
    {
        "date": "2026-02-09",
        "requests": "11",
        "prompt_tokens": "15128",
        "completion_tokens": "8417",
        "total_tokens": "23545",
        "cost": "0.092221",
        "models": "gpt-3.5-turbo,gpt-4o,gpt-4o-mini"
    },
    {
        "date": "2026-02-08",
        "requests": "7",
        "prompt_tokens": "6484",
        "completion_tokens": "5324",
        "total_tokens": "11808",
        "cost": "0.053273",
        "models": "gpt-3.5-turbo,gpt-4o,gpt-4o-mini"
    },
    {
        "date": "2026-02-07",
        "requests": "11",
        "prompt_tokens": "8619",
        "completion_tokens": "6429",
        "total_tokens": "15048",
        "cost": "0.064858",
        "models": "gpt-3.5-turbo,gpt-4o,gpt-4o-mini"
    },
    {
        "date": "2026-02-06",
        "requests": "13",
        "prompt_tokens": "13114",
        "completion_tokens": "8539",
        "total_tokens": "21653",
        "cost": "0.093356",
        "models": "gpt-3.5-turbo,gpt-4o,gpt-4o-mini"
    },
    {
        "date": "2026-02-05",
        "requests": "4",
        "prompt_tokens": "6048",
        "completion_tokens": "2036",
        "total_tokens": "8084",
        "cost": "0.020320",
        "models": "gpt-3.5-turbo,gpt-4o"
    },
    {
        "date": "2026-02-04",
        "requests": "14",
        "prompt_tokens": "14976",
        "completion_tokens": "11185",
        "total_tokens": "26161",
        "cost": "0.130893",
        "models": "gpt-3.5-turbo,gpt-4o,gpt-4o-mini"
    },
    {
        "date": "2026-02-03",
        "requests": "10",
        "prompt_tokens": "11163",
        "completion_tokens": "7126",
        "total_tokens": "18289",
        "cost": "0.083304",
        "models": "gpt-3.5-turbo,gpt-4o,gpt-4o-mini"
    },
    {
        "date": "2026-02-02",
        "requests": "8",
        "prompt_tokens": "8599",
        "completion_tokens": "6827",
        "total_tokens": "15426",
        "cost": "0.066791",
        "models": "gpt-3.5-turbo,gpt-4o,gpt-4o-mini"
    },
    {
        "date": "2026-02-01",
        "requests": "6",
        "prompt_tokens": "4061",
        "completion_tokens": "4922",
        "total_tokens": "8983",
        "cost": "0.034826",
        "models": "gpt-3.5-turbo,gpt-4o,gpt-4o-mini"
    }
]


============================================================
Testing AJAX Endpoint: openai-usage-data
============================================================

Chart Result Type: array
Chart Is Array: Yes
Chart Count: 29

Chart JSON Response:
[
    {
        "period": "2026-02-01",
        "request_count": "3",
        "total_prompt_tokens": "2941",
        "total_completion_tokens": "2196",
        "total_tokens": "5137",
        "total_cost": "0.004765",
        "model": "gpt-3.5-turbo"
    },
    {
        "period": "2026-02-01",
        "request_count": "2",
        "total_prompt_tokens": "839",
        "total_completion_tokens": "1801",
        "total_tokens": "2640",
        "total_cost": "0.020108",
        "model": "gpt-4o"
    },
    {
        "period": "2026-02-01",
        "request_count": "1",
        "total_prompt_tokens": "281",
        "total_completion_tokens": "925",
        "total_tokens": "1206",
        "total_cost": "0.009953",
        "model": "gpt-4o-mini"
    },
    {
        "period": "2026-02-02",
        "request_count": "2",
        "total_prompt_tokens": "3121",
        "total_completion_tokens": "1969",
        "total_tokens": "5090",
        "total_cost": "0.004515",
        "model": "gpt-3.5-turbo"
    },
    {
        "period": "2026-02-02",
        "request_count": "3",
        "total_prompt_tokens": "3619",
        "total_completion_tokens": "3157",
        "total_tokens": "6776",
        "total_cost": "0.040618",
        "model": "gpt-4o"
    },
    {
        "period": "2026-02-02",
        "request_count": "3",
        "total_prompt_tokens": "1859",
        "total_completion_tokens": "1701",
        "total_tokens": "3560",
        "total_cost": "0.021658",
        "model": "gpt-4o-mini"
    },
    {
        "period": "2026-02-03",
        "request_count": "2",
        "total_prompt_tokens": "1558",
        "total_completion_tokens": "1500",
        "total_tokens": "3058",
        "total_cost": "0.003030",
        "model": "gpt-3.5-turbo"
    },
    {
        "period": "2026-02-03",
        "request_count": "5",
        "total_prompt_tokens": "5409",
        "total_completion_tokens": "4070",
        "total_tokens": "9479",
        "total_cost": "0.054224",
        "model": "gpt-4o"
    },
    {
        "period": "2026-02-03",
        "request_count": "3",
        "total_prompt_tokens": "4196",
        "total_completion_tokens": "1556",
        "total_tokens": "5752",
        "total_cost": "0.026050",
        "model": "gpt-4o-mini"
    },
    {
        "period": "2026-02-04",
        "request_count": "3",
        "total_prompt_tokens": "3680",
        "total_completion_tokens": "1299",
        "total_tokens": "4979",
        "total_cost": "0.003789",
        "model": "gpt-3.5-turbo"
    },
    {
        "period": "2026-02-04",
        "request_count": "5",
        "total_prompt_tokens": "5326",
        "total_completion_tokens": "3828",
        "total_tokens": "9154",
        "total_cost": "0.051597",
        "model": "gpt-4o"
    },
    {
        "period": "2026-02-04",
        "request_count": "6",
        "total_prompt_tokens": "5970",
        "total_completion_tokens": "6058",
        "total_tokens": "12028",
        "total_cost": "0.075507",
        "model": "gpt-4o-mini"
    },
    {
        "period": "2026-02-05",
        "request_count": "2",
        "total_prompt_tokens": "2863",
        "total_completion_tokens": "1110",
        "total_tokens": "3973",
        "total_cost": "0.003097",
        "model": "gpt-3.5-turbo"
    },
    {
        "period": "2026-02-05",
        "request_count": "2",
        "total_prompt_tokens": "3185",
        "total_completion_tokens": "926",
        "total_tokens": "4111",
        "total_cost": "0.017223",
        "model": "gpt-4o"
    },
    {
        "period": "2026-02-06",
        "request_count": "3",
        "total_prompt_tokens": "3189",
        "total_completion_tokens": "2170",
        "total_tokens": "5359",
        "total_cost": "0.004850",
        "model": "gpt-3.5-turbo"
    },
    {
        "period": "2026-02-06",
        "request_count": "4",
        "total_prompt_tokens": "3076",
        "total_completion_tokens": "3075",
        "total_tokens": "6151",
        "total_cost": "0.038442",
        "model": "gpt-4o"
    },
    {
        "period": "2026-02-06",
        "request_count": "6",
        "total_prompt_tokens": "6849",
        "total_completion_tokens": "3294",
        "total_tokens": "10143",
        "total_cost": "0.050064",
        "model": "gpt-4o-mini"
    },
    {
        "period": "2026-02-07",
        "request_count": "4",
        "total_prompt_tokens": "3113",
        "total_completion_tokens": "1736",
        "total_tokens": "4849",
        "total_cost": "0.004161",
        "model": "gpt-3.5-turbo"
    },
    {
        "period": "2026-02-07",
        "request_count": "4",
        "total_prompt_tokens": "3304",
        "total_completion_tokens": "1589",
        "total_tokens": "4893",
        "total_cost": "0.024151",
        "model": "gpt-4o"
    },
    {
        "period": "2026-02-07",
        "request_count": "3",
        "total_prompt_tokens": "2202",
        "total_completion_tokens": "3104",
        "total_tokens": "5306",
        "total_cost": "0.036546",
        "model": "gpt-4o-mini"
    },
    {
        "period": "2026-02-08",
        "request_count": "3",
        "total_prompt_tokens": "1374",
        "total_completion_tokens": "1580",
        "total_tokens": "2954",
        "total_cost": "0.003058",
        "model": "gpt-3.5-turbo"
    },
    {
        "period": "2026-02-08",
        "request_count": "2",
        "total_prompt_tokens": "2362",
        "total_completion_tokens": "1630",
        "total_tokens": "3992",
        "total_cost": "0.022205",
        "model": "gpt-4o"
    },
    {
        "period": "2026-02-08",
        "request_count": "2",
        "total_prompt_tokens": "2748",
        "total_completion_tokens": "2114",
        "total_tokens": "4862",
        "total_cost": "0.028010",
        "model": "gpt-4o-mini"
    },
    {
        "period": "2026-02-09",
        "request_count": "3",
        "total_prompt_tokens": "4720",
        "total_completion_tokens": "2392",
        "total_tokens": "7112",
        "total_cost": "0.005949",
        "model": "gpt-3.5-turbo"
    },
    {
        "period": "2026-02-09",
        "request_count": "1",
        "total_prompt_tokens": "1691",
        "total_completion_tokens": "310",
        "total_tokens": "2001",
        "total_cost": "0.007328",
        "model": "gpt-4o"
    },
    {
        "period": "2026-02-09",
        "request_count": "7",
        "total_prompt_tokens": "8717",
        "total_completion_tokens": "5715",
        "total_tokens": "14432",
        "total_cost": "0.078944",
        "model": "gpt-4o-mini"
    },
    {
        "period": "2026-02-10",
        "request_count": "3",
        "total_prompt_tokens": "3951",
        "total_completion_tokens": "1535",
        "total_tokens": "5486",
        "total_cost": "0.004279",
        "model": "gpt-3.5-turbo"
    },
    {
        "period": "2026-02-10",
        "request_count": "1",
        "total_prompt_tokens": "389",
        "total_completion_tokens": "1048",
        "total_tokens": "1437",
        "total_cost": "0.011453",
        "model": "gpt-4o"
    },
    {
        "period": "2026-02-10",
        "request_count": "6",
        "total_prompt_tokens": "5329",
        "total_completion_tokens": "5005",
        "total_tokens": "10334",
        "total_cost": "0.063374",
        "model": "gpt-4o-mini"
    }
]