---
updatedAt: 2026-07-10T19:01:19.000Z
agentTools:
  projectIndex: https://docs.lumalabs.ai/llms.txt
---

# Get credits

Get the credits information for the api user

<Callout icon="🚀" theme="default">
  ### Looking for the latest Luma API?

  Create and manage API access in the [Luma API Platform](https://platform.lumalabs.ai/). For current API guides and reference, visit the [Luma Agents API documentation](https://docs.agents.lumalabs.ai/).
</Callout>

# OpenAPI definition

```json
{
  "openapi": "3.1.0",
  "info": {
    "title": "Dream Machine API",
    "summary": "A RESTful API for interacting with the Dream Machine",
    "description": "Generate videos using Dream Machine.",
    "termsOfService": "https://lumalabs.ai/legal/tos",
    "contact": {
      "name": "Luma AI, Inc.",
      "email": "support@lumalabs.ai",
      "url": "https://lumalabs.ai"
    },
    "license": {
      "name": "Proprietary",
      "url": "https://lumalabs.ai/legal/tos"
    },
    "version": "1.1.0"
  },
  "servers": [
    {
      "url": "https://api.lumalabs.ai/dream-machine/v1"
    }
  ],
  "security": [
    {
      "BearerAuth": []
    }
  ],
  "components": {
    "securitySchemes": {
      "BearerAuth": {
        "type": "http",
        "scheme": "bearer",
        "bearerFormat": "JWT"
      }
    },
    "schemas": {
      "Error": {
        "type": "object",
        "description": "The error object",
        "properties": {
          "detail": {
            "type": "string",
            "description": "The error message"
          }
        },
        "example": {
          "detail": "Invalid API key is provided"
        }
      },
      "Credits": {
        "type": "object",
        "description": "The credits object",
        "properties": {
          "credit_balance": {
            "type": "number",
            "format": "float",
            "description": "Available credits balance in USD cents"
          }
        },
        "required": [
          "credit_balance"
        ]
      }
    }
  },
  "paths": {
    "/credits": {
      "get": {
        "summary": "Get credits",
        "description": "Get the credits information for the api user",
        "operationId": "getCredits",
        "tags": [
          "Credits"
        ],
        "responses": {
          "200": {
            "description": "Credits found",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Credits"
                }
              }
            }
          },
          "default": {
            "description": "Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          }
        }
      }
    }
  }
}
```