Ottieni report dei costi
GET/v1/organizations/cost_report
[Legacy] Ottieni un report sui costi dell'API Claude della tua organizzazione in USD, aggregati in intervalli giornalieri.
Questo endpoint fa parte dell'API Usage and Cost legacy. Per le nuove integrazioni, usa invece GET /v1/organizations/analytics/cost nell'API Usage and Cost Analytics. Per spostare un'integrazione esistente, consulta Migrare dall'API Usage and Cost.
Query parameters
Headers
Returns
Ottieni report dei costi
curl https://api.anthropic.com/v1/organizations/cost_report \
-H 'anthropic-version: 2026-10-21' \
-H "Authorization: Bearer $ANTHROPIC_API_KEY"Response 200
{
"data": [
{
"ending_at": "2025-08-02T00:00:00Z",
"results": [
{
"amount": "123.78912",
"context_window": "0-200k",
"cost_type": "tokens",
"currency": "USD",
"description": "Claude Opus 5.5 Usage - Input Tokens",
"inference_geo": "global",
"model": "claude-opus-5-5",
"service_tier": "standard",
"speed": "standard",
"token_type": "cache_creation.ephemeral_1h_input_tokens",
"workspace_id": "wrkspc_01JwQvzr7rXLA5AGx3HKfFUJ"
}
],
"starting_at": "2025-08-01T00:00:00Z"
}
],
"has_more": true,
"next_page": "page_MjAyNS0wNS0xNFQwMDowMDowMFo="
}Returns Examples
Response 200
{
"data": [
{
"ending_at": "2025-08-02T00:00:00Z",
"results": [
{
"amount": "123.78912",
"context_window": "0-200k",
"cost_type": "tokens",
"currency": "USD",
"description": "Claude Opus 5.5 Usage - Input Tokens",
"inference_geo": "global",
"model": "claude-opus-5-5",
"service_tier": "standard",
"speed": "standard",
"token_type": "cache_creation.ephemeral_1h_input_tokens",
"workspace_id": "wrkspc_01JwQvzr7rXLA5AGx3HKfFUJ"
}
],
"starting_at": "2025-08-01T00:00:00Z"
}
],
"has_more": true,
"next_page": "page_MjAyNS0wNS0xNFQwMDowMDowMFo="
}