videosphere
    Preparing search index...
    • Returns whether the authenticated user can access AI metadata generation.

      Parameters

      • req: NextRequest

        Incoming request used to validate authenticated session.

      Returns Promise<NextResponse<ApiError> | NextResponse<AiAccessResponse>>

      JSON response with canUseAiMetadata flag or an unauthorized error.